PageSourceSearch

https://cxykk.com/wp-content/themes/dux/assets/js/util.js

js cxykk.com collected 2026-10-05 22:12:10 UTC 3,735 bytes, 109 lines download raw bytes

1var _href = window.location.href;
2
3layui.use('layer', function () { //独立版的layer无需执行这一句
4    var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
5    //触发事件
6    $(document).on('click', '#notice', function () {
7        notice();
8    });
9    
10       // 当然你可以指定链接隐藏,获取当前地址进行比较判断
11   //  var _href = window.location.href;
12   var isLocker=_href.indexOf("p=") > 0 && _href != "https://cxykk.com/?p=12627";
13    if(isLocker){
14        showLocker();
15        return
16    }
17
18 
19
20});
21
22function  showLocker() {
23    // 判断是否有cookie
24    var cookie = $.cookie('jiangsir-show-gzh');
25    // 若存在 cookie 则将遮挡页去掉
26    if ((typeof cookie === "undefined") == false) {
27
28        showStyle();
29    }else{
30        hideStyle();
31    }
32}
33
34// ?vip='+time+'
35function notice() {
36    var time= Math.round(new Date().getTime()/1000);
37    layer.open({
38        type: 1,
39        title: false,
40        closeBtn: false,
41        area: '460px;',
42        shade: 0.8,
43        id: 'LAY_layuipro',
44        btn: ['提交验证', '残忍拒绝'],
45        btnAlign: 'c',
46        moveType: 1,
47        content: '<div style="padding: 30px; line-height: 22px; background-color: #353535; color: #fff; font-weight: 300; text-align: center">' +
48            '<h3>初次访问:反爬虫,人机识别</h3>' +
49            '<br/><img style="width: 180px; height: 180px;" src="/wp-content/uploads/2025/04/xingongzhonghao.jpg?vip='+time+'" alt="微信关注公众号,回复:验证码">' +
50            '<br/><br/><h3>微信关注公众号,回复:验证码</h3>  ' +
51            '<br/><input type="text" style="color: #000000; font-size: 17px; " id="captcha" name="title" lay-verify="title" autocomplete="off" placeholder="请输入,公众号,获取的验证码" class="layui-input">\n' +
52            '</div>'
53        ,
54        success: function (layero) {
55            var btn = layero.find('.layui-layer-btn');
56
57            btn.find('.layui-layer-btn0').css({
58                "font-size": " 20px",
59                "height": "39px",
60                "line-height": "33px",
61                "margin": "5px 20px 0"
62            });
63            btn.find('.layui-layer-btn1').css({
64                "font-size": " 20px",
65                "height": "39px",
66                "line-height": "33px",
67                "margin": "5px 20px 0"
68            });
69
70            btn.find('.layui-layer-btn0').click(function () {
71                var captcha = $("#captcha").val().trim();
72
73                if (captcha.length === 6) {
74                    if (   captcha === "638290"
75                        || captcha === "745012"
76                        || captcha === "436790"
77                        || captcha === "982109"
78                        || captcha === "533966"
79                    ) {
80                        showStyle();
81                        $.cookie('jiangsir-show-gzh', captcha, { path: '/', expires: 7 });
82                        layer.msg('反爬虫,人机交互,登陆成功!', {time: 3000, icon: 1});
83                    }else{
84                        layer.msg('请输入,6位,微信获取的,数字验证码!', {time: 5000, icon: 2});
85                    }
86                }else{
87                    layer.msg('请输入,6位,微信获取的,数字验证码!', {time: 5000, icon: 2});
88                }
89            });
90
91
92        }
93    });
94}
95
96function showStyle() {
97    $("#locker").hide();
98    $(".row-content").css("height", "");
99    $(".row-content").css("margin-bottom", "50px");
100
101}
102
103function hideStyle() {
104    $("#locker").show();
105
106    $(".row-content").css("height", "700px");
107    $(".row-content").css("margin-bottom", "0");
108}
109

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.