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.