PageSourceSearch

https://staffonlystudio.com/JS/Qyna1.0.js?v=1651886666

js staffonlystudio.com collected 2026-10-07 00:02:48 UTC 15,842 bytes, 336 lines download raw bytes

1
2
3//layui.use('layer', function () {
4//    var layer = layui.layer;
5//})
6/**
7 * 删除提示
8 * @param {any} msg
9 * @param {any} t
10 */
11function layerConfirm(msg, t) {
12    this.enterEsc = function (event) {
13        if (event.keyCode === 13) {
14            $(".layui-layer-btn0").click();
15            return false; //阻止系统默认回车事件
16        } else if (event.keyCode == 27) {
17            $(".layui-layer-btn1").click();
18            return false;
19        }
20    };
21    $(document).on('keydown', this.enterEsc); //监听键盘事件,关闭层
22
23    layer.confirm(msg, function (index) {
24        title: '提示',
25            t.onclick = "";
26        t.click();
27        layer.close(index);
28    });
29}
30//layui提示
31function layerMsg(msg,icon) {
32            layui.use('layer', function () {
33                layer = layui.layer;
34                layer.msg(msg, {
35                    icon: icon
36                });
37            })
38}
39
40//返回关键字ID
41function fun_keys(res) {
42    var id;
43    $.ajax({
44        type: "GET",
45        url: "../Handler/RearEnd0.ashx?num=" + sum(100000, 999999),
46        data: {
47            op: "keys",
48            keys: escape(res),
49        },
50        async: false,
51        dataType: "json",
52        success: function (data) {
53            id = data;
54        }
55    });
56    return id;
57}
58
59/**
60* 生成随机数
61* @param {any} m
62* @param {any} n
63*/
64function sum(m, n) {
65    var num = Math.floor(Math.random() * (m - n) + n);
66    return num;
67}
68
69/**
70 * 切换语言
71 * @param {any} lang
72 */
73function ChangLang(lang) {
74    $.ajax({
75        type: "GET",
76        url: "Handler/FrontEnd0.ashx?lognum=" + Math.random(),
77        data: {
78            op: "change",
79            lang: lang,
80        },
81        async: true,
82        dataType: "text",
83        success: function (data) {
84            var url = window.location.href.toLowerCase();
85            var num = sum(100000, 999999);
86            lang = lang.toLowerCase();
87            if (lang == "cn")
88                url = url.replace("-1.", "-0.");
89            else
90                url = url.replace("-0.", "-1.");
91            url = url.replace(location.search, "");
92            url = url.replace("#", "");
93            url = url.substring(0, url.indexOf(".html") + 5);
94            window.location.href = url + "?num=" + num;
95        }
96    })
97}
98
99function QueryPress(id) {
100    $.ajax({
101        type: "GET",
102        url: "./Handler/FrontEnd0.ashx?lognum=" + sum(100000, 999999),
103        data: {
104            op: "query_press",
105            id: id,
106        },
107        async: true,
108        dataType: "json",
109        success: function (data) {
110            var json = data.result           
111            var res = '';
112            res += '<div class="window">\r\n';
113            res += '<div class="window-top">\r\n';
114            res += '<div class="swiper-Arrows">\r\n';
115            res += '<dd class="button button-icon" style="padding: 0.2rem 0.15rem;" onclick="hide_float(\'popup_press\')">\r\n';
116            //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-cancel"></i>\r\n';
117            res += '<i class="icon-cancel"></i>\r\n\r\n';
118            res += '</dd>\r\n';
119            if (json[0].id1 != "") {
120                res += '<dd class="button button-icon" onclick="QueryPress(' + json[0].id1+')">\r\n';
121                //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-left-open"></i>\r\n';
122                res += '<i class="icon-left-open"></i>\r\n\r\n';
123                res += '</dd>\r\n';
124            }
125            if (json[0].id2 != "") {
126                res += '<dd class="button button-icon"  onclick="QueryPress(' + json[0].id2 + ')">\r\n';
127                //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-right-open"></i>\r\n';
128                res += '<i class="icon-right-open"></i>\r\n\r\n';
129                res += '</dd>\r\n';
130            }
131            res += '</div>\r\n';
132            res += '<h5>' + json[0].name + '</h5>\r\n';
133            res += '</div>\r\n';
134
135
136            //res += '<div class="content" >\r\n';
137            //if (json[0].img2_src != "")
138            //    res += '<img src="' + json[0].img2_src + '" />\r\n';
139            res += '<div class="content mCustomScrollbar" data-mcs-theme="dark">\r\n';
140             var json2 = JSON.parse(json[0].item).result;
141            for (var i = 0; i < json2.length; i++)
142                res += '<img src="' + json2[i].img1_src + '">\r\n';
143           
144
145            res += '<ul class="detail">\r\n';
146            res += '<li>\r\n';
147            res += '<h5> CREDITS</h5>\r\n';
148            res += '</li>\r\n';
149            //var json2 = JSON.parse(json[0].item).result;
150            //for (var i = 0; i < json2.length; i++)
151            //    res += '<li> <span>' + json2[i].name + '</span>' + json2[i].contents + '</li>\r\n';
152            var detail = json[0].contents.replace(/\r\n/g, "︺").replace(/\n/g, "︺");
153            var col1 = detail.split("︺");
154            for (var i = 0; i < col1.length; i++) {               
155                var detail2 = col1[i].replace(/:/g, "︺").replace(/:/g, "︺");
156                var col2 = detail2.split("︺");
157                res += '<li> <span>' + col2[0] + '</span><dd>' + col2[1] + '</dd></li>\r\n';
158            }
159
160            res += '</u>\r\n';
161
162            res += '</div>\r\n';
163              
164            res += '</div>\r\n';
165            document.getElementById("press_box").innerHTML = res;
166            $("press_box").mCustomScrollbar({
167
168                theme: "dark"
169
170            });
171        }
172    })
173}
174function Jump(lnk) {
175    if (lnk.length != 0) {
176        window.open(lnk);
177        return false;
178    }
179}
180
181function ChangeType(type) {
182    document.getElementById("hf_type").value = type;
183}
184function QueryNews(id) {
185    if (document.getElementsByClassName("mCustomScrollbar_contents").length > 0)
186        document.getElementsByClassName("mCustomScrollbar_contents")[0].innerHTML = "<style>.box{width: 200px;height: 200px;position: absolute;
186left: 50%; top:50%;margin-left:-20px;margin-top:-100px;}</style><div class='box'><img src='./js/PageLoading/loading.gif' style='width:40px;'/></div>";
187    else {
188
189        var res0 = '';
190        res0 += '<div class="window">\r\n';
191        res0 += '<div class="window-top">\r\n';
192        res0 += '<div class="swiper-Arrows">\r\n';
193        res0 += '<dd class="button button-icon" style="padding: 0.2rem 0.15rem;" onclick="hide_float(\'popup_news\')">\r\n';
194        res0 += '<i class="icon-cancel"></i>\r\n\r\n';
195        res0 += '</dd>\r\n';
196
197        res0 += '<dd class="button button-icon">\r\n';
198        res0 += '<i class="icon-left-open"></i>\r\n\r\n';
199        res0 += '</dd>\r\n';
200
201
202        res0 += '<dd class="button button-icon">\r\n';
203
204        res0 += '<i class="icon-right-open"></i>\r\n\r\n';
205        res0 += '</dd>\r\n';
206
207        res0 += '</div>\r\n';
208        res0 += '<h5></h5>\r\n';
209        res0 += '</div>\r\n';
210
211
212        res0 += '<div class="content mCustomScrollbar CustomScrollbar_contents" data-mcs-theme="dark">\r\n';
213        res0 = "<style>.box{width: 200px;height: 200px;position: absolute;left: 50%; top:50%;margin-left:-20px;margin-top:-100px;}</style><div class='box'><img src='./js/PageLoading/loading.gif' style='width:40px;'/></div>";
214        res0 += '</div>\r\n';
215        res0 += '</div>\r\n';
216        document.getElementById("popup_news").innerHTML = res0;
217        $("popup_news").mCustomScrollbar({
218            theme: "dark"
219        });
220    }
221    $.ajax({
222        type: "GET",
223        url: "./Handler/FrontEnd0.ashx?lognum=" + sum(100000, 999999),
224        data: {
225            op: "query_news",
226            id: id,
227            type: document.getElementById("hf_type").value
228        },
229        async: true,
230        dataType: "json",
231        success: function (data) {
232            var json = data.result
233            var res = '';
234            res += '<div class="window">\r\n';
235            res += '<div class="window-top">\r\n';
236            res += '<div class="swiper-Arrows">\r\n';
237            res += '<dd class="button button-icon" style="padding: 0.2rem 0.15rem;" onclick="hide_float(\'popup_news\')">\r\n';
238            //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-cancel"></i>\r\n';
239            res += '<i class="icon-cancel"></i>\r\n\r\n';
240            res += '</dd>\r\n';
241            if (json[0].id1 != "") {
242                res += '<dd class="button button-icon" onclick="QueryNews(' + json[0].id1 + ',' + json[0].news_type + ')">\r\n';
243                //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-left-open"></i>\r\n';
244                res += '<i class="icon-left-open"></i>\r\n\r\n';
245                res += '</dd>\r\n';
246            }
247            if (json[0].id2 != "") {
248                res += '<dd class="button button-icon"  onclick="QueryNews(' + json[0].id2 + ',' + json[0].news_type + ')">\r\n';
249                //res += '<svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"99999\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><svg class=\"svg-content\" viewbox=\"0 0 100% 100%\" preserveAspectRatio=\"none\"><rect class=\"svg-rect\" stroke-dasharray=\"7,3\" stroke-opacity=\"1\" x=\"2\" y=\"2\" rx=\"6\" ry=\"6\" style=\"fill: #fff;stroke: #000;stroke-width:3px;fill-opacity:0;\"> </rect></svg><i class="icon-right-open"></i>\r\n';
250                res += '<i class="icon-right-open"></i>\r\n\r\n';
251                res += '</dd>\r\n';
252            }
253            res += '</div>\r\n';
254            res += '<h5>' + json[0].name2 + '</h5>\r\n';
255            res += '</div>\r\n';
256
257
258            res += '<div class="content mCustomScrollbar mCustomScrollbar_contents" data-mcs-theme="dark">\r\n';
259
260         
261            res += '<h5>' + json[0].name + '</h5>\r\n';
262            if (json[0].d1 != json[0].d2)
263                res += '<span class="grey">' + json[0].d1 + '-' + json[0].d2 + '</span>\r\n';
264            else
265                res += '<span class="grey">' + json[0].d1 + '</span>\r\n';
266            res += '<article>\r\n';
267            if (json[0].file_src != "") {
268                res += '<video id="my-video2" style="width:100%;height:100%" class="video-js vjs-default-skin vjs-big-play-centered vjs-fluid" controls preload="auto" loop poster="./uploadfile/file/movie/' + json[0].file_src + '.jpg" muted data-setup="{}" >\r\n';
269                res += '<source src="./uploadfile/file/movie/' + json[0].file_src + '.mp4" type="video/mp4" />\r\n';
270                res += '<source src="./uploadfile/file/movie/' + json[0].file_src + '.ogv" t
270ype="video/ogv" />\r\n';
271                res += '<source src="./uploadfile/file/movie/' + json[0].file_src + '.webm" type="video/webm" />\r\n';
272                res += '</video >\r\n';
273               
274            }
275
276            res += json[0].contents;
277            res += '</article>\r\n';
278            res += '</div>\r\n';
279
280            //res += '</div><div id="mCSB_1_scrollbar_vertical" class="" style="display: block;"><div class="mCSB_draggerContainer"><div id="mCSB_1_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 30px; top: 0px; display: block; height: 193px; max-height: 401px;" oncontextmenu="return false;"><div class="mCSB_dragger_bar" style="line-height: 30px;"></div></div><div class="mCSB_draggerRail"></div></div></div></div>\r\n';
281
282            //res += '<h5>' + json[0].name + '</h5>\r\n';
283            //if (json[0].d1 != json[0].d2)
284            //    res += '<span class="grey">' + json[0].d1 + '-' + json[0].d2 + '</span>\r\n';
285            //else
286            //    res += '<span class="grey">' + json[0].d1 + '</span>\r\n';
287            //res += '<article>\r\n';
288            //res += json[0].contents;
289            //res += '</article>\r\n';
290            res += '</div>\r\n';
291
292            if (document.getElementById("my-video2")) {
293                //存在 
294                var video = videojs("my-video2", { controls: true });
295                video.dispose()
296            }
297            //document.getElementsByClassName("mCustomScrollbar")[0].innerHTML = "";
298            document.getElementById("popup_news").innerHTML = res;           
299            if (json[0].file_src != "") {
300              var video= videojs("my-video2", { controls: true });
301            }
302            $("popup_news").mCustomScrollbar({
303
304                theme: "dark"
305
306            });
307        }
308    })
309}
310
311function Close() {
312    $.ajax({
313        type: "GET",
314        url: "./Handler/FrontEnd0.ashx?lognum=" + sum(100000, 999999),
315        data: {
316            op: "close",
317        },
318        async: false,
319        dataType: "json",
320        success: function (data) {
321        }
322    });
323}
324function Accept() {
325    $.ajax({
326        type: "GET",
327        url: "./Handler/FrontEnd0.ashx?lognum=" + sum(100000, 999999),
328        data: {
329            op: "accept",
330        },
331        async: false,
332        dataType: "json",
333        success: function (data) {
334        }
335    });
336}

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.