PageSourceSearch

https://yonokai.com/static/js/maturity.js

js yonokai.com collected 2026-10-06 19:58:54 UTC 2,349 bytes, 65 lines download raw bytes

1CheckDate();
2function CheckDate() {
3    var status = 0;  /**1:测试模式,本地模板;0:线上模式**/
4    var doamin = window.location.host;  /*获取 URL 的主机部分*/
5    var juesha_pc_domain = "https://qiniuyun.jumiweb.com/daoqi/www/html/tips.html";
6    var EndTime = new Date(Date.parse(getCookie("EndTime")));
7    var d = new Date();
8    if (status == 0 && (EndTime < d || EndTime == "Invalid Date")) {       
9        $.ajax({
10            url: "https://www.jumiyun.net/Ashx/WebApi.ashx",
11            type: "post",
12            dataType: "json",
13            data: { type: "selectmaturity", domain: doamin },
14            success: function (message) {
15                if (message.status == "succeed" && message.count > 0) {
16                    var endtime = message.data.EndTime;
17                    var days = message.count;
18                    setCookie("EndTime", endtime, days);
19                    return true;
20                } else {
21                    var endtime = message.data.EndTime;
22                    var days = message.count;
23                    setCookie("EndTime", endtime, 1);
24                    document.writeln("<frameset><frame src=" + juesha_pc_domain + " /></frameset>");
25                    return true;
26                }
27            }
28        });
29    } else { return true; }
30}
31
32
33//设置cookie
34function setCookie(cname, cvalue, exdays) {
35    var d = new Date();
36    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
37    var expires = "expires=" + d.toUTCString();
38    document.cookie = cname + "=" + cvalue + "; " + expires;
39}
40//获取cookie
41function getCookie(cname) {
42    var name = cname + "=";
43    var ca = document.cookie.split(';');
44    for (var i = 0; i < ca.length; i++) {
45        var c = ca[i];
46        while (c.charAt(0) == ' ') c = c.substring(1);
47        if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
48    }
49    return "";
50}
51//清除cookie  
52function clearCookie(name) {
53    setCookie(name, "", -1);
54}
55function checkCookie() {
56    var user = getCookie("username");
57    if (user != "") {
58        alert("Welcome again " + user);
59    } else {
60        user = prompt("Please enter your name:", "");
61        if (user != "" && user != null) {
62            setCookie("EndTime", user, 365);
63        }
64    }
65}

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.