diff --git a/templates/modules/common/footer-style-one.html b/templates/modules/common/footer-style-one.html index c5339b1e..20bcd28b 100644 --- a/templates/modules/common/footer-style-one.html +++ b/templates/modules/common/footer-style-one.html @@ -39,13 +39,15 @@ n = (t / 1496e5).toFixed(6) } - if (!(nowHour < 18 && nowHour >= 9)) { - // 如果是下班时间,插入"困困鱼-下班啦.svg"图片 - let img = document.querySelector("#workboard .workSituationImg"); - img.src = "[[${theme.config.footer.footerContent.style_one.offduty_img}]]"; - img.title = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]"; - img.alt = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]"; - } + setTimeout(()=>{ + if (!(nowHour < 18 && nowHour >= 9)) { + // 如果是下班时间,插入"困困鱼-下班啦.svg"图片 + let img = document.querySelector("#workboard .workSituationImg"); + img.src = "[[${theme.config.footer.footerContent.style_one.offduty_img}]]"; + img.title = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]"; + img.alt = "[[${theme.config.footer.footerContent.style_one.offduty_description}]]"; + } + },1000) // 更新网页中显示的网站运行时间 function updateHtml() {