mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-28 23:05:55 +00:00
add nested menus capability
This commit is contained in:
1 parent
b4050f08da
commit
dfb18c126c
8 files changed
+116
-17
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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');
|
||||
}
|
||||
Reference in new issue
Block a user