PageSourceSearch

https://www.swu.edu/_js/scroll-animations.js

js swu.edu collected 2026-10-02 03:22:41 UTC 567 bytes, 18 lines download raw bytes

1function revealOnScroll() {
2    var scrollReveal = $(".scroll-reveal");
3
4    for (var i = 0; i < scrollReveal.length; i++) {
5        var windowHeight = window.innerHeight;
6        var windowTop = scrollReveal[i].getBoundingClientRect().top;
7        
8        if (windowTop <= windowHeight - 20){
9            scrollReveal[i].classList.add("scroll-active"); 
10              
11        }else{
12            scrollReveal[i].classList.remove("scroll-active");
13        }
14    }
15}
16
17window.addEventListener("load", revealOnScroll);
18window.addEventListener("scroll", revealOnScroll);

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.