1$(function() { 2 3 var bLazy = new Blazy(); 4 5 svg4everybody(); 6 $(window).resize(function() { 7 $('meta[name="viewport"]').attr("content", "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"); 8 }); 9 10 $('.footer-menu:nth-child(3) .footer-menu__list').append( '<li class="footer-menu__item"><a href="/politika-v-otnoshenii-obrabotki-personalnyh-dannyh" class="footer-menu__link">ÐолÑзоваÑелÑÑкое ÑоглаÑение</a></li>'); 11 $('a[href="https://atour.ru/workdir/personal-data.pdf"]').attr('href','/politika-v-otnoshenii-obrabotki-personalnyh-dannyh'); 12 $('.js-tabs-title a').click(function(event) { 13 event.preventDefault(); 14 var el = $(this).attr('href'); 15 $('.js-tabs-title a').removeClass('active'); 16 $(this).addClass('active'); 17 $('.js-tab').removeClass('active'); 18 $(el).addClass('active'); 19 return false; 20 }); 21 setInterval(function() { 22 if ($('.slider__title.active').is(':last-child')) { 23 $('.slider__title').first().trigger('click'); 24 } else { 25 $('.slider__title.active').next().trigger('click'); 26 } 27 }, 4000); 28 29 $('.js-menu-drop').click(function(e) { 30 e.preventDefault(0); 31 if ($(window).width() > 1023) { 32 if ($(this).hasClass('open')) { 33 document.location.href = $(this).attr("href"); 34 } else { 35 $('.js-menu-drop').removeClass('open').parent().removeClass('open').find('.dropdown-menu').eq(0).removeClass('open').fadeOut(); 36 $(this).addClass('open').parent().addClass('open').find('.dropdown-menu').eq(0).addClass('open').fadeIn(); 37 } 38 } else { 39 //if ($(this).next('.dropdown-menu').find('.back__menu').length > 0) {} else { 40 // $(this).next('.dropdown-menu').prepend('<a class="back__menu">â назад</a>'); 41 //} 42 //$(this).toggleClass('open').next('.dropdown-menu').toggleClass('open').fadeToggle(); 43 } 44 }); 45 46 $('.js-menu-drop .arrow').click(function(e) { 47 if ($(this).parent().next('.dropdown-menu').find('.back__menu').length > 0) {} else { 48 $(this).parent().next('.dropdown-menu').prepend('<a class="back__menu">â назад</a>'); 49 } 50 $(this).parent().toggleClass('open').next('.dropdown-menu').toggleClass('open').fadeToggle(); 51 }); 52 53 $(".dropdown-countries__list .countries__item .countries__link *:not(.arrow)").click(function() { 54 55 location.href= $(this).parent().attr('href'); 56 57 }); 58 59 $("body").on('click', '.back__menu', function() { 60 let th = $(this); 61 $(this).parent().parent().find('.js-menu-drop').toggleClass('open').next('.dropdown-menu').toggleClass('open').fadeToggle(); 62 return false; 63 }); 64 $(document).click(function(event) { 65 if ($(window).width() > 1023) { 66 if ($(event.target).closest(".main-nav__item.open").length) 67 return; 68 $('.js-menu-drop').removeClass('open').parent().removeClass('open').find('.dropdown-menu').removeClass('open').fadeOut(); 69 event.stopPropagation(); 70 } 71 }); 72 $('.form__info').click(function() { 73 $(this).remove(); 74 $('.form__textarea--hide').fadeIn(); 75 }); 76 $('.js-tel, input[type="tel"]').mask('+7 (000) 000-00-00'); 77 $('select, input').styler({ 78 selectSmartPositioning: false, 79 }); 80 $('.js-minus').click(function() { 81 var $input = $(this).parent().find('input'); 82 var count = parseInt($input.val()) - 1; 83 count = count < 1 ? 1 : count; 84 $input.val(count); 85 $input.change(); 86 return false; 87 }); 88 $('.js-plus').click(function() { 89 var $input = $(this).parent().find('input'); 90 $input.val(parseInt($input.val()) + 1); 91 $input.change(); 92 return false; 93 }); 94 $('.js-kids').change(function() { 95 var val = +($(this).val()); 96 $('.form__col-3 .jq-selectbox select').prop('selectedIndex', 0).attr('disabled', true).trigger('refresh'); 97 for (var i = 1; i <= val; i++) { 98 $('.form__col-3 .jq-selectbox:nth-child(' + i + ') select').removeAttr('disabled').trigger('refresh'); 99 } 100 return false;
101 }); 102 $('input[name="dates"]').daterangepicker({ 103 "autoApply": true, 104 "locale": { 105 "format": "DD.MM.YY", 106 "separator": " - ", 107 "applyLabel": "ÐÑимениÑÑ", 108 "cancelLabel": "ÐÑмена", 109 "fromLabel": "C", 110 "toLabel": "Ðо", 111 "customRangeLabel": "Custom", 112 "weekLabel": "W", 113 "daysOfWeek": [ 114 "ÐÑ", 115 "Ðн", 116 "ÐÑ", 117 "СÑ", 118 "ЧÑ", 119 "ÐÑ", 120 "Сб" 121 ], 122 "monthNames": [ 123 "ЯнваÑÑ", 124 "ФевÑалÑ", 125 "ÐаÑÑ", 126 "ÐпÑелÑ", 127 "Ðай", 128 "ÐÑнÑ", 129 "ÐÑлÑ", 130 "ÐвгÑÑÑ", 131 "СенÑÑбÑÑ", 132 "ÐкÑÑбÑÑ", 133 "ÐоÑбÑÑ", 134 "ÐекабÑÑ" 135 ], 136 "firstDay": 1 137 } 138 }); 139 $('.js-feedback').click(function() { 140 $('.popup-bg, .js-popup--feedback').addClass('open'); 141 }); 142 $('.js-buy').click(function() { 143 $('.popup-bg, .js-popup-tour, .js-popup--1').addClass('open'); 144 }); 145 $('.js-popup-close').click(function() { 146 $('.popup-bg, .js-popup, .js-popup-tour').removeClass('open'); 147 }); 148 $('.js-step-next').click(function(e) { 149 e.preventDefault(); 150 var href = $(this).attr('href').substring(1); 151 $('.js-popup').removeClass('open'); 152 $('.' + href).addClass('open'); 153 $('.popup__steps a.active').next().addClass('active'); 154 }); 155 $('.js-step-back').click(function(e) { 156 e.preventDefault(); 157 var href = $(this).attr('href').substring(1); 158 $('.js-popup').removeClass('open'); 159 $('.' + href).addClass('open'); 160 var num = $('.popup__steps a.active').length; 161 $('.popup__steps a').eq(num - 1).removeClass('active'); 162 }); 163 $('.js-step-link').click(function(e) { 164 e.preventDefault(); 165 var href = $(this).attr('href').substring(1); 166 $('.js-popup').removeClass('open'); 167 $('.' + href).addClass('open'); 168 var _this = $(this).index(); 169 var num = $('.popup__steps a.active').length; 170 if (_this + 1 > num) { 171 for (var i = 0; i < _this; i++) { 172 $('.popup__steps a').eq(i + 1).addClass('active'); 173 } 174 } else if (_this < num) { 175 for (var i2 = _this; i2 < num; i2++) { 176 $('.popup__steps a').eq(i2 + 1).removeClass('active'); 177 } 178 } 179 }); 180 $('.js-step-final').click(function(e) { 181 e.preventDefault(); 182 $('.js-popup, .js-popup-tour').removeClass('open'); 183 $('.js-popup--thanks').addClass('open'); 184 }); 185 $('.js-popup-bg').click(function(event) { 186 if ($(event.target).closest(".js-popup").length || $(event.target).closest(".js-popup-tour").length) 187 return; 188 $('.js-popup-close').trigger('click'); 189 event.stopPropagation(); 190 }); 191 $('.table--adaptive').stacktable(); 192 var partners = $('.partners'); 193 var partners_Settings = { 194 items: 2, 195 nav: false, 196 dots: true, 197 dotsEach: true, 198 loop: true, 199 margin: 20, 200 smartSpeed: 550, 201 autoplay: false, 202 autoplayTimeout: 4000, 203 autoplayHoverPause: true, 204 responsive: { 205 0: { 206 items: 2, 207 }, 208 480: { 209 items: 4, 210 }, 211 768: { 212 items: 5, 213 } 214 } 215 }; 216 var swiper_contacts = new Swiper('.swiper-contacts', { 217 slidesPerView: 'auto', 218 spaceBetween: 20, 219 pagination: { 220 el: '.swiper-pagination-contacts', 221 clickable: true, 222 } 223 }); 224 var swiper_holidays = new Swiper('.slider-relax', { 225 slidesPerView: 'auto', 226 spaceBetween: 10, 227 freeMode: true, 228 pagination: { 229 el: '.swiper-pagination-holidays', 230 clickable: true, 231 } 232 }); 233 var swiper = new Swiper('.swiper-container.news-cont', { 234 loop: true, 235 pagination: { 236 el: '.swiper-pagination', 237 dynamicBullets: true, 238 }, 239 autoplay: { 240 delay: 5000, 241 disableOnInteraction: false, 242 }, 243 navigation: { 244 nextEl: '.swiper-button-next', 245 prevEl: '.swiper-button-prev', 246 }, 247 }); 248 249 var teamSlider = new Swiper('.team-slider', { 250 slidesPerView: 1, 251 spaceBetween: 24, 252 navigation: { 253 nextEl: '.team-slider__right', 254 prevEl: '.team-slider__left', 255 }, 256 breakpoints: { 257 640: { 258 slidesPerView: 2 259 }, 260 900: { 261 slidesPerView: 2.5 262 }, 263 }, 264 }); 265 266 var teamSlider2 = new Swiper('.team-slider2', { 267 slidesPerView: 1, 268 spaceBetween: 24, 269 navigation: { 270 nextEl: '.team-slider__right', 271 prevEl: '.team-slider__left', 272 }, 273 breakpoints: { 274 275 900: { 276 slidesPerView: 1.5 277 }, 278 }, 279 }); 280 281 var news = $('.sww--js'); 282 if ($(window).width() < 1024) { 283 partners.addClass('owl-carousel'); 284 partners.owlCarousel(partners_Settings); 285 news.addClass('swiper-news'); 286 news_sw = new Swiper('.swiper-news', { 287 slidesPerView: 'auto', 288 spaceBetween: 0, 289 pagination: { 290 el: '.swiper-pagination-news', 291 clickable: true, 292 } 293 }); 294 } 295 $(window).resize(function() { 296 if ($(window).width() < 1024) { 297 partners.addClass('owl-carousel'); 298 partners.owlCarousel(partners_Settings); 299 news.addClass('swiper-news'); 300 news_sw = new Swiper('.swiper-news', { 301 slidesPerView: 'auto', 302 spaceBetween: 0, 303 pagination: { 304 el: '.swiper-pagination-news', 305 clickable: true, 306 } 307 }); 308 } else { 309 news.removeClass('swiper-news'); 310 news_sw.destroy(); 311 news_sw = null; 312 partners.trigger('destroy.owl.carousel').removeClass('owl-carousel owl-loaded'); 313 partners.find('.owl-stage-outer').children().unwrap(); 314 } 315 }); 316 $('.js-gamb').click(function() { 317 $('.main-nav__list').toggleClass('open'); 318 $('.js-menu-back').toggle(); 319 $(this).toggleClass('open'); 320 $("body").toggleClass('overflow_hide'); 321 }); 322 $(document).mouseup(function(e) { 323 var div = $(".main-nav__list"); 324 if (!div.is(e.target) && div.has(e.target).length === 0 && div.hasClass('open')) { 325 div.removeClass('open'); 326 $('.js-gamb').removeClass('open'); 327 $('.js-menu-back').hide(); 328 $("body").removeClass('overflow_hide'); 329 } 330 var mobile_menu = $(".header__phones--mobile"); 331 if (!mobile_menu.is(e.target) && mobile_menu.has(e.target).length === 0 && mobile_menu.hasClass('active')) { 332 mobile_menu.removeClass('active'); 333 $('.js-menu-back').hide(); 334 $("body").removeClass('overflow_hide'); 335 } 336 }); 337 $('.gallery__more').on('click', function() { 338 $('a[data-fancybox=\'gallery\']').eq(0).trigger('click'); 339 return false;
340 }); 341 $(".adapt__more").click(function() { 342 $(this).remove(); 343 $(".sidebar-block.adapt").css({ 344 "max-height": "max-content" 345 }); 346 }); 347 $(".header__phone-link").click(function() { 348 $(".header__phones--mobile").toggleClass("active"); 349 $('.js-menu-back').toggle(); 350 $("body").toggleClass('overflow_hide'); 351 return false; 352 }); 353 $(".close--btn--amenu").click(function() { 354 $('.js-gamb').toggleClass('open'); 355 $('.js-menu-back').hide(); 356 $('.main-nav__list').removeClass('open'); 357 $("body").removeClass('overflow_hide'); 358 }); 359 if ($(window).width() < 769) { 360 $(".footer-menu__title").click(function() { 361 $(this).next().toggle(300); 362 $(this).toggleClass("active"); 363 }); 364 } 365 $(".dopinfo_link").on('click', function() { 366 $(this).hide(); 367 $(this).next().show(); 368 }); 369 370 /** 371 * adaptive 372 */ 373 if( $(window).width() > 1777 ) { 374 $(".main-content__left").css({ 'min-height': $(".main-content__right").height() + 'px' }); 375 } 376 377});
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.