PageSourceSearch

https://caas.cn/g_style/g_index.js

js caas.cn collected 2026-09-24 08:45:34 UTC 1,600 bytes, 60 lines download raw bytes

1var version = 1;
2
3function jsloader(arr, cb) {
4    var head = document.getElementsByTagName('head')[0];
5
6    var _load_index = 0;
7
8    function onScriptLoad(node, e, url) {
9        var readyRegExp = navigator.platform === 'PLaySTATION 3' ? /^complete$/ : /^(complete|loaded)$/
10        if (e.type === 'load' || (readyRegExp.test((e.currentTarget || e.srcElement).readyState))) {
11            head.removeChild(node);
12            onCallback();
13        }
14    }
15
16    function onCallback() {
17        _load_index++;
18        if (_load_index == arr.length) {
19            cb();
20        } else {
21            load(arr[_load_index]);
22        }
23    }
24
25    var isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]';
26
27    function load(url) {
28        var node = document.createElement('script');
29
30        node.async = true;
31        node.charset = 'utf-8';
32        node.src = url + '?v=' + version;
33
34        head.appendChild(node);
35        if (node.attachEvent && !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) && !isOpera) {
36            node.attachEvent('onreadystatechange', function (e) {
37                onScriptLoad(node, e, url);
38            });
39        } else {
40            node.addEventListener('load', function (e) {
41                onScriptLoad(node, e, url);
42            }, false);
43        }
44    }
45
46    load(arr[_load_index]);
47}
48function loadCSS( url ){
49
50    var link = document.createElement('link');
51
52    link.rel = 'stylesheet';
53
54    link.href = url;
55
56    document.getElementsByTagName('head')[0].appendChild(link);
57
58}
59
60//define function

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.