...
|
...
|
@@ -26,7 +26,7 @@ var requestFrame, |
|
|
$logotrans = $('.home-header .logo'),
|
|
|
isen = true;
|
|
|
|
|
|
var navHammer, mobileWrapHammer;
|
|
|
var navHammer;
|
|
|
|
|
|
require('./maybe-like');
|
|
|
|
...
|
...
|
@@ -53,23 +53,18 @@ navHammer.on('tap', function(event) { |
|
|
function hideSideBar() {
|
|
|
if ($mobileWrap.hasClass('menu-open')) {
|
|
|
$mobileWrap.removeClass('menu-open');
|
|
|
$overlay.css('opacity', 0);
|
|
|
$('.overlay').hide();
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
$sideNav.removeClass('on');
|
|
|
$('body').css({
|
|
|
height: 'auto',
|
|
|
overflow: 'auto'
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
$('.overlay').hide();
|
|
|
}, 300);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
mobileWrapHammer = new Hammer($('.mobile-wrap')[0]);
|
|
|
mobileWrapHammer.on('tap', function(e) {
|
|
|
$('.overlay').on('touchend', function(e) {
|
|
|
hideSideBar();
|
|
|
e.srcEvent.stopPropagation();
|
|
|
return false;
|
|
|
});
|
|
|
|
...
|
...
|
|