'use strict';
$( document ).ready(function(){
- if(document.body.clientWidth >= 768)
+ if(window.innerWidth >= 768)
return;
$('#title').before('<div class="text-center">Tap title to toggle menu</div>');
$('nav').addClass('hidden');
- $('#title').css('margin', '6px').on('click', function () {
+ $('#title,#logo').on('click', function () {
$('nav').toggleClass('hidden');
});
});