MCPcopy Create free account
hub / github.com/Alfredredbird/CyberKelp / closeSidebar

Function closeSidebar

script.js:407–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

initMobileMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected