waku.org/js/main.js

1 line
514 B
JavaScript

const nav=document.querySelector("#nav"),burger=document.querySelector("#burger"),social=document.querySelector("#social-box"),socialMobile=document.querySelector("#social-box-mobile"),logo=document.querySelector("#header-logo");function handleHeader(){social.classList.toggle("social--visible"),socialMobile.classList.toggle("social-mobile--visible"),logo.classList.toggle("logo--hidden"),burger.classList.toggle("burger--active"),nav.classList.toggle("nav--active")}burger.addEventListener("click",handleHeader);