()
| 405 | } |
| 406 | |
| 407 | function closeSidebar() { |
| 408 | sidebar.classList.remove("open"); |
| 409 | overlay.classList.remove("visible"); |
| 410 | menuBtn.classList.remove("open"); |
| 411 | document.body.style.overflow = ""; |
| 412 | } |
| 413 | |
| 414 | menuBtn.addEventListener("click", () => { |
| 415 | sidebar.classList.contains("open") ? closeSidebar() : openSidebar(); |