PageSourceSearch

https://sunsetai.world/wp-content/themes/sunset/assets/js/common/E…?ver=511f72705c500e655dd9c57e2637caed

js sunsetai.world collected 2026-10-09 02:08:12 UTC 1,272 bytes, 47 lines download raw bytes

1class Entity{
2    static entities = [];
3
4    constructor(id = "", selectors=[]){
5        this.id = id;
6        this.selectors = selectors;
7        Entity.entities.push(this);
8        this.ready = function(){}
9    }
10
11    // onReady(fun){
12    //     this.ready = fun;
13    // }
14
15    static entitiesOnReady(){
16        Entity.entities.forEach((value) => {
17            if(value.selectors.length > 0){
18                var sel = value.selectors.join(", ");
19                if($(sel).length > 0) value['ready']();
20            }else{
21                value['ready']();
22            }
23        })
24    }
25
26    static callEntityFunc(id, fun){
27        Entity.entities.forEach((value) => {
28            if(value.id == id || id == '*'){
29                if(typeof value[fun] === 'function'){
30                    value[fun]();
31                }
32            }
33        })
34    }
35
36    static loaded(){
37        Entity.callEntityFunc('*', 'onLoad');
38    }
39
40    static resized(){
41        // console.log('resize');
42        document.documentElement.style.setProperty('--real100vh', window.innerHeight + 'px');
43        document.documentElement.style.setProperty('--header-height', $('.Header').outerHeight() + 'px');
44        Entity.callEntityFunc('*', 'onResize');
45        ScrollTrigger.refresh();
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.