From ce58f800a803cbd7d8bf9307ee3c61c8017d9eda Mon Sep 17 00:00:00 2001 From: MomentQYC <62551256+MomentQYC@users.noreply.github.com> Date: Mon, 27 Jun 2022 17:42:31 +0800 Subject: [PATCH] Delete mastodon-about.js --- js/other/mastodon-about.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 js/other/mastodon-about.js diff --git a/js/other/mastodon-about.js b/js/other/mastodon-about.js deleted file mode 100644 index 0972cd4..0000000 --- a/js/other/mastodon-about.js +++ /dev/null @@ -1,25 +0,0 @@ -function show_date_time() { - window.setTimeout("show_date_time()", 1000); - BirthDay = new Date("12/30/2019 18:00:00"); - today = new Date(); - timeold = (today.getTime() - BirthDay.getTime()); - sectimeold = timeold / 1000 - secondsold = Math.floor(sectimeold); - msPerDay = 24 * 60 * 60 * 1000 - e_daysold = timeold / msPerDay - daysold = Math.floor(e_daysold); - e_hrsold = (e_daysold - daysold) * 24; - hrsold = setzero(Math.floor(e_hrsold)); - e_minsold = (e_hrsold - hrsold) * 60; - minsold = setzero(Math.floor((e_hrsold - hrsold) * 60)); - seconds = setzero(Math.floor((e_minsold - minsold) * 60)); - document.getElementById('span_dt_dt').innerHTML = "图床已经萌萌哒运行了" + daysold + "天" + hrsold + "小时" + minsold + "分" + seconds + "秒"; - } - - function setzero(i) { - if (i < 10) { - i = "0" + i - }; - return i; - } - show_date_time(); \ No newline at end of file