1// Get the button 2let mybutton = document.getElementById("topButton"); 3 4// When the user scrolls down 20px from the top of the document, show the button 5window.onscroll = function() {scrollFunction()}; 6 7function scrollFunction() { 8 if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 9 mybutton.style.display = "block"; 10 } else { 11 mybutton.style.display = "none"; 12 13 } 14} 15 16// When the user clicks on the button, scroll to the top of the document 17function topFunction() { 18 document.body.scrollTop = 0; 19 document.documentElement.scrollTop = 0; 20}
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.