X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-mobilenav.js;h=abba03e4fd3be93830be82d3d9b081513680f5f2;hb=7cbc093ea2bc5b60c8882ea2358af8cb200e58fc;hp=cf0adfcdfc047b3dd25ac1814b0e85fecb407a87;hpb=f2752dd5062a025917bb88bda9ced71bc6d06875;p=gruntmaster-page.git diff --git a/js/90-mobilenav.js b/js/90-mobilenav.js index cf0adfc..abba03e 100644 --- a/js/90-mobilenav.js +++ b/js/90-mobilenav.js @@ -2,7 +2,7 @@ 'use strict'; $( document ).ready(function(){ - if(document.body.clientWidth >= 768) + if(window.innerWidth >= 768) return; $('#title').before('
Tap title to toggle menu
'); $('nav').addClass('hidden');