diff --git a/templates/modules/common/footer-style-one.html b/templates/modules/common/footer-style-one.html index 20bcd28b..783ad002 100644 --- a/templates/modules/common/footer-style-one.html +++ b/templates/modules/common/footer-style-one.html @@ -38,17 +38,6 @@ t = Math.trunc(234e8 + (now - grt) / 1e3 * 17) n = (t / 1496e5).toFixed(6) } - - 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() { const footer = document.getElementById("footer"); @@ -63,6 +52,15 @@ updateTime(); updateHtml(); }, 1000); + 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}]]"; + } + },1100) })();