优化页脚样式一图片加载
This commit is contained in:
parent
2ee30fe2bb
commit
6482b9973e
|
@ -38,17 +38,6 @@
|
||||||
t = Math.trunc(234e8 + (now - grt) / 1e3 * 17)
|
t = Math.trunc(234e8 + (now - grt) / 1e3 * 17)
|
||||||
n = (t / 1496e5).toFixed(6)
|
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() {
|
function updateHtml() {
|
||||||
const footer = document.getElementById("footer");
|
const footer = document.getElementById("footer");
|
||||||
|
@ -63,6 +52,15 @@
|
||||||
updateTime();
|
updateTime();
|
||||||
updateHtml();
|
updateHtml();
|
||||||
}, 1000);
|
}, 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)
|
||||||
})();</script>
|
})();</script>
|
||||||
|
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|
Loading…
Reference in New Issue