projects
/
gruntmaster-page.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use document.documentElement.clientWidth instead of window.innerWidth
[gruntmaster-page.git]
/
js
/
90-mobilenav.js
diff --git
a/js/90-mobilenav.js
b/js/90-mobilenav.js
index fb575d9288a34f375e1118418be5181a87fdfeed..c53666967596cf298dfabcfad404a75e1d5fcceb 100644
(file)
--- a/
js/90-mobilenav.js
+++ b/
js/90-mobilenav.js
@@
-1,5
+1,5
@@
$(function(){
- if(
window.inner
Width >= 768)
+ if(
document.documentElement.client
Width >= 768)
return;
$('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center">Tap title to toggle menu</div>');
$('nav')[0].classList.add('hidden');
This page took
0.009956 seconds
and
4
git commands to generate.