1function getRandomInt() { 2 return Math.floor(Math.random() * 1000) 3} 4 5function start_lazy_map() { 6 if (!map_loaded) { 7 var map_block = document.getElementById("ymap_lazy"); 8 (map_loaded = !0), map_block.setAttribute("src", map_block.getAttribute("data-src")), map_block.removeAttribute("data_src") 9 } 10} 11jQuery(document).ready(function ($) { 12 function updateSpinner(obj) { 13 var contentObj = $(obj).parents(".order-form__passengers").find(".order-form__passengers-input"), 14 value = parseInt(contentObj.val()) 15 $(obj).hasClass("input-number-more") ? value++ : value <= 1 || value--, contentObj.val(value) 16 } 17 function send_zayavka() { 18 /* $("#send_zayavka").submit(function (e) { 19 e.preventDefault() 20 var $form = $(this) 21 $.ajax({ 22 type: "POST", 23 url: myajax.url, 24 urlfor: document.location.href, 25 data: $form.serialize(), 26 dataType: "html", 27 beforeSend: function () { 28 $(".zayavka_response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>") 29 }, 30 success: function (response) { 31 $(".zayavka_response").replaceWith(response), $form[0].reset() 32 33 }, 34 }) 35 }) */ 36 function send_zayavka() { 37 $("#send_zayavka").submit(function (e) { 38 e.preventDefault() 39 var $form = $(this) 40 41 $.ajax({ 42 type: "POST", 43 url: myajax.url, 44 data: $form.serialize(), 45 dataType: "html", 46 beforeSend: function () { 47 $(".zayavka_response").html("<img style='width: 64px; margin: auto; align-self: center ; display: flex ;' src='/default.gif'>") 48 }, 49 success: function (response) { 50 // ÐаменÑем ÑодеÑжимое .zayavka_response на оÑÐ²ÐµÑ Ð¾Ñ ÑеÑвеÑа 51 $(".zayavka_response").replaceWith(response) 52 53 // СбÑаÑÑваем ÑоÑÐ¼Ñ 54 $form[0].reset() 55 56 // ÐеÑенапÑавлÑем полÑзоваÑÐµÐ»Ñ Ð½Ð° ÑÑÑаниÑÑ ÑпаÑибо 57 window.location.href = '/thanks' 58 }, 59 error: function (xhr, status, error) { 60 // ÐбÑабоÑка оÑибки, еÑли Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ 61 console.error("ÐÑибка пÑи оÑпÑавке ÑоÑмÑ:", error) 62 $(".zayavka_response").html("ÐÑоизоÑла оÑибка пÑи оÑпÑавке ÑоÑмÑ. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.") 63 } 64 }) 65 }) 66 } 67 } 68 $(".order-form__tables").on("click", ".spin", function (event) { 69 updateSpinner($(this)) 70 }), 71 $(".order-form__table").on("click", ".spin", function (event) { 72 updateSpinner($(this)) 73 }), 74 (function () { 75 $(".airplane__slider").slick({ autoplay: !0, autoplaySpeed: 2e3, dots: !0 }) 76 })(), 77 $(".order-form__passengers-input").blur(function (event) { 78 ($(this).val() && 0 != $(this).val()) || $(this).val("1") 79 }), 80 $(".open-popup").magnificPopup({ type: "inline", fixedContentPos: !0, fixedBgPos: !0, overflowY: "auto", closeBtnInside: !0, preloader: !1, midClick: !0, removalDelay: 300, mainClass: "my-mfp-zoom-in" }) 81 $.magnificPopup.instance 82 if ( 83 ($(".add-row").click(function (event) { 84 event.preventDefault(), 85 ($segmentRow = 86 '<div class="order-form__tables-line order-form__tables-line-extra"><div class="order-form__item"><input autocomplete="off" name="from[]" type="text" placeholder="' + 87 otkuda + 88 '" class="order-form__input order-form__city" id="input_from_' + getRandomInt() + '" /><div class="response"></div></div><div class="order-form__item"><input name="to[]" type="text" placeholder="' + 89 otkuda + 90 '" class="order-form__input order-form__city" id="input_to_' + getRandomInt() + '" /><div class="response"></div></div><div class="order-form__item"><input name="date[]" type="text" placeholder="' + 91 dataform + 92 '" class="order-form__input order-form__date-input" id="input_date_' + getRandomInt() + '" /></div><div class="order-form__item"><div class="order-form__passengers"><input name="quantity[]" type="number" value="2" min="1" step="1" max="99" pattern="[0-9]*" inputmode="numeric" class="order-form__input order-form__passengers-input" id="input_q_' + getRandomInt() + '"/><div class="input-number-less spin"></div><div class="input-number-more spin"></div></div></div><a href="#" class="delete-row active"></a></div>'), 93 $(".order-form__tables").append($segmentRow), 94 $(".order-form__item").length - 1 > 1 && $(".delete-row").addClass("active") 95 }), 96 $(document).on("click", ".more-desire", function (event) { 97 var btn = $(this), 98 form = btn.closest("form"), 99 desire = form.children("div").children(".order-form__desire") 100 event.preventDefault(), btn.hide(), desire.addClass("active") 101 }), 102 $(".order-form__tables").on("click", ".delete-row", function (event) { 103 event.preventDefault(), $(this).parents("div.order-form__tables-line-extra").remove(), $(".order-form__item").length - 1 <= 1 && $(".delete-row").removeClass("active") 104 }), 105 /* $(".order-form").submit(function (e) { 106 e.preventDefault() 107 var $form = $(this) 108 $.ajax({ 109 type: "POST", 110 url: myajax.url, 111 data: $form.serialize(), 112 dataType: "html", 113 urlfor: document.location.href, 114 beforeSend: function () { 115 $(".ajax-response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>"), $.magnificPopup.open({ items: { src: "#form-popup" }, type: "inline" }, 0) 116 }, 117 success: function (response) { 118 $(".ajax-response").replaceWith(response), 119 setTimeout(function () { 120 $.magnificPopup.close() 121 }, 3e3), 122 $form[0].reset() 123 }, 124 }) 125 }), */ 126 $(".order-form").submit(function (e) { 127 e.preventDefault() 128 var $form = $(this) 129 130 $.ajax({ 131 type: "POST", 132 url: myajax.url, 133 data: $form.serialize(), 134 dataType: "html", 135 beforeSend: function () { 136 $(".ajax-response").html("<img style='width: 64px; margin: auto; align-self: center ; display: flex ;' src='/default.gif'>") 137 $.magnificPopup.open({ items: { src: '#form-popup' }, type: 'inline' }, 0) 138 }, 139 success: function (response) { 140 // ÐаменÑем ÑодеÑжимое .ajax-response на оÑÐ²ÐµÑ Ð¾Ñ ÑеÑвеÑа 141 $(".ajax-response").replaceWith(response) 142 143 // СбÑаÑÑваем ÑоÑÐ¼Ñ 144 $form[0].reset() 145 146 // ÐакÑÑваем модалÑное окно ÑеÑез 3 ÑекÑÐ½Ð´Ñ 147 setTimeout(function () { 148 $.magnificPopup.close() 149 }, 3000) 150 151 // ÐеÑенапÑавлÑем полÑзоваÑÐµÐ»Ñ Ð½Ð° ÑÑÑаниÑÑ ÑпаÑибо 152 window.location.href = '/thanks' 153 }, 154 error: function (xhr, status, error) { 155 // ÐбÑабоÑка оÑибки, еÑли Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ 156 console.error("ÐÑибка пÑи оÑпÑавке ÑоÑмÑ:", error) 157 $(".ajax-response").html("ÐÑоизоÑла оÑибка пÑи оÑпÑавке ÑоÑмÑ. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.") 158 } 159 }) 160 }), 161 $(".order-form__date-input").datepicker({ minDate: 0 }), 162 $(".footer-phone").on("click", function (e) { 163 e.preventDefault() 164 $(this) 165 $.ajax({ 166 type: "POST", 167 url: myajax.url, 168 data: { action: "give_form", type: "vspl-footer" }, 169 dataType: "html", 170 beforeSend: function () { 171 $(".ajax-response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>"), $.magnificPopup.open({ items: { src: "#form-popup" }, type: "inline" }, 0) 172 }, 173 success: function (response) { 174 $(".ajax-response").replaceWith(response), send_zayavka(), $("form")[0].reset() 175 }, 176 }) 177 }), 178 $(".js-btn-more").on("click", function (e) { 179 e.preventDefault() 180 var b = $(this) 181 $.ajax({ 182 type: "POST", 183 url: myajax.url, 184 data: { action: "give_form", request: b.data("request"), type: "vspl", urlfor: document.location.href }, 185 dataType: "html", 186 beforeSend: function () { 187 $(".ajax-response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>"), $.magnificPopup.open({ items: { src: "#form-popup" }, type: "inline" }, 0) 188 }, 189 success: function (response) { 190 $(".ajax-response").replaceWith(response), send_zayavka(), $("form")[0].reset() 191 }, 192 }) 193 }), 194 $(".upcoming__table-wrapper").on("click", ".submittable_transfers", function (e) { 195 e.preventDefault() 196 var b = $(this) 197 $.ajax({ 198 type: "POST", 199 url: myajax.url, 200 data: { action: "give_form", date: b.attr("data-date"), from: b.attr("data-from"), urlfor: document.location.href, jet: b.attr("data-transport"), price: b.attr("data-price") }, 201 dataType: "html", 202 beforeSend: function () { 203 $(".ajax-response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>"), $.magnificPopup.open({ items: { src: "#form-popup" }, type: "inline" }, 0) 204 }, 205 success: function (response) { 206 $(".ajax-response").replaceWith(response), send_zayavka(), $("form")[0].reset() 207 }, 208 }) 209 }), 210 $(".zakazat-jet").on("click", function (e) { 211 e.preventDefault() 212 var b = $(this) 213 $.ajax({ 214 type: "POST", 215 url: myajax.url, 216 data: { action: "give_form", jet: b.attr("data-jet"), type: "single_jet", urlfor: document.location.href }, 217 dataType: "html", 218 beforeSend: function () { 219 $(".ajax-response").html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>"), $.magnificPopup.open({ items: { src: "#form-popup" }, type: "inline" }, 0) 220 }, 221 success: function (response) { 222 $(".ajax-response").replaceWith(response), send_zayavka(), $("form")[0].reset() 223 }, 224 }) 225 }), 226 /* $(".simple_form.form_3").submit(function (e) { 227 e.preventDefault() 228 var $form = $(this), 229 responseText = $form.children(".simple-ajax-response") 230 $.ajax({ 231 type: "POST", 232 url: myajax.url, 233 data: $form.serialize(), 234 dataType: "html", 235 beforeSend: function () { 236 responseText.html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>") 237 }, 238 success: function (response) { 239 responseText.replaceWith(response), $form[0].reset() 240 }, 241 }) 242 }), */ 243 $(".simple_form.form_3").submit(function (e) { 244 e.preventDefault() 245 var $form = $(this) 246 247 $.ajax({ 248 type: "POST", 249 url: myajax.url, 250 data: $form.serialize(), 251 dataType: "html", 252 beforeSend: function () { 253 $(".ajax-response").html("<img style='width: 64px; margin: auto; align-self: center ; display: flex ;' src='/default.gif'>") 254 $.magnificPopup.open({ items: { src: '#form-popup' }, type: 'inline' }, 0) 255 }, 256 success: function (response) { 257 // ÐаменÑем ÑодеÑжимое .ajax-response на оÑÐ²ÐµÑ Ð¾Ñ ÑеÑвеÑа 258 $(".ajax-response").replaceWith(response) 259 260 // СбÑаÑÑваем ÑоÑÐ¼Ñ 261 $form[0].reset() 262 263 // ÐакÑÑваем модалÑное окно ÑеÑез 3 ÑекÑÐ½Ð´Ñ 264 setTimeout(function () { 265 $.magnificPopup.close() 266 }, 3000) 267 268 // ÐеÑенапÑавлÑем полÑзоваÑÐµÐ»Ñ Ð½Ð° ÑÑÑаниÑÑ ÑпаÑибо 269 window.location.href = '/thanks' 270 }, 271 error: function (xhr, status, error) { 272 // ÐбÑабоÑка оÑибки, еÑли Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ 273 console.error("ÐÑибка пÑи оÑпÑавке ÑоÑмÑ:", error) 274 $(".ajax-response").html("ÐÑоизоÑла оÑибка пÑи оÑпÑавке ÑоÑмÑ. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.") 275 } 276 }) 277 }), 278 279 $(".simple_form.form_4").submit(function (e) { 280 e.preventDefault() 281 var $form = $(this) 282 283 $.ajax({ 284 type: "POST", 285 url: myajax.url, 286 data: $form.serialize(), 287 dataType: "html", 288 beforeSend: function () { 289 $(".ajax-response").html("<img style='width: 64px; margin: auto; align-self: center ; display: flex ;' src='/default.gif'>") 290 $.magnificPopup.open({ items: { src: '#form-popup' }, type: 'inline' }, 0) 291 }, 292 success: function (response) { 293 // ÐаменÑем ÑодеÑжимое .ajax-response на оÑÐ²ÐµÑ Ð¾Ñ ÑеÑвеÑа 294 $(".ajax-response").replaceWith(response) 295 296 // СбÑаÑÑваем ÑоÑÐ¼Ñ 297 $form[0].reset() 298 299 // ÐакÑÑваем модалÑное окно ÑеÑез 3 ÑекÑÐ½Ð´Ñ 300 setTimeout(function () { 301 $.magnificPopup.close() 302
302 }, 3000) 303 304 // ÐеÑенапÑавлÑем полÑзоваÑÐµÐ»Ñ Ð½Ð° ÑÑÑаниÑÑ ÑпаÑибо 305 window.location.href = '/thanks' 306 }, 307 error: function (xhr, status, error) { 308 // ÐбÑабоÑка оÑибки, еÑли Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ 309 console.error("ÐÑибка пÑи оÑпÑавке ÑоÑмÑ:", error) 310 $(".ajax-response").html("ÐÑоизоÑла оÑибка пÑи оÑпÑавке ÑоÑмÑ. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.") 311 } 312 }) 313 }), 314 /* $(".simple_form.form_4").submit(function (e) { 315 e.preventDefault() 316 var $form = $(this), 317 responseText = $form.children(".simple-ajax-response") 318 $.ajax({ 319 type: "POST", 320 url: myajax.url, 321 data: $form.serialize(), 322 dataType: "html", 323 beforeSend: function () { 324 responseText.html("<div class='loader'><div class='bounce1'></div><div class='bounce2'></div><div class='bounce3'></div></div>") 325 }, 326 success: function (response) { 327 responseText.replaceWith(response), $form[0].reset() 328 }, 329 }) 330 }), */ 331 $(document).on("click", ".js-soc-group", function () { 332 $(".site-header .soc-group ul").animate({ right: 0 }, 400), $("html").css("overflow", "hidden") 333 }), 334 $(".overlay").on("click", function () { 335 $(".overlay").fadeOut(), $(".mobile-menu__wrap, .site-header .soc-group ul").animate({ right: "-100%" }, 400), $("html").css("overflow", "visible") 336 }), 337 $("body").on("click", ".sub-menu__toggler", function (event) { 338 $(this).next().hide(), $(this).attr("showsub", "false"), $(this).removeClass("sub-menu__toggler") 339 }), 340 $(".mobile-menu__menu li").each(function () { 341 $(this).find("ul.sub-menu").length > 0 && $(this).find("> a").append('<span class="arrow">V</span>') 342 }), 343 $(".mobile-menu__pic").on("click", function () { 344 $(".mobile-menu__wrap").animate({ right: 0 }, 400), $("html").css("overflow", "hidden"), $(".mobile-menu__pic").css("display", "none"), $(".mobile-menu__pic-close").css("display", "block") 345 }), 346 $(".mobile-menu__pic-close").on("click", function () { 347 $(".mobile-menu__wrap, .site-header .soc-group ul").animate({ right: "-100%" }, 400), $("html").css("overflow", "visible"), $(".mobile-menu__pic").css("display", "block"), $(".mobile-menu__pic-close").css("display", "none") 348 }), 349 $(".table-services").children().length > 10 && 350 ($(".table-services").children().slice(9).hide(), ($showBtn = '<center><a href="#" class="btn btn--secondary show-all">ÐоказаÑÑ Ð²Ñе</a></center>'), $(".table-services").append($showBtn)), 351 $(".table-services .show-all").on("click", function (e) { 352 e.preventDefault(), $(".table-services").children().show(), $(this).hide() 353 }), 354 $(".faq .f-item").click(function () { 355 $(this).hasClass("active") || 356 $(".faq .f-item").each(function () { 357 $(this).removeClass("active").find(".fi-answer").hide() 358 }), 359 $(this).toggleClass("active").find(".fi-answer").toggle() 360 }), 361 $(".map-accordion .fi-question").click(function () { 362 $(".map-accordion .f-item").toggleClass("active").find(".fi-answer").toggle() 363 }), 364 $(".search-link").on("click", function () { 365 var search = $(this).closest(".search-group") 366 search.addClass("open"), search.find(".search-form").find(".search-input").focus() 367 }), 368 $("body").hasClass("search")) 369 ) { 370 $(".search-group").addClass("open").find(".search-form").find(".search-input").focus() 371 } 372 $(document).mouseup(function (e) { 373 var div = $(".search-form") 374 div.hasClass("open") && (div.is(e.target) || 0 !== div.has(e.target).length || div.removeClass("open")) 375 }), 376 $(".mobile-menu__menu li a").click(function (event) { 377 if ("sub-menu" == $(this).next().attr("class") && (event.preventDefault(), "true" != $(this).attr("showsub"))) { 378 var mine = $(this) 379 return ( 380 $(".mobile-menu__menu li a").each(function () { 381 $(this) != mine && ($(this).next().hide(), $(this).attr("showsub", "false"), $(this).removeClass("sub-menu__toggler")) 382 }), 383 $(this).addClass("sub-menu__toggler"), 384 $(this).next().show(), 385 $(this).attr("showsub", "true"), 386 !1 387 ) 388 } 389 }), 390 $("#next_step").attr("disabled", "disabled"), 391 $(".order-form_first-step input").on("change", function () { 392 $("#phone_bottom").fadeOut(), 393 "" != $(".order-form_first-step input[name='from']").val() && 394 "" != $(".order-form_first-step input[name='to']").val() && 395 "" != $(".order-form_first-step input[name='date']").val() && 396 "" != $(".order-form_first-step input[name='quantity']").val() 397 ? $("#next_step").removeAttr("disabled") 398 : $("#next_step").attr("disabled", "disabled") 399 }), 400 $("#next_step").click(function (event) { 401 event.preventDefault(), 402 screen.width <= 690 ? $(this).fadeOut() : $(this).css({ opacity: 0 }), 403 $(".order-form_second-step").slideToggle("slow", function () { 404 screen.width <= 690 ? $("html, body").animate({ scrollTop: $(".order-form_second-step").offset().top }, 500) : $("html, body").animate({ scrollTop: $("form.order-form").offset().top - 105 }, 500) 405 }), 406 $("#fio").focus() 407 }) 408}) 409var map_container = document.getElementById("map_container"), 410 map_accordion = document.getElementById("map_accordion"), 411 options_map = { once: !0, passive: !0, capture: !0 } 412map_container && 413 (map_container.addEventListener("click", start_lazy_map, options_map), 414 map_container.addEventListener("mouseover", start_lazy_map, options_map), 415 map_container.addEventListener("touchstart", start_lazy_map, options_map), 416 map_container.addEventListener("touchmove", start_lazy_map, options_map)), 417 map_accordion && 418 (map_accordion.addEventListener("click", start_lazy_map, options_map), 419 map_accordion.addEventListener("mouseover", start_lazy_map, options_map), 420 map_accordion.addEventListener("touchstart", start_lazy_map, options_map), 421 map_accordion.addEventListener("touchmove", start_lazy_map, options_map)) 422var map_loaded = !1 423!(function (w, d, s, h, id) { 424 (w.roistatProjectId = id), (w.roistatHost = h) 425 var p = "https:" == d.location.protocol ? "https://" : "http://", 426 u = /^.*roistat_visit=[^;]+(.*)?$/.test(d.cookie) ? "/dist/module.js" : "/api/site/1.0/" + id + "/init?referrer=" + encodeURIComponent(d.location.href), 427 js = d.createElement(s); 428 (js.charset = "UTF-8"), (js.async = 1), (js.src = p + h + u) 429 var js2 = d.getElementsByTagName(s)[0] 430 js2.parentNode.insertBefore(js, js2) 431})(window, document, "script", "cloud.roistat.com", "34a796894f2908049c9b6841fb1ffa0c") 432 433 434/*var swiper = new Swiper('.sliders_rewiew', { 435 navigation: { 436 nextEl: '.slider_rewiew-next', 437 prevEl: '.slider_rewiew-prev', 438 }, 439 slidesPerView: 4, 440 spaceBetween: 30, 441 breakpoints: { 442 // when window width is >= 320px 443 320: { 444 slidesPerView: 1, 445 spaceBetween: 20 446 }, 447 // when window width is >= 480px 448 640: { 449 slidesPerView: 2, 450 451 }, 452 // when window width is >= 640px 453 840: { 454 slidesPerView: 3, 455 456 } 457 } 458})*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.