PageSourceSearch

https://www.sznews.com/2026/apad2026805.js

js sznews.com collected 2026-09-24 09:17:57 UTC 3,290 bytes, 73 lines download raw bytes

1// 当天显示
2const date = new Date();
3// 开始显示时间
4const begintime1 = "2026-08-10 00:00:00";
5//第一个倒计时结束时间(06-07不显示)
6const endtime1 = "2026-11-17 23:59:59";
7// 开始显示时间
8const begintime2 = "2026-11-18 00:00:00";
9// 结束显示时间(06-11显示)
10const endtime2 = "2026-12-08 17:59:59";
11
12
13//根据时间设置展示图片或div块【2026.8.10~2026.11.17显示倒计时】
14function setAdImage1() {
15  var currentTime = new Date().getTime();
16  var startTime = new Date(begintime1).getTime();
17  var endTime = new Date(endtime1).getTime();
18  var isShow = startTime <= currentTime && currentTime <= endTime
19  var count = Math.ceil((new Date(begintime2).getTime() - currentTime) / (1000 * 60 * 60 * 24));
20  // 倒计时未结束
21  if (isShow) {
22    var zw_el = '<li class="wbdjs"><span><img src="https://www.sznews.com/2026/apectime2026.jpg" alt="" /><span class="count">'+count+'</span></span></li>'
23    var wbh_ad = '<a href="" target="_blank" style="cursor:pointer;display:block;" class="wbdjs">' + 
24      '<span><img src="https://www.sznews.com/2026/apectime2026.jpg" width="460px" height="90px" border="0"><span class="count">'+count+'</span></span></a>';
25    var wbh_ad1 = '<div id="dolphin_focuswin_84" class="focuswin wbad1" style="width: 522px; height: 175px;position: relative;">' + 
26      '<a href="https://news.sznews.com/node_405894.htm" target="_blank" style="cursor:pointer;display:block; position: relative;">' + 
27      '<span><img src="https://www.sznews.com/2026/apectime2026.jpg" width="460px" height="90px" border="0">' + 
28      '<span style="position: absolute; top: 56%; left: 52%; color: #1b2385; padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; z-index: 10;">'
29      +count+'</span></span>' + 
30      '</a></div>';
31    $('#dolphin_focuswin_84').hide()
32    $('.Apost').append(wbh_ad1)
33  }
34  console.log('倒计时:',isShow,count)
35}
36
37// 【2026.11.18显示欢迎您】
38function setAdImage2() {
39  var currentTime = new Date().getTime()
40  var startTime = new Date(begintime2).getTime();
41  var endTime = new Date(endtime2).getTime();
42  var isShow = startTime <= currentTime && currentTime <= endTime
43  // 是否显示
44  if (isShow) {
45    var zw_el = '<li class="wbdjs"><span><img src="https://www.sznews.com/2026/apecwlecome2026.jpg" alt="" /></span></li>'
46    // $('#dolphin_focuswin_84 a').hide()
47    // $('#dolphin_focuswin_84 a').after(zw_el)
48
49    var wbh_ad1 = '<div id="dolphin_focuswin_84" class="focuswin wbad2" style="width: 522px; height: 175px;position: relative;">' + 
50      '<a href="https://news.sznews.com/node_405894.htm" target="_blank" style="cursor:pointer;display:block; position: relative;">' + 
51      '<img src="https://www.sznews.com/2026/apecwlecome2026.jpg" width="460px" height="90px" border="0">' + 
52      '</a></div>';
53    $('#dolphin_focuswin_84').hide()
54    $('.Apost').append(wbh_ad1)
55  }
56  console.log('开始了:',isShow)
57}
58
59setAdImage1();
60setAdImage2();
61
62
63function day(data) {
64  var minutes = 1000 * 60;
65  var hours = minutes * 60;
66  var days = hours * 24;
67
68  var d = new Date();
69  var t = d.getTime();
70  var x = new Date(data).getTime();
71  var y = Math.ceil((x - t) / days);
72  return y;
73}

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.