aboutsummaryrefslogtreecommitdiffstats
path: root/syte/static/js/components/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'syte/static/js/components/mobile.js')
-rw-r--r--syte/static/js/components/mobile.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/syte/static/js/components/mobile.js b/syte/static/js/components/mobile.js
new file mode 100644
index 0000000..4b530b3
--- /dev/null
+++ b/syte/static/js/components/mobile.js
@@ -0,0 +1,15 @@
+
+var isMobileView = false;
+var mediaQuery = window.matchMedia("(max-width:600px)");
+
+if (mediaQuery.matches) {
+ isMobileView = true;
+}
+
+$(function() {
+ $('#mobile-nav-btn').click(function() {
+ $('.main-section').toggleClass('nav-opened');
+ });
+});
+
+