web: added global nav for small devices

This commit is contained in:
Thomas Mathews 2022-11-12 20:10:56 -08:00
parent 5ad6201749
commit 0fdde7b384
4 changed files with 46 additions and 1 deletions

View file

@ -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");
}