PageSourceSearch

https://www.cathaysec.com.tw/cathaysec/Scripts/js/cathayCommon.js?070802

js cathaysec.com.tw collected 2026-09-24 10:47:27 UTC 1,794 bytes, 57 lines download raw bytes

1Date.prototype.format = function(fmt) { //author: meizz 
2    var o = {
3        "M+": this.getMonth() + 1, //月份 
4        "d+": this.getDate(), //日 
5        "h+": this.getHours(), //小时 
6        "m+": this.getMinutes(), //分 
7        "s+": this.getSeconds(), //秒 
8        "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
9        "S": this.getMilliseconds() //毫秒 
10    };
11    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
12    for (var k in o)
13        if (new RegExp("(" + k + ")").test(fmt))
14            fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
15    return fmt;
16}
17
18function getUrlParam(name) {
19    var results = new RegExp("[?&]" + name + "=([^&#]*)", "i").exec(
20        window.location.search
21    );
22    if (results == null) {
23        return null;
24    }
25    return decodeURIComponent(results[1]) || "";
26};
27
28function htmlEncode(str) {
29    return $("<span/>").text(str).html();
30}
31
32var makeApiCall = (function () {
33    var count = 0;
34    return function (url, data) {
35        return $.ajax({
36            type: "POST",
37            url: url,
38            data: JSON.stringify(data),
39            contentType: "application/json; charset=utf-8",
40            dataType: "json",
41            cache: false,
42            async: true,
43            beforeSend: function () {
44                count++;
45                if (count === 1) {
46                    loadingTigger('open');
47                }
48            },
49            complete: function () {
50                count--;
51                if (count === 0) {
52                    loadingTigger('close');
53                }
54            }
55        });
56    }
57})();

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.