1export default function scrollReveal() { 2 const revealPoint = 100 3 const revealElement = document.querySelectorAll(".scrollreveal") 4 for (var i = 0; i < revealElement.length; ++i) { 5 var windowHeight = window.innerHeight 6 var revealTop = revealElement[i].getBoundingClientRect().top 7 if (revealTop < windowHeight - revealPoint) { 8 revealElement[i].classList.add("isreveal") 9 revealElement[i].classList.remove("scrollreveal") 10 } else { 11 revealElement[i].classList.remove("isreveal") 12 revealElement[i].classList.add("scrollreveal") 13 } 14 } 15}
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.