initial commit
This commit is contained in:
9
themes/gallery/assets/js/menu.js
Normal file
9
themes/gallery/assets/js/menu.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const el = document.getElementById("menu-toggle");
|
||||
if (el) {
|
||||
el.addEventListener("click", (event) => {
|
||||
event.preventDefault();
|
||||
const target = document.getElementById("menu");
|
||||
el.ariaExpanded = target.classList.contains("hidden");
|
||||
target.classList.toggle("hidden");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user