web: added global nav for small devices
This commit is contained in:
parent
5ad6201749
commit
0fdde7b384
4 changed files with 46 additions and 1 deletions
|
@ -11,3 +11,8 @@ function toggle_cw(el) {
|
|||
input.classList.toggle("hide", !isOn);
|
||||
}
|
||||
|
||||
// toggle_gnav hides or shows the global navigation's additional buttons based
|
||||
// on its opened state.
|
||||
function toggle_gnav(el) {
|
||||
el.parentElement.classList.toggle("open");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue