1jQuery(document).ready(function ($) { 2 jQuery(document).on("scroll", onScroll); 3 onepageNavLinks = jQuery('.onepage .t4-navbar .nav-link'); 4 5 AOS.init({ 6 duration: 1200, 7 once: true, 8 disable: function () { 9 var maxWidth = 992; 10 return window.innerWidth < maxWidth; 11 } 12 }); 13 14 function onScroll(event) { 15 var scrollPos = jQuery(document).scrollTop(); 16 onepageNavLinks.each(function () { 17 var currLink = jQuery(this); 18 var refElement = jQuery(currLink.attr("href")); 19 if (refElement.position().top <= scrollPos /* && refElement.position().top + refElement.height() > scrollPos*/) { 20 onepageNavLinks.removeClass("active"); 21 currLink.addClass("active"); 22 } 23 else { 24 currLink.removeClass("active"); 25 } 26 }); 27 } 28 29 // Isotope 30 var $container = jQuery('.view-masonry .items-row'); 31 32 if ($container.length) { 33 $container.isotope({ 34 itemSelector: '.item', 35 gutter: 0, 36 percentPosition: true, 37 masonry: { 38 horizontalOrder: true, 39 } 40 }); 41 42 43 // re-order when images loaded 44 $container.imagesLoaded(function () { 45 $container.isotope(); 46 47 setTimeout (function() { 48 $container.isotope(); 49 }, 2000); 50 }); 51 }; 52 53 // Theme switcher 54 if ($('.ja-dark-mode').length > 0) { 55 const cookieId = $('body').attr('jadark-cookie-id'); 56 57 function setTheme() { 58 JATheme = $('body').hasClass('dark-active') ? 'isActive' : 'notActive'; 59 $.cookie(cookieId, JATheme, { path: '/' }); 60 } 61 62 $(".ja-dark-mode").click(function () { 63 $('body').toggleClass('dark-active'); 64 setTheme(); 65 }); 66 }; 67 68 // Add Class For Section 69 if ($('.t4-mod-wrap').length > 0) { 70 $('.t4-mod-wrap').each(function() { 71 var $bgColor = $(this).attr('data-bg-color'); 72 if($bgColor != 'bg-default') { 73 $(this).parents('.t4-section').addClass($bgColor); 74 } 75 }); 76 }; 77 78 79}); 80 81function jsAdvanceSearchResultsNotice(click) { 82 document.getElementById("notice").style.display = 'none'; 83}
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.