From 6482b9973e1e95c537263ee5226dac8ba57d1ebb Mon Sep 17 00:00:00 2001 From: roozen <2273038475@qq.com> Date: Fri, 4 Aug 2023 11:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E8=84=9A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=80=E5=9B=BE=E7=89=87=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/common/footer-style-one.html | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) 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) })();