]> iEval git - gruntmaster-page.git/blame - js/90-mobilenav.js
Use document.documentElement.clientWidth instead of window.innerWidth
[gruntmaster-page.git] / js / 90-mobilenav.js
CommitLineData
7093e9ba 1$(function(){
4aff66ac 2 if(document.documentElement.clientWidth >= 768)
7093e9ba
MG
3 return;
4 $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center">Tap title to toggle menu</div>');
5 $('nav')[0].classList.add('hidden');
8345760a 6 $('#title').on('click', () => $('nav')[0].classList.toggle('hidden'));
7093e9ba 7});
This page took 0.023471 seconds and 4 git commands to generate.