PageSourceSearch

https://www.patronpdks.com/js/custom-scroll-1.0.0.js?v=1790947368

js patronpdks.com collected 2026-10-02 13:23:13 UTC 1,058 bytes, 44 lines download raw bytes

1/**
2 * 
3 * 
4 */
5 window.addEventListener('DOMContentLoaded', e => {
6
7    // header var ise
8    let header = document.querySelector('header');
9    // let topbar = document.querySelector('.topbar');
10    // if(header && topbar){
11    if(header){
12
13        // check immidately
14        check_scroll(e.currentTarget);
15
16        // check scroll value
17        function check_scroll(target){
18
19            let scroll_value = target.scrollY;
20            if(scroll_value && scroll_value > 0){
21
22                header.classList.add('affix');
23                // topbar.classList.add('affix');
24            }
25            else{
26
27                if(header.classList.contains('affix')){
28                
29                    header.classList.remove('affix');
30                }
31
32                // if(topbar.classList.contains('affix')){
33                
34                //     topbar.classList.remove('affix');
35                // }
36            }
37        }
38
39        window.addEventListener('scroll', e => {
40            
41            check_scroll(e.currentTarget);
42        })
43    }
44})

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.