PageSourceSearch

https://www.2436.cn/js/about.js

js 2436.cn collected 2026-10-05 23:17:01 UTC 2,780 bytes, 80 lines download raw bytes

1$("#showlist").find("dt").bind("click",function(){
2    var dl=$(this).parent();        
3    if(dl.hasClass("fold")==0){
4        dl.addClass("fold");
5        dl.find("dd").slideUp(600);
6    }else{
7        dl.removeClass("fold");
8        dl.find("dd").slideDown(600);
9    }   
10});
11function getQueryStringV(vhref, name) {
12    if (vhref.indexOf("?") == -1 || vhref.indexOf(name + '=') == -1) {
13        return '';
14    }
15    var queryString = vhref.substring(vhref.indexOf("?") + 1);
16    var parameters = queryString.split("&");
17    var pos, paraName, paraValue;
18    for (var i = 0; i < parameters.length; i++) {
19        pos = parameters[i].indexOf('=');
20        if (pos == -1) {
21            continue;
22        }
23        paraName = parameters[i].substring(0, pos);
24        paraValue = parameters[i].substring(pos + 1);
25 
26        if (paraName == name) {
27            return unescape(paraValue.replace(/\+/g, " "));
28        }
29    }
30    return '';
31}
32var helpid = getQueryStringV(location.href, "id");
33if(helpid)
34    {
35        $("#showlist dt").eq(helpid).click();
36    }
37
38    $(document).ready(function() {
39        $("#submit-btn").click(function() {
40            var name = $("#name").val();
41            var idNumber = $("#id-number").val();
42
43            if(isCardID(idNumber)!=true){
44                $("#id-number").after('<p style="background-color:orange;color:white">身份证号不正确</p>');
45                return false;
46            }
47            if(!/^[\u4e00-\u9fa5]+$/i.test(name)){
48                // alert("姓名不合法");
49                $("#name").after('<p style="background-color:orange;color:white">请输入正确的姓名</p>');
50                name = '';
51                return false;
52            }
53
54            $.ajax({
55                url: "/e/extend/delid.php",
56                type: "POST",
57                data: { name: name, idNumber: idNumber },
58                timeout: 5000, // 设置超时时间为5秒
59                dataType: "json",
60                success: function(data) {
61                    // console.log("请求成功");
62                    // console.log(data);
63                    if(data.errcode==0){
64                        $('#submit-btn').val(data.msg);
65                        $("#submit-btn").css("background-color", "green");
66                    }else{
67                        $('#submit-btn').val(data.msg);
68                        $("#submit-btn").css("background-color", "orange");
69                    }
70                },
71                error: function(xhr, status, error) {
72                    // console.log("请求失败");
73                    // console.log(error);
74                },
75                complete: function() {
76                    // console.log("请求完成");
77                }
78            });
79        });
80    });

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.