my-portfolio/dist/editor/js/editor.js
rodude123 cb1b77c6dc Created Navbar for the editor
Signed-off-by: rodude123 <rodude123@gmail.com>
2022-09-16 16:49:58 +01:00

1 line
552 B
JavaScript

document.addEventListener("DOMContentLoaded",(e=>{})),document.querySelector("#navOpen").addEventListener("click",(e=>{document.querySelector("nav.sideNav").style.removeProperty("width"),document.querySelector("main.editor").style.removeProperty("margin-left"),e.target.style.removeProperty("visibility")})),document.querySelector("#navClose").addEventListener("click",(e=>{document.querySelector("nav.sideNav").style.width="0",document.querySelector("main.editor").style.marginLeft="0",document.querySelector("#navOpen").style.visibility="visible"}));