PageSourceSearch

http://www.uwes.com.cn/plugins/public/js/cookies.js

js uwes.com.cn collected 2026-09-27 17:13:15 UTC 2,783 bytes, 120 lines download raw bytes

1function readCookie(a) {
2    var c = "";
3    var b = a + "=";
4    if (document.cookie.length > 0) {
5        offset = document.cookie.indexOf(b);
6        if (offset != -1) {
7            offset += b.length;
8            end = document.cookie.indexOf(";", offset);
9            if (end == -1) {
10                end = document.cookie.length
11            }
12            c = unescape(document.cookie.substring(offset, end))
13        }
14    }
15    if (c == "null") {
16        c = ""
17    }
18    return c
19}
20function writeCookie(b, d, a) {
21    var c = "";
22    if (a != null) {
23        c = new Date((new Date()).getTime() + a * 3600);
24        c = "; expires=" + c.toGMTString()
25    }
26    if (d == null) {
27        d = ""
28    }
29    document.cookie = b + "=" + escape(d) + c + ";path=/;"
30    console.log(document.cookie);
31}
32
33function clear_cookies(d, c, f) {
34    writeCookie(d, "", -10);
35    if (d == "zz_userid") {
36        if (c) {
37            var e = c.split("/vip_");
38            if (e[1]) {
39                var b = e[1].split(".");
40                if (b[0]) {
41                    var a = b[0] + "_gouwuche";
42                    writeCookie(a, "")
43                }
44            }
45        }
46    }
47   
48    if (!f) {
49        if (c != "") {
50            // alert(c);
51            window.location.href = c;
52            // window.navigate(c);
53        } else {
54            location.reload()
55        }
56    }
57}
58
59function HCmarquee(id, mw, mh, mr, sr, ms, pause) {
60    var obj = document.getElementById(id);
61    obj.ss = false;
62    obj.mr = mr;
63    obj.sr = sr;
64    obj.mw = mw;
65    obj.mh = mh;
66    obj.ms = ms;
67    obj.pause = pause;
68    obj.pt = 0;
69    obj.st = 0;
70    obj.mul = 1;
71    obj.con = "";
72    with(obj) {
73        style.width = mw + "px";
74        style.height = mh + "px";
75        noWrap = false;
76        onmouseover = stopm;
77        onmouseout = startm;
78        scrollTop = 0 + "px";
79        scrollLeft = 0 + "px"
80    }
81    if (obj.mr != 1) {
82        obj.tt = mh * mr / sr;
83        obj.ct = mh;
84        obj.innerHTML += obj.innerHTML;
85        setInterval(scrollUp, obj.ms)
86    }
87
88    function scrollUp() {
89        if (obj.ss == true) {
90            return
91        }
92        obj.ct += 1;
93        if (obj.ct == obj.mh + 1) {
94            obj.st += 1;
95            obj.ct -= 1;
96            if (obj.st == (obj.pause * obj.mul)) {
97                obj.ct = 0;
98                obj.st = 0;
99                if (obj.mul == 1) {
100                    obj.mul = 1
101                } else {
102                    obj.mul = 1
103                }
104            }
105        } else {
106            obj.pt = (++obj.scrollTop);
107            if (obj.pt == obj.tt) {
108                obj.scrollTop = 0
109            }
110        }
111    }
112
113    function stopm() {
114        obj.ss = true
115    }
116
117    function startm() {
118        obj.ss = false
119    }
120};

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.