Replace Zepto with ki.js, rewrite all JS
[plack-app-gruntmaster.git] / js / 90-mobilenav.js
index f8774214d5109fbab11460017dd1ab799bf2368b..8577ecc6a2e3f411328f2eb9c990e91382f09650 100644 (file)
@@ -1,13 +1,9 @@
-(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').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').on('click', function () {
+               $('nav')[0].classList.toggle('hidden');
        });
-})();
+});
This page took 0.009363 seconds and 4 git commands to generate.