aboutsummaryrefslogtreecommitdiffstats
path: root/syte/static/js/components/mobile.js
diff options
context:
space:
mode:
authorSamrat Man Singh <samratmansingh@gmail.com>2012-07-07 08:31:08 +0545
committerSamrat Man Singh <samratmansingh@gmail.com>2012-07-07 08:31:08 +0545
commit2ce26b4ed17e153d9834e6dd21ec0da92d71139e (patch)
tree9b59308831e99ed534f28aac51b5b236ac54ce87 /syte/static/js/components/mobile.js
parent705357519b7345422a003d8970d1f396579d91b2 (diff)
downloadpelican-themes-2ce26b4ed17e153d9834e6dd21ec0da92d71139e.tar.gz
Move syte-pelican to syte
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');
+ });
+});
+
+