-(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'));
+});