PageSourceSearch

https://hexo-theme-bamboo.netlify.app/love/index.js

js hexo-theme-bamboo.netlify.app collected 2026-10-03 10:52:23 UTC 1,264 bytes, 56 lines download raw bytes

1var htmer_time = document.getElementById("htmer_time");
2var htmer_time_time = null;
3
4function setTime() {
5  var create_time = Math.round(
6    new Date(Date.UTC(2018, 10, 26, 6, 45, 0)).getTime() / 1000
7  );
8  var timestamp = Math.round(
9    (new Date().getTime() + 8 * 60 * 60 * 1000) / 1000
10  );
11  currentTime = secondToDate(timestamp - create_time);
12  currentTimeHtml =
13    currentTime[0] +
14    " å¹´ " +
15    currentTime[1] +
16    " 天 " +
17    currentTime[2] +
18    " 时 " +
19    currentTime[3] +
20    " 分 " +
21    currentTime[4] +
22    " 秒";
23  htmer_time.innerHTML = currentTimeHtml;
24}
25function secondToDate(second) {
26  if (!second) {
27    return 0;
28  }
29  var time = new Array(0, 0, 0, 0, 0);
30  if (second >= 365 * 24 * 3600) {
31    time[0] = parseInt(second / (365 * 24 * 3600));
32    second %= 365 * 24 * 3600;
33  }
34  if (second >= 24 * 3600) {
35    time[1] = parseInt(second / (24 * 3600));
36    second %= 24 * 3600;
37  }
38  if (second >= 3600) {
39    time[2] = parseInt(second / 3600);
40    second %= 3600;
41  }
42  if (second >= 60) {
43    time[3] = parseInt(second / 60);
44    second %= 60;
45  }
46  if (second > 0) {
47    time[4] = second;
48  }
49  return time;
50}
51
52if (htmer_time) {
53  htmer_time_time = setInterval(setTime, 1000);
54} else {
55  clearInterval(htmer_time_time);
56}

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.