This commit is contained in:
haoouba 2021-02-15 14:21:44 +08:00
parent 9e737b672b
commit 9f3c919368
2 changed files with 2 additions and 3 deletions

View File

@ -410,7 +410,7 @@ document.addEventListener('DOMContentLoaded', () => {
/* 初始化网站运行时间 */ /* 初始化网站运行时间 */
{ {
const getRunTime = () => { const getRunTime = () => {
const birthDay = new Date('2021/1/1 00:00:00') const birthDay = new Date(Joe.BIRTHDAY)
const today = +new Date() const today = +new Date()
const timePast = today - birthDay.getTime() const timePast = today - birthDay.getTime()
let day = timePast / (1000 * 24 * 60 * 60) let day = timePast / (1000 * 24 * 60 * 60)
@ -431,7 +431,6 @@ document.addEventListener('DOMContentLoaded', () => {
$('.joe_run__second').html(second) $('.joe_run__second').html(second)
} }
if (Joe.BIRTHDAY && /(\d{4})\/(\d{1,2})\/(\d{1,2}) (\d{1,2})\:(\d{1,2})\:(\d{1,2})/.test(Joe.BIRTHDAY)) { if (Joe.BIRTHDAY && /(\d{4})\/(\d{1,2})\/(\d{1,2}) (\d{1,2})\:(\d{1,2})\:(\d{1,2})/.test(Joe.BIRTHDAY)) {
console.log(1);
getRunTime() getRunTime()
setInterval(getRunTime, 1000) setInterval(getRunTime, 1000)
} }

View File

@ -3,7 +3,7 @@
/* 获取主题当前版本号 */ /* 获取主题当前版本号 */
function _getVersion() function _getVersion()
{ {
return "5.0.5"; return "5.0.6";
}; };
/* 判断是否是手机 */ /* 判断是否是手机 */