$(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>');
- $('#title').on('click', () => nav.classList.toggle('hidden-xs'));
+ 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'));
});