优化页脚样式一图片加载 (#368)

This commit is contained in:
Roozen 2023-08-04 01:09:29 +08:00 committed by GitHub
parent 0065cec8f9
commit 2ee30fe2bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -39,6 +39,7 @@
n = (t / 1496e5).toFixed(6)
}
setTimeout(()=>{
if (!(nowHour < 18 && nowHour >= 9)) {
// 如果是下班时间,插入"困困鱼-下班啦.svg"图片
let img = document.querySelector("#workboard .workSituationImg");
@ -46,6 +47,7 @@
img.title = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]";
img.alt = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]";
}
},1000)
// 更新网页中显示的网站运行时间
function updateHtml() {