ide.removeClass('mobile-open'); } else { nodes.aside.removeClass('mobile-close panel-show'); } doing = false; }); $('#open-panel, #aside-mask').on('click', function() { if (doing) { return; } if (nodes.aside.hasClass('panel-show')) { nodes.aside.addClass('mobile-close'); } else { nodes.aside.addClass('mobile-open panel-show'); } }); $('#open-menus').on('click', function() { nodes.navInner.slideToggle(); }); if (window.innerWidth <= 960) { setTimeout(function() { nodes.navInner.slideUp(); }, 3000); } });