1// Get the navbar 2//var navbar = document.getElementById("header-menu"); 3//var sticky = navbar.offsetTop; 4//var sticky = navbar.offsetHeight 5 6 7//Get the back to top button: 8// Set a variable for our button element. 9// 09/14 var backToTopBtn = document.getElementById("btnBackToTop"); 10 11// Capture the scroll function for Sticky Nav and Back To Top button 12// 09/14 window.onload = function() {scrollFunction()}; 13// 09/14 window.onscroll = function() {scrollFunction()}; 14 15// 09/14 function scrollFunction() { 16 //Sticky Nav 17// 09/14 if (window.pageYOffset >= sticky) { 18// 09/14 navbar.classList.add("sticky") 19// 09/14 } else { 20// 09/14 navbar.classList.remove("sticky"); 21// 09/14 } 22 23 //Back To Top 24// 09/14 if (document.body.scrollTop > sticky || document.documentElement.scrollTop > sticky) { 25// 09/14 backToTopBtn.style.display = "block"; 26// 09/14 } else { 27// 09/14 backToTopBtn.style.display = "none"; 28// 09/14 } 29// 09/14 } 30 31// ScrolltoTop function 32// 09/14 var scrollToTop = () => { 33// 09/14 window.scrollTo(0, 0); 34// 09/14 }; 35 // When the button is clicked, run our ScrolltoTop function above! 36// 09/14 backToTopBtn.onclick = function(e) { 37// 09/14 e.preventDefault(); 38// 09/14 scrollToTop(); 39// 09/14 } 40 41//Force List Mode if the screen is resized to mobile 42function hideVariantSwitcher(x) { 43 if (x.matches) { // If media query matches 44 var url = window.location.href; 45 if (url.indexOf("_v=1") > 0) { 46 url = url.replace("_v=1",""); 47 window.location = url; 48 } 49 } 50} 51var x = window.matchMedia("(max-width: 990px)") 52hideVariantSwitcher(x) // Call listener function at run time 53x.addListener(hideVariantSwitcher) // Attach listener function on state changes 54 55 56function getAllResults(y) { 57 var url = window.location.href; 58 if (url.indexOf("151274DB-AB4A-4BC3-AC34-75BB26C25FF9") > 0) { 59 url = url.replace("p=1", ""); 60 window.location = url; 61 } 62} 63var y = window.matchMedia("(max-width: 990px)") 64getAllResults(y) // Call listener function at run time 65y.addListener(hideVariantSwitcher) // Attach listener function on state changes
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.