修复页脚样式一徽标显示错误问题
This commit is contained in:
parent
7f3baa1755
commit
61a1eb7b25
|
@ -52,15 +52,6 @@
|
|||
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)
|
||||
})();</script>
|
||||
|
||||
</th:block>
|
||||
|
|
|
@ -104,11 +104,17 @@
|
|||
©[[${#dates.format(new java.util.Date(), 'yyyy')}]] By [[${site.title}]]
|
||||
</div>
|
||||
<div th:if="${theme.config.footer.footerContent.style_one.runtime_enable}" id="workboard">
|
||||
<img class="workSituationImg boardsign"
|
||||
th:src="${theme.config.footer.footerContent.style_one.work_img}"
|
||||
th:alt="${theme.config.footer.footerContent.style_one.work_description}"
|
||||
th:title="${theme.config.footer.footerContent.style_one.work_description}" />
|
||||
<div id="runtimeTextTip"></div>
|
||||
<th:block th:with="nowHour = ${#dates.hour(#dates.createNow())}">
|
||||
<img th:if="${nowHour < 18 && nowHour >= 9}" class="workSituationImg boardsign"
|
||||
th:src="${theme.config.footer.footerContent.style_one.work_img}"
|
||||
th:alt="${theme.config.footer.footerContent.style_one.work_description}"
|
||||
th:title="${theme.config.footer.footerContent.style_one.work_description}" />
|
||||
<img th:unless="${nowHour < 18 && nowHour >= 9}" class="workSituationImg boardsign"
|
||||
th:src="${theme.config.footer.footerContent.style_one.offduty_img}"
|
||||
th:alt="${theme.config.footer.footerContent.style_one.offduty_description}"
|
||||
th:title="${theme.config.footer.footerContent.style_one.offduty_description}" />
|
||||
<div id="runtimeTextTip"></div>
|
||||
</th:block>
|
||||
</div>
|
||||
<p id="ghbdages"
|
||||
th:with="bdageitem = ${theme.config.footer.footerContent.style_one.bdageitem}">
|
||||
|
|
Loading…
Reference in New Issue