PageSourceSearch

https://gfny.com/wp-content/themes/yootheme-gfny/js/inpage-anchors.js

js gfny.com collected 2026-10-01 12:15:09 UTC 1,349 bytes, 47 lines download raw bytes

1jQuery(document).ready(function () {
2    if (window.location.hash) {
3
4        const target = document.querySelector("a[data-target='" + window.location.hash.substring(1) + "']");
5        
6        let scrollCompleted = false;
7        let shownOnLoad = false;
8        let wasChecked = false;
9
10        const handleOnScreen = (entries, observer) => {
11            console.log("handleOnScren")
12            entries.forEach(entry => {
13
14                if(entry.isIntersecting){
15                    if(!wasChecked){
16                        shownOnLoad = true;
17                    }
18                    scrollCompleted = true;
19                }         
20                wasChecked = true;
21            });
22        }
23        
24        const observer = new IntersectionObserver(handleOnScreen);
25        observer.observe(target);
26
27        let offset = 0
28
29        function step() {
30          
31
32            if(scrollCompleted && !shownOnLoad){
33                offset += 50;
34            } 
35            
36            if(offset < (shownOnLoad ? 0 : window.innerHeight - 200)) {
37                window.scrollBy(0, 50);
38                window.requestAnimationFrame(step);
39            }
40
41            console.log(scrollCompleted, shownOnLoad, wasChecked)
42            console.log("step")
43        }
44    
45        setTimeout(()=>window.requestAnimationFrame(step),200);
46    }
47})

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.