PageSourceSearch

https://mayerstainless.com/js/jie.js

js mayerstainless.com collected 2026-10-04 04:57:04 UTC 3,904 bytes, 105 lines download raw bytes

1function layeralert(title, text) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, btn: ['OK'] }) }) }
2//function layeralert(title, text) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text}) }) }
3function layeralert2(title, text, url) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, btn: ['OK'], yes: function () { linkto(url); } }) }) }
4function layeralert3(title, text) { layui.use('layer', function () { var layer = layui.layer; layer.open({ title: title, content: text, yes: function () { window.location.reload(); } }) }) }
5function layeralert_msg(text) { layui.use('layer', function () { var layer = layui.layer; layer.msg(text); }) }
6
7function 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 }); }) }
8function linkto(url) { location.href = url; }
9
10
11var emailRule = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
12var phoneRule = /^(13|14|15|16|17|18|19)[0-9]{9}$/;
13var telRule = /^0\d{2,3}-?\d{7,8}$/;
14var passRule = /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{8,16}$/;
15
16function formatDate(date = Date.now(), fmt = 'yyyy-MM-dd') {
17    let target = new Date(date)
18    var o = {
19        'M+': target.getMonth() + 1, //月份
20        'd+': target.getDate(), //日
21        'h+': target.getHours(), //小时
22        'm+': target.getMinutes(), //分
23        's+': target.getSeconds(), //秒
24        'q+': Math.floor((target.getMonth() + 3) / 3), //季度
25        S: target.getMilliseconds() //毫秒
26    }
27    if (/(y+)/.test(fmt)) {
28        fmt = fmt.replace(RegExp.$1, (target.getFullYear() + '').substr(4 - RegExp.$1.length))
29    }
30    for (var k in o) {
31        if (new RegExp('(' + k + ')').test(fmt)) {
32            fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
33        }
34    }
35    return fmt
36}
37
38
39function GetRequest() {
40    var url = location.search; //获取url中"?"符后的字串
41    var theRequest = new Object();
42    if (url.indexOf("?") != -1) {
43        var str = url.substr(1);
44        strs = str.split("&");
45        for (var i = 0; i < strs.length; i++) {
46            theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
47        }
48    }
49    return theRequest;
50}
51
52function buildding() {
53    layeralert_msg("暂未上传附件!");
54}
55
56function jumppage(obj) {
57
58
59    let inputValue = parseInt($('#inppage').val());
60    let max1 = parseInt($(obj).data('max'))
61    if (inputValue > max1) {
62        inputValue = max1
63    }
64    if (inputValue == 1) {
65        window.location.href = $(obj).data('url') + ""
66    } else {
67        window.location.href = $(obj).data('url') + "_" + inputValue + ""
68    }
69}
70
71function search1() {
72    if (document.getElementById("txtkeys1").value == "") {
73        layeralert("Message", "Please Enter Search Keywords!");
74    }
75    else {
76        location.href = "/search/" + document.getElementById("txtkeys1").value;
77    }
78}
79
80function search2() {
81    if (document.getElementById("txtkeys2").value == "") {
82        layeralert("Message", "Please Enter Search Keywords!");
83    }
84    else {
85        location.href = "/search/" + document.getElementById("txtkeys2").value;
86    }
87}
88
89
90$(function () {
91    $('.product-detail-plate2 .plate2-main .main-cont .cont-box .box-cent table').wrap('<div class="table"></div>');
92
93
94    $("#txtkeys1").keydown(function (e) {
95        if (e.keyCode == 13) {
96            search1();
97        }
98    });
99    $("#txtkeys2").keydown(function (e) {
100        if (e.keyCode == 13) {
101            search2();
102        }
103    });
104
105})

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.