-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.bundle.js
More file actions
1 lines (1 loc) · 1.78 KB
/
index.bundle.js
File metadata and controls
1 lines (1 loc) · 1.78 KB
1
(()=>{"use strict";let e,t,a,s=!0;function o(){if(s){e.style.removeProperty("background-color"),t.style.removeProperty("background-color");for(let e of a)e.style.removeProperty("background-color");return}let[r,l]=[170,305],c=l-r,n=Date.now()/1e3,d=r+c/30*(30-Math.abs(n%60-30));e.style.backgroundColor=`hsla(${d}, 100%, 50%, 0.15`,t.style.backgroundColor=`hsla(${d}, 100%, 50%, 0.18`;for(let e of a)e.style.backgroundColor=`hsla(${d}, 100%, 50%, 0.4`;window.requestAnimationFrame(o)}document.addEventListener("DOMContentLoaded",(()=>{Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0).forEach((e=>{e.addEventListener("click",(()=>{const t=e.dataset.target,a=document.getElementById(t);e.classList.toggle("is-active"),a.classList.toggle("is-active")}))})),e=document.getElementsByTagName("html")[0],t=document.getElementsByTagName("nav")[0],a=document.getElementsByTagName("hr"),document.getElementsByTagName("body")[0];let r=document.getElementById("biz-butt"),l=document.getElementById("cazh-butt"),c=Array.from(document.getElementsByClassName("biz")),n=Array.from(document.getElementsByClassName("squid")),d=()=>document.getElementsByTagName("body")[0].classList.toggle("cazh-font"),m=()=>{s&&(s=!1,localStorage.setItem("party",!0),r.classList.remove("active"),t.classList.toggle("has-shadow"),l.classList.add("active"),c.forEach((e=>{e.innerHTML=e.dataset.cazh})),d(),t.classList.remove("has-shadow"),window.requestAnimationFrame(o))};r.addEventListener("click",(()=>{s||(s=!0,localStorage.setItem("party",!1),r.classList.add("active"),l.classList.remove("active"),c.forEach((e=>{e.innerHTML=e.dataset.biz})),d(),t.classList.add("has-shadow"))})),l.addEventListener("click",m),"true"===localStorage.getItem("party")&&m(),setInterval((()=>n.forEach((e=>e.classList.toggle("hflip")))),1e3)}))})();