1(function() { 2 const topBar = document.querySelector('#top-bar'); 3 4 const header7Init = () => { 5 window.addEventListener('scroll', () => { 6 const headerHeight = document.querySelector('header')?.getBoundingClientRect().height; 7 const navbarHeight = document.querySelector('#top-bar')?.getBoundingClientRect().height; 8 topBar?.classList.toggle('sticky', window.scrollY > headerHeight - navbarHeight); 9 }) 10 } 11 12 // comment out if not used 13 header7Init(); 14})()
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.