1(function($) { 2 $(document).ready(function(){ 3 $(window).scroll(function () { 4 var currentScrollTop = $(window).scrollTop(), 5 navbar = $('.navbar'); 6 if (currentScrollTop > 60) { 7 navbar.addClass('navbar-sticky'); 8 } else { 9 navbar.removeClass('navbar-sticky'); 10 } 11 }).scroll(); 12 13 $('#navigation').on('show.bs.collapse', function(e) { 14 if ($(this).is(e.target)) { 15 $('.navbar').addClass('navbar-active'); 16 } 17 }).on('hidden.bs.collapse', function(e) { 18 if ($(this).is(e.target)) { 19 $('.navbar').removeClass('navbar-active'); 20 } 21 }); 22 23 $('.navbar-nav [data-bs-toggle=dropdown]').on('hidden.bs.dropdown show.bs.dropdown', function(){ 24 $(this).parents('.row').toggleClass('menu-view'); 25 }); 26 27 28 $('a[href*=\\#]:not([href=\\#], [data-bs-toggle], [data-bs-target], [data-bs-slide])').on('click', function() { 29 if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { 30 var target = $(this.hash); 31 var headerHeight = $('.navbar').outerHeight(); 32 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 33 if (target.length) { 34 $('html, body').animate({ 35 scrollTop: target.offset().top - headerHeight 36 }, 1000); 37 return false; 38 } 39 } 40 }); 41 42 $('.js-carousel').slick(); 43 44 $('.hero-slider').on('afterChange', function(event, slick, currentSlide){ 45 if (currentSlide === slick.slideCount - 1) { 46 $(this).slick('slickPause'); // Pause the autoplay 47 } 48 }); 49 50 $(window).on('resize', function() { 51 $('.hero-slider').slick('resize'); 52 }); 53 54 var mySwiper = new Swiper('.cover-slider', { 55 loop: true, 56 speed: 800, 57 effect: 'coverflow', 58 grabCursor: true, 59 centeredSlides: true, 60 initialSlide: 2, 61 slidesPerView: 'auto', 62 coverflowEffect: { 63 rotate: 0, 64 stretch: 0, 65 depth: 100, 66 modifier: 4, 67 }, 68 navigation: { 69 nextEl: '.swiper-button-next', 70 prevEl: '.swiper-button-prev', 71 }, 72 autoplay: { 73 delay: 4500, 74 disableOnInteraction: true, 75 }, 76 }); 77 78 const counterUp = window.counterUp.default; 79 const IO = new IntersectionObserver(entries => { 80 entries.forEach(entry => { 81 if (entry.isIntersecting && !$(entry.target).hasClass('is-visible')) { 82 $('.counter').each(function () { 83 counterUp(this, { duration: 2000, delay: 16 }); 84 }).addClass('is-visible'); 85 } 86 }); 87 }, { threshold: 1 }); 88 89 $('.counter').each(function () { IO.observe(this); }); 90 91 const TL = new IntersectionObserver(entries => { 92 entries.forEach(entry => { 93 if (entry.isIntersecting) { 94 $(entry.target).addClass('is-visible'); 95 } else { 96 $(entry.target).removeClass('is-visible'); 97 } 98 }); 99 }, { threshold: 0.9 }); // Trigger when 90% is visible 100 101 102 }); 103})(jQuery);
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.