pervos-online.one Open in urlscan Pro
188.40.33.247  Public Scan

URL: https://pervos-online.one/
Submission: On October 04 via api from BE — Scanned from DE

Form analysis 1 forms found in the DOM

<form id="main_form" class="form-inline">
  <div class="form-group switcher-container ">
    <input type="radio" name="lalala" id="radio1" style="display: none" class="radio" value="all">
    <label class="switcher one-half trans-all" style="display: none; width: 33%;!important;" for="radio1">
      <i class="icon_all"></i>
    </label>
    <input type="radio" name="lalala" id="radio2" class="radio" value="bus">
    <label class="switcher one-half trans-bus active" style="width: 33%;!important;" for="radio2">
      <i class="icon bus"></i>
    </label>
    <input type="radio" name="lalala" id="radio5" value="package" class="radio">
    <label class="switcher borderless pointer trans-package" onclick="redirectto('https://pervos-one.one/package/index.php');" style="width: 33%;!important;" for="radio5">
      <i class="icon-package package"></i>
    </label>
    <!-- Новая категория с животными -->
    <input type="radio" name="trans" id="radio6" value="animals" class="radio">
    <label class="switcher borderless pointer trans-animals" onclick="redirectto('https://pervos-one.one/animals/index.php');" style="width: 34%;!important;" for="radio6">
      <i class="fas fa-paw" style="background: none; font-size: 19px; margin-top: 3%;"></i>
    </label>
    <span id="form_maxifier" class="maxifier"></span>
  </div>
  <script>
    function showNextStepss() {
      setTimeout(function() {
        var elements = document.querySelectorAll('#nextStep2');
        if (elements.length > 0) {
          elements.forEach(function(element) {
            element.style.display = 'block';
          });
          console.log("Установил!");
        } else {
          console.error("Элементы с id='nextStep2' не найдены.");
        }
      }, 50); // задержка 50 мс
    }
  </script>
  <div class="form-big-group">
    <div class="form-primary-group">
      <div class="wrap-finder  col-lg-10 col-md-10  col-sm-10">
        <div class="form-group primary city-from-to ">
          <div class="search-dialog-window" id="checkaeds" data-navbar-step="Выбор города">
            <div class="wrap-from-to">
              <div class="ride-city-selector ride-city-from">
                <label class="top-label" for="city_from">Откуда</label>
                <input type="text" class="red-tooltip form-control place from-place typeahead requered  up_line  ui-autocomplete-input" id="city_from" name="city_from" tabindex="0" placeholder="" value="" data-parent_id="" autocomplete="off"
                  data-name="�">
                <input type="hidden" id="city_from_id" name="city_from_id" class="up_line" value="3">
                <input type="hidden" id="city_from_latitude" name="city_from_latitude">
                <input type="hidden" id="city_from_longitude" name="city_from_longitude">
                <span class="floating-label">Откуда</span>
                <input type="hidden" class="data_for_find search-city-id-savy" id="city_from_id" name="city_from_id" value="">
                <svg style="display:none" class="arrow-drop-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 8" fill="#00ABFF">
                  <path d="M.714 1.757l1.35-1.35 4.438 4.437L10.939.407l1.35 1.35-5.787 5.788z"></path>
                </svg>
                <a id="city_swapper" class="btn-swap text-center icon"></a>
                <ul id="ui-id-1" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" unselectable="on" style="display: none;"></ul>
              </div>
              <div class="ride-city-selector ride-city-to">
                <label class="top-label" for="city_to">Куда</label>
                <input type="text" class="search-city-savy red-tooltip form-control place to-place typeahead requered   ui-autocomplete-input" id="city_to" name="city_to" tabindex="0" placeholder="" value="" data-parent_id="" autocomplete="off"
                  data-val="">
                <input type="hidden" id="city_to_id" name="city_to_id" placeholder="" data-val="">
                <input type="hidden" id="city_to_latitude" name="city_to_latitude">
                <input type="hidden" id="city_to_longitude" name="city_to_longitude">
                <span class="floating-label">Куда</span>
                <svg style="display:none" class="arrow-drop-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 8" fill="#00ABFF">
                  <path d="M.714 1.757l1.35-1.35 4.438 4.437L10.939.407l1.35 1.35-5.787 5.788z"></path>
                </svg>
                <ul id="ui-id-2" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" unselectable="on" style="display: none;"></ul>
              </div>
            </div>
          </div>
        </div>
        <script>
          function swaptodouble() {}
        </script>
        <script>
          function getInputValueById(id) {
            var inputElement = document.getElementById(id);
            if (inputElement) {
              return inputElement.value;
            } else {
              console.error("Элемент с id='" + id + "' не найден.");
              return null;
            }
          }
        </script>
        <script>
          $(document).ready(function() {
            function setupAutocomplete(inputId, idField, latField, lngField, isCityTo = false) {
              $(inputId).autocomplete({
                source: function(request, response) {
                  $.ajax({
                    url: 'getq.php',
                    dataType: 'json',
                    data: {
                      q: request.term
                    },
                    success: function(data) {
                      response($.map(data.data, function(item) {
                        const name = item.attributes.name || 'Неизвестный город';
                        const fullName = item.attributes['full-name'] || '';
                        return {
                          label: name + (fullName ? ', ' + fullName : ''),
                          value: name,
                          id: item.id,
                          latitude: item.attributes.latitude,
                          longitude: item.attributes.longitude
                        };
                      }));
                    },
                    error: function(xhr, status, error) {
                      console.error('Ошибка получения данных: ', error);
                    }
                  });
                },
                minLength: 2,
                select: function(event, ui) {
                  $(inputId).val(ui.item.label); // Вставка полного имени города
                  $(idField).val(ui.item.id); // Заполнение скрытого поля с ID города
                  $(latField).val(ui.item.latitude); // Заполнение скрытого поля с широтой
                  $(lngField).val(ui.item.longitude); // Заполнение скрытого поля с долготой
                  // Добавление класса choose-to-place и удаление класса choose-from-place
                  $('#checkaeds').addClass('choose-to-place').removeClass('choose-from-place');
                  showNextStepss();
                  if (isCityTo) {
                    const selectedValue = ui.item.label; // Сохраняем выбранное значение
                    // Клик на div с ID ineedclick
                    setTimeout(function() {
                      $('#ineedclick').click();
                      $('#city_to').blur(); // Выполняем click на div
                      $('#city_to').click();
                      $('#city_to').focus();
                      //    setTimeout(function() {
                      //        $(inputId).val(selectedValue); // Восстанавливаем выбранное значение
                      //    }, 200); // Устанавливаем значение через 200 мс
                    }, 100); // Click выполняется через 100 мс
                  }
                  return false;
                }
              }).autocomplete("instance")._renderItem = function(ul, item) {
                showNextStepss();
                return $("<li>").append("<div>" + item.label + "</div>").appendTo(ul);
              };
            }
            setupAutocomplete("#city_from", "#city_from_id", "#city_from_latitude", "#city_from_longitude");
            setupAutocomplete("#city_to", "#city_to_id", "#city_to_latitude", "#city_to_longitude", true); // Передаем true, чтобы применялся click только для city_to
          });
        </script>
        <style>
          .ui-autocomplete {
            max-height: 200px;
            /* Задайте необходимую высоту */
            overflow-y: auto;
            /* Добавляем вертикальную прокрутку */
            overflow-x: hidden;
            /* Отключаем горизонтальную прокрутку */
            padding-right: 20px;
            /* Убираем наложение вертикальной полосы прокрутки */
          }

          /* Исправляем положение полосы прокрутки в браузере Chrome */
          .ui-autocomplete.ui-widget {
            position: absolute;
            z-index: 1051;
            /* Убедитесь, что индекс z достаточно высок */
          }
        </style>
        <div class="form-group primary controls">
          <div class="search-dialog-window" data-navbar-step="Выбор даты">
            <div class="ride-date-selector ride-date-from">
              <div>
                <input type="text" class="form-control counter date-inline data_for_find search-date-savy requered up_line" id="dateFrom" name="date_from" tabindex="0" value="04.10.2024" readonly="">
                <span class="floating-label">Туда</span>
                <span class="icon icalendar"></span>
                <div class="calendar">
                  <div class="calendar-ui hasDatepicker" id="dp1728028932945">
                    <div class="ui-datepicker-inline ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="display: block;">
                      <div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">
                        <a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="Пред" href="#"><span class="ui-icon ui-icon-circle-triangle-w">Пред</span></a><a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="След" href="#"><span class="ui-icon ui-icon-circle-triangle-e">След</span></a>
                        <div class="ui-datepicker-title"><span class="ui-datepicker-month">Октябрь</span>&nbsp;<span class="ui-datepicker-year">2024</span></div>
                      </div>
                      <table class="ui-datepicker-calendar">
                        <thead>
                          <tr>
                            <th scope="col"><span title="понедельник">Пн</span></th>
                            <th scope="col"><span title="вторник">Вт</span></th>
                            <th scope="col"><span title="среда">Ср</span></th>
                            <th scope="col"><span title="четверг">Чт</span></th>
                            <th scope="col"><span title="пятница">Пт</span></th>
                            <th scope="col" class="ui-datepicker-week-end"><span title="суббота">Сб</span></th>
                            <th scope="col" class="ui-datepicker-week-end"><span title="воскресенье">Вс</span></th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <td class=" ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">1</span></td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">2</span></td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">3</span></td>
                            <td class=" ui-datepicker-days-cell-over  ui-datepicker-current-day ui-datepicker-today" data-handler="selectDay" data-event="click" data-month="9" data-year="2024">
                              <a class="ui-state-default ui-state-highlight ui-state-active ui-state-hover" href="#" aria-current="true" data-date="4">4</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="5">5</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="6">6</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="7">7</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="8">8</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="9">9</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="10">10</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="11">11</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="12">12</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="13">13</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="14">14</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="15">15</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="16">16</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="17">17</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="18">18</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="19">19</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="20">20</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="21">21</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="22">22</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="23">23</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="24">24</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="25">25</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="26">26</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="27">27</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="28">28</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="29">29</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="30">30</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="31">31</a></td>
                            <td class=" ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-week-end ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-week-end ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>
                  <div class="arrow"></div>
                  <div class="hidden-xs" style="margin:7px;">
                    <button type="button" class="btn btn-default open-ticket"><i class="icon open_date"></i>Билеты с открытой датой</button>
                  </div>
                </div>
              </div>
            </div>
            <div class="daycalendar hidden-md hidden-sm hidden-xs"><span class="tomorrow">Завтра</span>
              <span class="aftertomorrow">Послезавтра</span>
            </div>
          </div>
          <div class="search-dialog-window" data-navbar-step="Выбор даты">
            <div class="ride-date-selector ride-date-to">
              <div>
                <div style="position:relative;" class="close-wrap"><span class="icon close"></span></div>
                <input data-toggle="tooltip" data-original-title="Скидка до 50%" type="text" class="form-control counter date-inline data_for_find search-date-savy " id="dateTo" name="date_to" tabindex="0" value="" readonly="">
                <span class="floating-label">Обратно</span>
                <span class="icon icalendar"></span>
                <div class="calendar">
                  <div class="calendar-ui hasDatepicker" id="dp1728028932946">
                    <div class="ui-datepicker-inline ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="display: block;">
                      <div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">
                        <a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="Пред" href="#"><span class="ui-icon ui-icon-circle-triangle-w">Пред</span></a><a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="След" href="#"><span class="ui-icon ui-icon-circle-triangle-e">След</span></a>
                        <div class="ui-datepicker-title"><span class="ui-datepicker-month">Октябрь</span>&nbsp;<span class="ui-datepicker-year">2024</span></div>
                      </div>
                      <table class="ui-datepicker-calendar">
                        <thead>
                          <tr>
                            <th scope="col"><span title="понедельник">Пн</span></th>
                            <th scope="col"><span title="вторник">Вт</span></th>
                            <th scope="col"><span title="среда">Ср</span></th>
                            <th scope="col"><span title="четверг">Чт</span></th>
                            <th scope="col"><span title="пятница">Пт</span></th>
                            <th scope="col" class="ui-datepicker-week-end"><span title="суббота">Сб</span></th>
                            <th scope="col" class="ui-datepicker-week-end"><span title="воскресенье">Вс</span></th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <td class=" ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">1</span></td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">2</span></td>
                            <td class=" ui-datepicker-unselectable ui-state-disabled "><span class="ui-state-default">3</span></td>
                            <td class=" ui-datepicker-days-cell-over  ui-datepicker-current-day ui-datepicker-today" data-handler="selectDay" data-event="click" data-month="9" data-year="2024">
                              <a class="ui-state-default ui-state-highlight ui-state-active ui-state-hover" href="#" aria-current="true" data-date="4">4</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="5">5</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="6">6</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="7">7</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="8">8</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="9">9</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="10">10</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="11">11</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="12">12</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="13">13</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="14">14</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="15">15</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="16">16</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="17">17</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="18">18</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="19">19</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="20">20</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="21">21</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="22">22</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="23">23</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="24">24</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="25">25</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="26">26</a></td>
                            <td class=" ui-datepicker-week-end " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="27">27</a></td>
                          </tr>
                          <tr>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="28">28</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="29">29</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="30">30</a></td>
                            <td class=" " data-handler="selectDay" data-event="click" data-month="9" data-year="2024"><a class="ui-state-default" href="#" aria-current="false" data-date="31">31</a></td>
                            <td class=" ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-week-end ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                            <td class=" ui-datepicker-week-end ui-datepicker-other-month ui-datepicker-unselectable ui-state-disabled">&nbsp;</td>
                          </tr>
                        </tbody>
                      </table>
                      <div class="ui-datepicker-buttonpane ui-widget-content"><button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click" href="#">Сегодня</button>
                      </div>
                    </div>
                  </div>
                  <div class="arrow"></div>
                  <div class="hidden-xs" style="margin:7px;">
                    <button type="button" class="btn btn-default open-ticket"><i class="icon open_date"></i>Билеты с открытой датой</button>
                  </div>
                </div>
                <span class="up_to_off hidden-lg hidden-md hidden-sm hidden-xs">Скидка до 50%</span>
              </div>
            </div>
          </div>
        </div>
        <div class="form-group primary hidden">
          <input type="hidden" id="Function" value="get_routes" class="data_for_find">
          <input type="hidden" id="period" name="period" value="0" class="data_for_find">
          <input type="hidden" id="route_id" name="route_id" value="" class="data_for_find">
          <input type="hidden" id="filter_time_from" name="filter_time_from" value="" class="data_for_find">
        </div>
        <div class="form-group secondary">
          <div class="search-dialog-window" data-navbar-step="Пассажиры и класс">
            <div class="optional-selector">
              <textarea name="textarea" tabindex="0" class="form-control persons default-type" value="1 взрослый, Эконом" readonly="">1 взрослый, Эконом</textarea>
              <span></span>
              <div class="optional">
                <div class="btn-group" data-toggle="buttons">
                  <label class="btn btn-default active" data-name="Эконом">
                    <input class="data_for_find" type="radio" name="air_class" id="eco_class" autocomplete="off" checked=""> Эконом </label>
                  <label class="btn btn-default" data-name="Бизнес">
                    <input class="data_for_find" type="radio" name="air_class" id="fst_class" autocomplete="off"> Бизнес </label>
                </div>
                <ul class="list-group">
                  <li>
                    <div class="left">
                      <span>Взрослые</span>
                      <span>Старше 12 лет</span>
                    </div>
                    <div class="right">
                      <i class="minus"></i>
                      <input class="data_for_find counter number" id="counterPassenger_adult" placeholder="0" value="1" type="text" data-single=" взрослый" data-plural=" пассажира" data-plural2=" Пассажиров">
                      <i class="plus"></i>
                    </div>
                  </li>
                  <li>
                    <div class="left">
                      <span>Дети</span>
                      <span>От 2 до 12 лет</span>
                    </div>
                    <div class="right">
                      <i class="minus"></i>
                      <input class="data_for_find counter number" id="counterPassenger_kid" placeholder="0" value="0" type="text" data-single=" ребенок" data-plural=" пассажира" data-plural2=" Пассажиров">
                      <i class="plus"></i>
                    </div>
                  </li>
                  <li>
                    <div class="left">
                      <span>Дети до 2-х лет</span>
                      <span>Без места</span>
                    </div>
                    <div class="right">
                      <i class="minus"></i>
                      <input class="data_for_find counter number" id="counterPassenger_baby" placeholder="0" value="0" type="text" data-single=" младенец" data-plural=" пассажира" data-plural2=" Пассажиров">
                      <i class="plus"></i>
                    </div>
                  </li>
                </ul>
                <div class="checkbox checkbox-info">
                  <input class="data_for_find styled" type="checkbox" name="air_direct_connection" id="air_direct_connection">
                  <label for="air_direct_connection">Прямые рейсы</label>
                </div>
                <div class="checkbox checkbox-info">
                  <input class="data_for_find styled" type="checkbox" name="air_baggage_yes" id="air_baggage_yes">
                  <label for="air_baggage_yes">С багажом</label>
                </div>
              </div>
              <div class="search-dialog-close">
                <a href="#" class="btn btn-default text-uppercase">Готово</a>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="form-group main-search-button  col-lg-2 col-md-2 col-sm-2">
        <script>
          function checkMarch() {
            // Получение значений из полей автозаполнения
            const cityFrom = document.querySelector("#city_from").value;
            const cityTo = document.querySelector("#city_to").value;
            const cityFromId = document.querySelector("#city_from_id").value;
            const cityToId = document.querySelector("#city_to_id").value;
            const cityFromLatitude = document.querySelector("#city_from_latitude").value;
            const cityFromLongitude = document.querySelector("#city_from_longitude").value;
            const cityToLatitude = document.querySelector("#city_to_latitude").value;
            const cityToLongitude = document.querySelector("#city_to_longitude").value;
            const dateFrom = document.querySelector("#dateFrom").value;
            // Переменные для проверки
            let isValid = true;
            let errorMessage = "";
            // Проверка на заполненность и выделение красным, если пустое
            if (!cityFrom || !cityFromId || !cityFromLatitude || !cityFromLongitude) {
              document.querySelector("#city_from").style.border = "2px solid red";
              isValid = false;
            } else {
              document.querySelector("#city_from").style.border = ""; // Убираем выделение, если поле заполнено
            }
            if (!cityTo || !cityToId || !cityToLatitude || !cityToLongitude) {
              document.querySelector("#city_to").style.border = "2px solid red";
              isValid = false;
            } else {
              document.querySelector("#city_to").style.border = ""; // Убираем выделение, если поле заполнено
            }
            // Отображение ошибки, если города совпадают
            if (errorMessage) {
              alert(errorMessage);
            }
            // Если все поля корректны и города не совпадают, выполняем редирект
            if (isValid) {
              const from = getInputValueById("city_from");
              const to = getInputValueById("city_to");
              redirectto(`parser.php?from=${from}&to=${to}&city_from_id=${cityFromId}&city_to_id=${cityToId}&dateFrom=${dateFrom}`);
            }
          }
        </script>
        <a onclick="checkMarch();">
                    <button id="main_form_search_button" type="button" tabindex="0" class="btn btn-default skybtn">
                      <span><span>Поиск</span></span>
                    </button>
					</a>
      </div>
    </div>
  </div>
</form>

Text Content

Поверните телефон в вертикальное положение
Поверните телефон в вертикальное положение


БРОНИ

В данный момен у вас нет броней.

Закрыть

ПОЖАЛУЙСТА, ПОДОЖДИТЕ. ПОИСК МАРШРУТА.



1
Служба поддержки

 * Поиск рейса
 * Корзина
 * Мои билеты
   * Войти � /�  � егистрация
   * Поиск билетов
   * � егистрация Open билета
 * 
 * � усский RU
   * ×Язык
   * English
   * � усский
   * Українська
   * Polski
   * Čeština
   * Беларуская
   * 简化字
   * Lietuvių
   * Deutsch
   * Magyar
   * Française
   * Italiano
   * Български
   * Español
   * Română
   * Svenska
   * Η ελληνική
   * Eesti
   * ქა� თული
   * Português (BR)
   * Dansk
   * Suomi
   * Bahasa Indonesia
   * 日本語
   * 한국어
   * Latviešu
   * Nederlands
   * Norsk
   * Português (PT)
   * Slovenščina
   * Slovenský
   * Türkçe
   * Moldovenească
   
 * RUB
   * ×Валюта
     
 * 1
   Бронирования
 * Помощь
   
   

 * Все
 * Автобусы
 * Ж/Д билеты
 * Авиабилеты
 * Посылки

 * Служба поддержки клиентов 24/7 Online Chat

� � Подождите

 * Войти � /�  � егистрация
 * Поиск билетов
 * � егистрация Open билета




БРОНИРОВАНИЕ БИЛЕТОВ ОНЛАЙН

СРАВНИВАЙТЕ ЦЕНЫ, БРОНИРУЙТЕ, ПОКУПАЙТЕ ОНЛАЙН

Откуда Откуда
Куда Куда
Туда
ПредСлед
Октябрь 2024

ПнВтСрЧтПтСбВс 12345678910111213141516171819202122232425262728293031   


Билеты с открытой датой
Завтра Послезавтра

Обратно
ПредСлед
Октябрь 2024

ПнВтСрЧтПтСбВс 12345678910111213141516171819202122232425262728293031   

Сегодня

Билеты с открытой датой
Скидка до 50%

1 взрослый, Эконом
Эконом Бизнес
 * Взрослые Старше 12 лет
   
 * Дети От 2 до 12 лет
   
 * Дети до 2-х лет Без места
   

Прямые рейсы
С багажом
Готово
Поиск
Купить билет� � 
❮ ❯

ПОЖАЛУЙСТА, ПОДОЖДИТЕ. ПОИСК МАРШРУТА.


Бонусы Зарегистрируйтесь на сайте и при покупке билетов Вы будете получать
бонусы, которыми потом сможете оплачивать свои заказы.
Наверх




Send us a messageBusiness Messenger by