1/* 2* Custom js file to implement functionality to the theme 3* 4* 5*/ 6 7// Function to add menu hiding on scroll when on desktop view 8var lastScrollTop = 0; 9 10window.addEventListener( 11 "scroll", 12 function() { 13 var st = window.pageYOffset || document.documentElement.scrollTop; 14 15 if (st > lastScrollTop) { 16 17 document.getElementById("site-header").classList.add("hiding"); 18 } else { 19 20 document.getElementById("site-header").classList.remove("hiding"); 21 } 22 lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling 23 }, 24 false 25);
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.