diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-04-15 02:59:58 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-04-15 02:59:58 +1000 |
| commit | d59e751c5b7c23f0dce2a146b6b8ced80231a0cb (patch) | |
| tree | 3f2d949b4f073b71ce655bb4ce97b2e54e588fd3 /wwwroot/js | |
| parent | 720856bb353ab66a773e0a438d8af7f0a2188641 (diff) | |
v0.9av0.9a
Diffstat (limited to 'wwwroot/js')
| -rw-r--r-- | wwwroot/js/mobile.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wwwroot/js/mobile.js b/wwwroot/js/mobile.js index 769f435..0af11cc 100644 --- a/wwwroot/js/mobile.js +++ b/wwwroot/js/mobile.js @@ -1,3 +1,7 @@ -function toggleMobileMenu() { - document.getElementById("mobile-menu").classList.toggle("hidden"); +function hideMobileMenu() { + document.getElementsByTagName('body')[0].classList.remove('mobile-menu-visible'); +} + +function toggleMobileMenu() { + document.getElementsByTagName('body')[0].classList.toggle('mobile-menu-visible'); } |
