Make JS a bit simpler
[plack-app-gruntmaster.git] / js / 90-mobilenav.js
1 $(function(){
2 const nav = q('nav');
3 nav.classList.add('hidden-xs');
4 q('#title').insertAdjacentHTML('beforebegin', '<div class="text-center visible-xs-block">Tap title to toggle menu</div>');
5 $('#title').on('click', () => nav.classList.toggle('hidden-xs'));
6 });
This page took 0.023163 seconds and 4 git commands to generate.