PageSourceSearch

https://www.vision-batt.com/vancheer/script/jie.js

js vision-batt.com collected 2026-10-02 10:06:09 UTC 3,286 bytes, 88 lines download raw bytes

1function layeralert(title, text) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, btn: ['OK'] }) }) }
2function layeralert2(title, text, url) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, yes: function () { linkto(url); } }) }) }
3function layeralert3(title, text) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, yes: function () { window.location.reload(); } }) }) }
4function layeralert_msg(text) { layui.use('layer', function () { var layer = layui.layer; layer.msg(text); }) }
5
6function layeralert_img(title, img) { layui.use('layer', function () { var layer = layui.layer; layer.open({ type: 1, title: title, content: `<img width="100%" src="` + img + `">`, area: ['180px', '180px'], shadeClose: true }); }) }
7function linkto(url) { location.href = url; }
8
9
10var emailRule = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
11var phoneRule = /^(13|14|15|16|17|18|19)[0-9]{9}$/;
12var telRule = /^0\d{2,3}-?\d{7,8}$/;
13var passRule = /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{8,16}$/;
14
15function formatDate(date = Date.now(), fmt = 'yyyy-MM-dd') {
16    let target = new Date(date)
17    var o = {
18        'M+': target.getMonth() + 1, //月份
19        'd+': target.getDate(), //日
20        'h+': target.getHours(), //小时
21        'm+': target.getMinutes(), //分
22        's+': target.getSeconds(), //秒
23        'q+': Math.floor((target.getMonth() + 3) / 3), //季度
24        S: target.getMilliseconds() //毫秒
25    }
26    if (/(y+)/.test(fmt)) {
27        fmt = fmt.replace(RegExp.$1, (target.getFullYear() + '').substr(4 - RegExp.$1.length))
28    }
29    for (var k in o) {
30        if (new RegExp('(' + k + ')').test(fmt)) {
31            fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
32        }
33    }
34    return fmt
35}
36
37
38function GetRequest() {
39    var url = location.search; //获取url中"?"符后的字串
40    var theRequest = new Object();
41    if (url.indexOf("?") != -1) {
42        var str = url.substr(1);
43        strs = str.split("&");
44        for (var i = 0; i < strs.length; i++) {
45            theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
46        }
47    }
48    return theRequest;
49}
50
51function buildding() {
52    layeralert_msg("暂未上传附件!");
53}
54
55function search1() {
56    if (document.getElementById("txtkeys1").value == "") {
57        layeralert("信息", "请输入搜索关键词!");
58    }
59    else {
60        location.href = "/searchs.html?q=" + document.getElementById("txtkeys1").value;
61    }
62}
63
64function search2() {
65    if (document.getElementById("txtkeys2").value == "") {
66        layeralert("信息", "请输入搜索关键词!");
67    }
68    else {
69        location.href = "/aisearchs.html?q=" + document.getElementById("txtkeys2").value;
70    }
71}
72
73
74
75$(function () {
76    $('.numUp').countUp();
77    $("#txtkeys1").keydown(function (e) {
78        if (e.keyCode == 13) {
79            search1();
80        }
81    });
82    $("#txtkeys2").keydown(function (e) {
83        if (e.keyCode == 13) {
84            search2();
85        }
86    });
87
88})

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.