1function setScrollbarWidthVariable() { 2 // window.innerWidth = viewport including scrollbars 3 // documentElement.clientWidth = viewport excluding scrollbars 4 const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth; 5 6 // Set as CSS variable on <html> (root) 7 document.documentElement.style.setProperty("--scrollbar-width", `${scrollbarWidth}px`); 8} 9 10// Run on load 11setScrollbarWidthVariable(); 12// Run on resize 13window.addEventListener("resize", setScrollbarWidthVariable);
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.