Skip to content

Instantly share code, notes, and snippets.

@ckschmieder
Created February 15, 2017 06:49
Show Gist options
  • Save ckschmieder/eb2f8e0245a14d8bd9945edbb3150b50 to your computer and use it in GitHub Desktop.
Save ckschmieder/eb2f8e0245a14d8bd9945edbb3150b50 to your computer and use it in GitHub Desktop.
Test code for mob nav improvement
$(".site-header a.category-link").click(function(){
$("p").removeClass("expanded");
});
$(".site-header a.homeAnchor").click(function(e){
e.preventDefault();
setTimeout(function(){
$(".header-nav-container").delay(1800).removeClass("expanded");
$(".mobile-nav-button").delay( 1800 ).removeClass("expanded");
}, 500);
});
$("#info-text").delay(500).queue(function(next) {
$(this).addClass("info-text-active");
next();
});
$(.mobile-nav-button).trigger('click');
$(".site-header a.homeAnchor").click(function(){
setTimeout(function(){
$(".header-nav-container").removeClass("expanded");
$(".mobile-nav-button").removeClass("expanded");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment