PageSourceSearch

https://www.holidayinsights.com/wp-content/cache/min/1/wp-content/…/assets/js/main.js?ver=1775335098

js holidayinsights.com collected 2026-09-24 17:34:24 UTC 4,004 bytes, 39 lines download raw bytes

1(function(){"use strict";const select=(el,all=!1)=>{el=el.trim()
2if(all){return[...document.querySelectorAll(el)]}else{return document.querySelector(el)}}
3const on=(type,el,listener,all=!1)=>{let selectEl=select(el,all)
4if(selectEl){if(all){selectEl.forEach(e=>e.addEventListener(type,listener))}else{selectEl.addEventListener(type,listener)}}}
5const onscroll=(el,listener)=>{el.addEventListener('scroll',listener)}
6let navbarlinks=select('#navbar .scrollto',!0)
7const navbarlinksActive=()=>{let position=window.scrollY+200
8navbarlinks.forEach(navbarlink=>{if(!navbarlink.hash)return
9let section=select(navbarlink.hash)
10if(!section)return
11if(position>=section.offsetTop&&position<=(section.offsetTop+section.offsetHeight)){navbarlink.classList.add('active')}else{navbarlink.classList.remove('active')}})}
12window.addEventListener('load',navbarlinksActive)
13onscroll(document,navbarlinksActive)
14const scrollto=(el)=>{let header=select('#header')
15let offset=header.offsetHeight
16let elementPos=select(el).offsetTop
17window.scrollTo({top:elementPos-offset,behavior:'smooth'})}
18let selectHeader=select('#header')
19if(selectHeader){const headerScrolled=()=>{if(window.scrollY>100){selectHeader.classList.add('header-scrolled')}else{selectHeader.classList.remove('header-scrolled')}}
20window.addEventListener('load',headerScrolled)
21onscroll(document,headerScrolled)}
22let backtotop=select('.back-to-top')
23if(backtotop){const toggleBacktotop=()=>{if(window.scrollY>100){backtotop.classList.add('active')}else{backtotop.classList.remove('active')}}
24window.addEventListener('load',toggleBacktotop)
25onscroll(document,toggleBacktotop)}
26on('click','.mobile-nav-toggle',function(e){select('#navbar').classList.toggle('navbar-mobile')
27this.classList.toggle('bi-list')
28this.classList.toggle('bi-x')})
29on('click','.navbar .dropdown > a',function(e){if(select('#navbar').classList.contains('navbar-mobile')){e.preventDefault()
30this.nextElementSibling.classList.toggle('dropdown-active')}},!0)
31on('click','.scrollto',function(e){if(select(this.hash)){e.preventDefault()
32let navbar=select('#navbar')
33if(navbar.classList.contains('navbar-mobile')){navbar.classList.remove('navbar-mobile')
34let navbarToggle=select('.mobile-nav-toggle')
35navbarToggle.classList.toggle('bi-list')
36navbarToggle.classList.toggle('bi-x')}
37scrollto(this.hash)}},!0)
38window.addEventListener('load',()=>{if(window.location.hash){if(select(window.location.hash)){scrollto(window.location.hash)}}});let preloader=select('#preloader');if(preloader){window.addEventListener('load',()=>{preloader.remove()})}
39new Swiper('.clients-slider',{speed:400,loop:!0,autoplay:{delay:5000,disableOnInteraction:!1},slidesPerView:'auto',pagination:{el:'.swiper-pagination',type:'bullets',clickable:!0},breakpoints:{320:{slidesPerView:2,spaceBetween:40},480:{slidesPerView:3,spaceBetween:60},640:{slidesPerView:4,spaceBetween:80},992:{slidesPerView:6,spaceBetween:120}}});window.addEventListener('load',()=>{let portfolioContainer=select('.portfolio-container');if(portfolioContainer){let portfolioIsotope=new Isotope(portfolioContainer,{itemSelector:'.portfolio-item'});let portfolioFilters=select('#portfolio-flters li',!0);on('click','#portfolio-flters li',function(e){e.preventDefault();portfolioFilters.forEach(function(el){el.classList.remove('filter-active')});this.classList.add('filter-active');portfolioIsotope.arrange({filter:this.getAttribute('data-filter')});portfolioIsotope.on('arrangeComplete',function(){AOS.refresh()})},!0)}});const portfolioLightbox=GLightbox({selector:'.portfolio-lightbox'});new Swiper('.portfolio-details-slider',{speed:400,loop:!0,autoplay:{delay:5000,disableOnInteraction:!1},pagination:{el:'.swiper-pagination',type:'bullets',clickable:!0}});new Swiper('.testimonials-slider',{speed:600,loop:!0,autoplay:{delay:5000,disableOnInteraction:!1},slidesPerView:'auto',pagination:{el:'.swiper-pagination',type:'bullets',clickable:!0}});window.addEventListener('load',()=>{AOS.init({duration:1000,easing:"ease-in-out",once:!0,mirror:!1})})})()

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.