PageSourceSearch

https://www.hkicpa.cn/hkicpazhinan/js/index.js

js hkicpa.cn collected 2026-10-04 18:44:14 UTC 1,449 bytes, 43 lines download raw bytes

1window.onload = function () {
2    if (!document.querySelector('.unscroll')) {
3        window.scrollTo({
4            top: document.querySelector('.main').offsetTop,
5        });
6    }
7}
8
9function daysBetween(DateOne, DateTwo) {
10    var OneMonth = DateOne.substring(5, DateOne.lastIndexOf('-'));
11    var OneDay = DateOne.substring(DateOne.length, DateOne.lastIndexOf('-') + 1);
12    var OneYear = DateOne.substring(0, DateOne.indexOf('-'));
13
14    var TwoMonth = DateTwo.substring(5, DateTwo.lastIndexOf('-'));
15    var TwoDay = DateTwo.substring(DateTwo.length, DateTwo.lastIndexOf('-') + 1);
16    var TwoYear = DateTwo.substring(0, DateTwo.indexOf('-'));
17
18    var cha = ((Date.parse(OneMonth + '/' + OneDay + '/' + OneYear) - Date.parse(TwoMonth + '/' + TwoDay + '/' + TwoYear)) / 86400000);
19    return Math.abs(cha);
20}
21
22
23var date = new Date();
24var seperator1 = "-";
25var year = date.getFullYear();
26var month = date.getMonth() + 1;
27var strDate = date.getDate();
28if (month >= 1 && month <= 9) {
29    month = "0" + month;
30}
31if (strDate >= 0 && strDate <= 9) {
32    strDate = "0" + strDate;
33}
34var currentdate = year + seperator1 + month + seperator1 + strDate;
35var num = daysBetween(currentdate, '2026-05-27') + '';
36for (let i = 0; i < 3 - (daysBetween(currentdate, '2026-05-27') + '').length; i++) {
37    num = '0' + num
38}
39var day = document.querySelectorAll('.num-wrap .num');
40day.forEach(function (item, index) {
41    item.innerHTML = num.split('')[index]
42})
43

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.