summaryrefslogtreecommitdiff
path: root/wwwroot/js/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'wwwroot/js/mobile.js')
-rw-r--r--wwwroot/js/mobile.js8
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');
}