Use window.innerWidth instead of document.body.clientWidth
[plack-app-gruntmaster.git] / js / 90-mobilenav.js
CommitLineData
f3f57928
MG
1(function(){
2 'use strict';
3
4 $( document ).ready(function(){
a7e836f2 5 if(window.innerWidth >= 768)
f3f57928
MG
6 return;
7 $('#title').before('<div class="text-center">Tap title to toggle menu</div>');
8 $('nav').addClass('hidden');
2bb3a377 9 $('#title').on('click', function () {
f3f57928
MG
10 $('nav').toggleClass('hidden');
11 });
12 });
13})();
This page took 0.009368 seconds and 4 git commands to generate.