1function initHSHeader() { 2 // As of 21/06/2022 this initialization is done in the useEffect hook on the navigation component 3 /* Sticky top header init */ 4 if($('.js-mega-menu')) { 5 // initialization of header 6 var header = new HSHeader($('#header')).init(); 7 // initialization of mega menu 8 var megaMenu = new HSMegaMenu($('.js-mega-menu')).init(); 9 } 10 /* Sticky top header end */ 11} 12 13/* Stats 1 init */ 14function initCounter() { 15 // initialization of counter 16 $('.js-counter').each(function() { 17 var counter = new HSCounter($(this)).init(); 18 }); 19} 20/* Stats 1 end */ 21 22// initialization of fancybox 23function initFancybox() { 24 $('.js-fancybox').each(function () { 25 var fancybox = $.HSCore.components.HSFancyBox.init($(this)); 26 }); 27} 28 29function initSidebar() { 30 // initialization of sticky blocks 31 $('.js-sticky-block').each(function () { 32 var stickyBlock = new HSStickyBlock($(this)).init(); 33 }); 34} 35 36function initValidation() { 37 $('.js-validate').each(function () { 38 var validation = $.HSCore.components.HSValidation.init($(this)); 39 }); 40} 41 42function initCarousel() { 43 $( document ).ready(function() { 44 $('.js-slick-carousel').each(function() { 45 if($(this).hasClass('slick-initialized')) return; 46 var slickCarousel = $.HSCore.components.HSSlickCarousel.init($(this)); 47 }); 48 }); 49} 50 51function initScrollNav() { 52 $('.js-scroll-nav').each(function () { 53 var scrollNav = new HSScrollNav($(this)).init(); 54 }); 55} 56 57function initAOS() { 58 AOS.init({ 59 duration: 650, 60 once: true 61 }); 62} 63 64function initPrism() { 65 Prism.highlightAll(); 66}
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.