Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-mobilenav.js
index abba03e4fd3be93830be82d3d9b081513680f5f2..f8c9628ca824677e698c6599116fa71f16da4881 100644 (file)
@@ -1,13 +1,7 @@
-(function(){
-       'use strict';
-
-       $( document ).ready(function(){
-               if(window.innerWidth >= 768)
-                       return;
-               $('#title').before('<div class="text-center">Tap title to toggle menu</div>');
-               $('nav').addClass('hidden');
-               $('#title,#logo').on('click', function () {
-                       $('nav').toggleClass('hidden');
-               });
-       });
-})();
+$(function(){
+       if(window.innerWidth >= 768)
+               return;
+       $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center">Tap title to toggle menu</div>');
+       $('nav')[0].classList.add('hidden');
+       $('#title,#logo').on('click', () => $('nav')[0].classList.toggle('hidden'));
+});
This page took 0.009006 seconds and 4 git commands to generate.