Init commit

This commit is contained in:
2023-05-14 01:54:05 +10:00
commit 8c626d4515
68 changed files with 4574 additions and 0 deletions

View File

@@ -0,0 +1 @@
(()=>{const e=document.getElementById("mode"),t=e=>{e==="dark"?(localStorage.setItem("theme","light"),initTheme("light")):e==="light"&&(localStorage.setItem("theme","dark"),initTheme("dark"))};e.addEventListener("click",()=>t(getThemeState()));const n=document.getElementById("menu-trigger");n.addEventListener("change",function(){const e=document.querySelector(".wrapper");this.checked?e.classList.add("blurry"):e.classList.remove("blurry")})})();const gttButton=document.getElementById("totop");window.onscroll=()=>{document.body.scrollTop>300||document.documentElement.scrollTop>300?(gttButton.style.visibility="visible",gttButton.style.opacity="1"):(gttButton.style.visibility="hidden",gttButton.style.opacity="0")}