1$(() => { 2 new Swiper('.hero-slider', { 3 effect: 'fade', 4 loop: true, 5 speed: 1000, 6 pagination: { 7 el: '.hero-slider .swiper-pagination', 8 clickable: true, 9 }, 10 autoplay: { 11 delay: 3000, 12 disableOnInteraction: false, 13 }, 14 }) 15 16 new Swiper('.info-images-slider', { 17 loop: true, 18 speed: 500, 19 navigation: { 20 nextEl: '.info-images-slider .arrow-right', 21 prevEl: '.info-images-slider .arrow-left', 22 }, 23 }) 24 25 new Swiper('.offers-slider', { 26 speed: 500, 27 slidesPerView: 1, 28 spaceBetween: 24, 29 pagination: { 30 el: '.offers-slider .swiper-pagination', 31 clickable: true, 32 }, 33 breakpoints: { 34 768: { 35 slidesPerView: 2, 36 }, 37 992: { 38 slidesPerView: 3, 39 }, 40 }, 41 }) 42 43 new Swiper('.hotel-cities-slider-3', { 44 speed: 500, 45 slidesPerView: 1, 46 spaceBetween: 12, 47 navigation: { 48 nextEl: '.hotel-cities-slider .arrow-right', 49 prevEl: '.hotel-cities-slider .arrow-left', 50 }, 51 breakpoints: { 52 768: { 53 slidesPerView: 2, 54 }, 55 992: { 56 slidesPerView: 3, 57 }, 58 }, 59 }) 60 61 new Swiper('.hotel-cities-slider-2', { 62 speed: 500, 63 slidesPerView: 1, 64 spaceBetween: 12, 65 navigation: { 66 nextEl: '.hotel-cities-slider .arrow-right', 67 prevEl: '.hotel-cities-slider .arrow-left', 68 }, 69 breakpoints: { 70 768: { 71 slidesPerView: 2, 72 }, 73 }, 74 }) 75 76 new Swiper('.hotel-cities-slider-2', { 77 speed: 500, 78 slidesPerView: 1, 79 spaceBetween: 12, 80 navigation: { 81 nextEl: '.hotel-cities-slider .arrow-right', 82 prevEl: '.hotel-cities-slider .arrow-left', 83 }, 84 breakpoints: { 85 768: { 86 slidesPerView: 2, 87 }, 88 }, 89 }) 90 91 new Swiper('.hotel-cities-slider-1', { 92 speed: 500, 93 slidesPerView: 1, 94 spaceBetween: 12, 95 navigation: { 96 nextEl: '.hotel-cities-slider .arrow-right', 97 prevEl: '.hotel-cities-slider .arrow-left', 98 }, 99 }) 100 101 102 $('.carousel-2-rows').slick({ 103 dots: true, 104 slidesPerRow: 2, 105 rows: 2, 106 /*rows: 2, 107 slidesPerRow: 3,*/ 108 arrows: false, 109 responsive: [ 110 { 111 breakpoint: 576, 112 settings: { 113 slidesPerRow: 1, 114 rows: 2 115 } 116 }, 117 { 118 breakpoint: 768, 119 settings: { 120 slidesPerRow: 1, 121 rows: 2 122 } 123 }, 124 { 125 breakpoint: 992, 126 settings: { 127 slidesPerRow: 2, 128 rows: 2 129 } 130 } 131 ] 132}) 133 134 135$('.carousel-3-rows').slick({ 136 dots: true, 137 slidesPerRow: 3, 138 rows: 2, 139 /*rows: 2, 140 slidesPerRow: 3,*/ 141 arrows: false, 142 responsive: [ 143 { 144 breakpoint: 576, 145 settings: { 146 slidesPerRow: 1, 147 rows: 2 148 } 149 }, 150 { 151 breakpoint: 768, 152 settings: { 153 slidesPerRow: 1, 154 rows: 2 155 } 156 }, 157 { 158 breakpoint: 992, 159 settings: { 160 slidesPerRow: 3, 161 rows: 2 162 } 163 } 164 ] 165}) 166 167 168 169 170 if ($('body').slick) { 171 $('.main-offers-slider .slick').slick({ 172 centerMode: true, 173 centerPadding: '60px', 174 slidesToShow: 3, 175 prevArrow: '<div class="arrow arrow-left d-flex justify-content-center align-items-center"><span class="fas fa-chevron-left"></span></div>', 176 nextArrow: '<div class="arrow arrow-right d-flex justify-content-center align-items-center"><span class="fas fa-chevron-right"></span></div>', 177 responsive: [ 178 { 179 breakpoint: 991, 180 settings: { 181 slidesToShow: 2, 182 }, 183 }, 184 { 185 breakpoint: 768, 186 settings: { 187 slidesToShow: 1, 188 centerPadding: '16px', 189 }, 190 }, 191 ], 192 }) 193 194 $('.offers-slick-slider').slick({ 195 centerMode: false, 196 centerPadding: '20px', 197 slidesToShow: 1, 198 mobileFirst: true, 199 appendArrows: '.offers-arrows', 200 responsive: [ 201 { 202 breakpoint: 768, 203 settings: { 204 slidesToShow: 1, 205 centerPadding: '16px', 206 } 207 }, 208 209 210 211 { 212 breakpoint: 991, 213 settings: { 214 slidesToShow: 2, 215 }, 216 }, 217 { 218 breakpoint: 1200, 219 settings: { 220 slidesToShow: 3, 221 }, 222 } 223 ] 224 }); 225 }; 226 227 new Swiper('.slider-section-swiper', { 228 loop: true, 229 autoplay: { 230 delay: 5000, 231 disableOnInteraction: false, 232 }, 233 pagination: { 234 el: '.slider-section-swiper .swiper-pagination', 235 clickable: true, 236 }, 237 }) 238
239 new Swiper('.text-slider-swiper', { 240 loop: true, 241 pagination: { 242 el: '.text-slider-swiper .swiper-pagination', 243 clickable: true, 244 }, 245 }) 246 247 new Swiper('.slider3', { 248 loop: true, 249 slidesPerView: 1, 250 spaceBetween: 15, 251 breakpoints: { 252 '580': { 253 slidesPerView: 1, 254 spaceBetween: 15,}, 255 '780': { 256 slidesPerView: 2, 257 spaceBetween: 15, }, 258 '1270': { 259 slidesPerView: 3, 260 spaceBetween: 15, }, 261 }, 262 navigation: { 263 prevEl: '.slider3 .swiper-button-prev', 264 nextEl: '.slider3 .swiper-button-next', 265 }, 266 autoplay: { 267 delay: 3000, 268 disableOnInteraction: false, 269 } 270 }) 271 272 273 new Swiper('.feedback-slider', { 274 loop: true, 275 speed: 800, 276 autoplay: { 277 delay: 5000, 278 disableOnInteraction: false, 279 }, 280 pagination: { 281 el: '.feedback-slider .swiper-pagination', 282 clickable: true, 283 }, 284 }) 285 286 let countFinished 287 288 $(window).on('scroll', () => { 289 $('.overview-images .img-box:last-child img').css('transform', `translateY(-${window.scrollY * 0.1}px)`) 290 291 if ($('.feedback-images img:last-child').length) { 292 $('.feedback-images img:last-child').css('transform', `translateY(-${(window.scrollY - $('.feedback-images').get(0).getBoundingClientRect().top) * 0.1}px)`) 293 } 294 295 if ($('.stats-section').get(0)) { 296 if ($('.stats-section').get(0).getBoundingClientRect().top < window.innerHeight) { 297 if (!countFinished) { 298 $('.count-to').countTo({ speed: 1500 }) 299 countFinished = true 300 } 301 } 302 303 if ($('.stats-section').get(0).getBoundingClientRect().top < window.innerHeight / 3) { 304 if ($('body.black-theme').length) { 305 $('.stats-section').addClass('black-section black-stats') 306 } 307 } 308 } 309 310 if (window.scrollY > 0) { 311 $('header.navbar').addClass('fixed') 312 } else { 313 $('header.navbar').removeClass('fixed') 314 } 315 316 if (window.scrollY > window.innerHeight) { 317 $('.tooltip-iframe').removeClass('d-none') 318 } else { 319 $('.tooltip-iframe').addClass('d-none') 320 } 321 322 if (window.scrollY > window.innerHeight) { 323 $('.float-socials').addClass('show') 324 } else { 325 $('.float-socials').removeClass('show') 326 } 327 }) 328 329 $('.tooltip-iframe').hover(function () { 330 $('.full-iframe').toggleClass('d-none') 331 }) 332 333 $('.hero-play').click(function () { 334 if ($('.hero-video').get(0).paused) { 335 $(this).removeClass('fa-play') 336 $(this).addClass('fa-pause') 337 $('.hero-video').get(0).play() 338 } else { 339 $(this).removeClass('fa-pause') 340 $(this).addClass('fa-play') 341 $('.hero-video').get(0).pause() 342 } 343 }) 344 345 if ($('.faq-accordion').accordion) { 346 $('.faq-accordion').accordion({ 347 collapsible: true, 348 active: null, 349 }) 350 } 351 352 $('.date-input').click(function () { 353 $(this).find('input[type=date]').get(0).showPicker() 354 }) 355 356 $('.date-input input').on('change', function (e) { 357 $(this).parent().find('.text').text(e.target.value) 358 }) 359 360 $('.slider-point').on('mouseover', function () { 361 $('.slider-point').removeClass('active') 362 $(this).addClass('active') 363 364 $('.point-content').css('display', 'none') 365 $(`.point-content[data-point-content=${$(this).data('point')}]`).css('display', 'block') 366 }) 367 368 $('.hotels-column select').on('change', function () { 369 if (!$(`.hotels-column .city-grid[data-city=${$(this).val()}]`).length) { 370 return 371 } 372 373 $('.hotels-column .city-grid').css('display', 'none') 374 $(`.hotels-column .city-grid[data-city=${$(this).val()}]`).css('display', 'grid') 375 }) 376 377 $('.hotels-city-select').on('change', function () { 378 if ($(this).val() === 'city' || $(this).val() === 'category') { 379 $('.cities-list').css('display', 'none') 380 $(`.cities-list[data-option=${$(this).val()}]`).css('display', 'block') 381 382 $('.cities-list-slider-wrap').css('display', 'block') 383 $('.map-section').css('display', 'none') 384 } else { 385 $('.cities-list-slider-wrap').css('display', 'none') 386 $('.map-section').css('display', 'flex') 387 } 388 }) 389 390 new Swiper('.newsletter-images-slider', { 391 loop: true, 392 speed: 500, 393 autoplay: { 394 delay: 3000, 395 disableOnInteraction: false, 396 }, 397 }) 398 399 new Swiper('.border-slider', { 400 pagination: { 401 el: '.orange-box .swiper-pagination', 402 clickable: true, 403 }, 404 speed: 500, 405 }) 406 407 new Swiper('.orange-box-slider', { 408 effect: 'fade', 409 pagination: { 410 el: '.orange-box .swiper-pagination', 411 clickable: true, 412 },
413 speed: 800, 414 }); 415 416 $('.cities-list .city').click(function () { 417 $('.cities-list .city').removeClass('active'); 418 $(this).addClass('active') 419 420 $('.cities-offers').addClass('d-none'); 421 const tab = $(`.cities-offers[data-filter=${$(this).data('filter')}]`); 422 tab.removeClass('d-none'); 423 tab.find('.slick').slick('reinit'); 424 }); 425 426 427 428 429 $(".section-tabs .nav-link").hover(function(){ 430 //$(this).click(); 431 }); 432 433 434 435 436 const sections = $([...$('section')].filter(section => $(section).height() > 200)); 437 438 sections.each(function (i) { 439 $(this).append(`<span class="tech-letter">${String.fromCodePoint(97 + i)}</span>`); 440 441 if (!$(this).hasClass('position-relative')) { 442 $(this).addClass('position-relative'); 443 } 444 }); 445}); 446 447 448var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) 449var popoverList = popoverTriggerList.map(function(popoverTriggerEl) { 450 return new bootstrap.Popover(popoverTriggerEl); 451}); 452 453 454 455 456 457 458 459/* 460const mq = window.matchMedia( "(min-width: 960px)" ); 461 462if (mq.matches) { 463 $('.nav-link a').parent().hover(function () { 464 $(this).find('.dropdown-menu').addClass('d-block'); 465 $(this).addClass('submenu-open'); 466 }); 467 468 $('.nav-link a').parent().on('mouseleave', function () { 469 $(this).parent().find('.dropdown-menu').removeClass('d-block'); 470 $(this).addClass('remove-open'); 471 }); 472 473 474} else { 475 $('.nav .nav-link:has(> ul)').addClass('hasSubMenu'); 476 477 $('.nav-link.hasSubMenu > a').on("click", function(e){ 478 e.preventDefault(); 479 $(this).next('ul.dropdown-menu').toggle(); 480 $(this).closest('.nav-link.hasSubMenu').toggleClass('open'); 481 }); 482 483}; 484*/ 485 486 487const mq = window.matchMedia("(min-width: 960px)"); 488 489// Funkcja pomocnicza do obsÅugi linków-rodziców 490function handleParentLinks(isDesktop) { 491 // Szukamy linków 'a', które majÄ obok siebie listÄ rozwijanÄ (rodziców) 492 const $parentLinks = $('.nav-link:has(ul.dropdown-menu) > a'); 493 494 if (isDesktop) { 495 $parentLinks.each(function() { 496 // Usuwamy atrybut href i blokujemy klikniÄcie 497 $(this).removeAttr('href'); 498 $(this).css('cursor', 'default'); // Wizualna wskazówka, że nie jest to link 499 $(this).on('click', function(e) { 500 e.preventDefault(); 501 }); 502 }); 503 } 504} 505 506if (mq.matches) { 507 // WywoÅujemy blokowanie linków dla desktopu 508 handleParentLinks(true); 509 510 // Twoja logika Hover 511 $('.nav-link').has('ul.dropdown-menu').hover( 512 function () { 513 $(this).find('.dropdown-menu').addClass('d-block'); 514 $(this).addClass('submenu-open').removeClass('remove-open'); 515 }, 516 function () { 517 $(this).find('.dropdown-menu').removeClass('d-block'); 518 $(this).addClass('remove-open').removeClass('submenu-open'); 519 } 520 ); 521 522} else { 523 // Logika dla Mobile (poniżej 960px) 524 $('.nav .nav-link:has(> ul)').addClass('hasSubMenu'); 525 526 $('.nav-link.hasSubMenu > a').on("click", function(e){ 527 e.preventDefault(); 528 // PrzeÅÄ czanie widocznoÅci podmenu 529 $(this).next('ul.dropdown-menu').toggle(); 530 $(this).closest('.nav-link.hasSubMenu').toggleClass('open'); 531 }); 532} 533 534 535 536 537 538 539 540 541$(document).ready(function(){ 542 $('h1').each(function(){ 543 if($(this).length > 0) { 544 var $html = $(this).html(); 545 $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); 546 $(this).empty().html($html); 547 } 548 }); 549 $('h2').each(function(){ 550 if($(this).length > 0) { 551 var $html = $(this).html(); 552 $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); 553 $(this).empty().html($html); 554 } 555 }); 556 $('h3').each(function(){ 557 if($(this).length > 0) { 558 var $html = $(this).html(); 559 $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); 560 $(this).empty().html($html); 561 } 562 }); 563 $('h4').each(function(){ 564 if($(this).length > 0) { 565 var $html = $(this).html(); 566 $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); 567 $(this).empty().html($html); 568 } 569 }); 570}); 571
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.