1window.addEventListener('scroll', function () { 2 let header1 = document.getElementById('head_above-nav'); 3 let header2 = document.getElementById('main-header'); 4 let lastScrollTop = 0; 5 6 let scrollTop = document.documentElement.scrollTop || document.body.scrollTop; 7 if (scrollTop > lastScrollTop) { 8 header1.classList.add('hidden'); 9 header2.classList.add('sticky'); 10 } else { 11 header1.classList.remove('hidden'); 12 header2.classList.remove('sticky'); 13 } 14 lastScrollTop = scrollTop; 15}); 16 17document.addEventListener('DOMContentLoaded', function() { 18 document.getElementById('close-search').addEventListener('click', function() { 19 var contentBlock = document.getElementById('search-form'); 20 contentBlock.style.display = 'none'; 21 console.log('click'); 22 }); 23});
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.