diff --git a/resource/static/theme-daynight/js/main.js b/resource/static/theme-daynight/js/main.js index 14050f3..1454976 100644 --- a/resource/static/theme-daynight/js/main.js +++ b/resource/static/theme-daynight/js/main.js @@ -1 +1 @@ -function callAllJsFiles(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(e)}callAllJsFiles("/static/theme-daynight/js/navtop.js"),callAllJsFiles("/static/theme-daynight/js/mode.js"); \ No newline at end of file +function callAllJsFiles(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(e)}callAllJsFiles("/static/theme-daynight/js/mode.js?v202101241800"),callAllJsFiles("/static/theme-daynight/js/navtop.js?v202101241800"); diff --git a/resource/static/theme-daynight/js/service.js b/resource/static/theme-daynight/js/service.js index 8624047..fdd11aa 100644 --- a/resource/static/theme-daynight/js/service.js +++ b/resource/static/theme-daynight/js/service.js @@ -1 +1 @@ -function callAllJsFiles(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(e)}callAllJsFiles("/static/theme-daynight/js/navtop.js"),callAllJsFiles("/static/theme-daynight/js/mode.js"),callAllJsFiles("/static/theme-daynight/js/tooltip.js"),$(".corner").hover((function(){$(this).attr("aria-expanded","true")})); \ No newline at end of file +function callAllJsFiles(e){var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("src",e),document.getElementsByTagName("head")[0].appendChild(t)}callAllJsFiles("./static/theme-daynight/js/navtop.js?v202101241800"),callAllJsFiles("./static/theme-daynight/js/mode.js?v202101241800"),$(".corner").hover((function(){$(this).attr("aria-expanded","true")}));const hour=new Date(Date.now()).getHours();(hour>17||hour<4)&&(document.querySelector("input[name=theme]").checked=!0,document.getElementsByTagName("BODY")[0].setAttribute("data-theme","dark")); diff --git a/resource/template/theme-daynight/home.html b/resource/template/theme-daynight/home.html index c15255d..d967063 100644 --- a/resource/template/theme-daynight/home.html +++ b/resource/template/theme-daynight/home.html @@ -9,7 +9,7 @@ {{.Title}} - + @@ -20,7 +20,7 @@