Created
June 22, 2017 16:40
-
-
Save mkdizajn/a11002e7024667dfcee68207f5e03545 to your computer and use it in GitHub Desktop.
total fullscreen mobile menu link patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$('.mobile-menu-toggle').on('click', function(){ | |
if( !window.bindOnceAfterMobileMenuFinished){ | |
$( '.full-screen-overlay-nav.black li a span' ).on('click', function(event) { | |
var hash = $(this).attr('data-ls_linkto'); | |
setTimeout(function() { | |
window.wpex.scrollTo(hash); | |
}, 600, hash); | |
$('.full-screen-overlay-nav-close').click(); | |
}); | |
window.bindOnceAfterMobileMenuFinished = true; | |
} | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment