final version for testing

This commit is contained in:
Nuno Coração
2023-01-14 02:09:45 +00:00
parent f970b2b6d9
commit d8e641dc8d
14 changed files with 227 additions and 109 deletions
-11
View File
@@ -1,11 +0,0 @@
function header_toggle_nested_menu(element) {
if (!element) {
throw new Error("Could not find button")
}
let parent_element = element.parentElement;
if(!parent_element) {
throw new Error("Could not get parent element from button")
}
let nested_menu = parent_element.querySelector(".header-nested-menu")
nested_menu.classList.toggle('hidden');
}