projects
/
plack-app-gruntmaster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb3a37
)
Use window.innerWidth instead of document.body.clientWidth
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 8 Apr 2015 17:59:05 +0000
(20:59 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 8 Apr 2015 17:59:05 +0000
(20:59 +0300)
js/90-mobilenav.js
patch
|
blob
|
blame
|
history
diff --git
a/js/90-mobilenav.js
b/js/90-mobilenav.js
index ad354ac9f273932762a934a6de1b7aee78c74c03..f8774214d5109fbab11460017dd1ab799bf2368b 100644
(file)
--- a/
js/90-mobilenav.js
+++ b/
js/90-mobilenav.js
@@
-2,7
+2,7
@@
'use strict';
$( document ).ready(function(){
- if(
document.body.client
Width >= 768)
+ if(
window.inner
Width >= 768)
return;
$('#title').before('<div class="text-center">Tap title to toggle menu</div>');
$('nav').addClass('hidden');
This page took
0.010671 seconds
and
4
git commands to generate.