Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-mobilenav.js
index 9efe8fccb7b968b8759ab0d2cb78f50d51152771..981c843b7afc1f641cb6c9931956e654349d37b3 100644 (file)
@@ -1,6 +1,6 @@
 $(function(){
-       const nav = $('nav')[0];
+       const nav = q('nav');
        nav.classList.add('hidden-xs');
-       $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center visible-xs-block">Tap title to toggle menu</div>');
+       q('#title').insertAdjacentHTML('beforebegin', '<div class="text-center visible-xs-block">Tap title to toggle menu</div>');
        $('#title,#logo').on('click', () => nav.classList.toggle('hidden-xs'));
 });
This page took 0.009567 seconds and 4 git commands to generate.