Skip to content

Instantly share code, notes, and snippets.

@cphilippsen
Created August 23, 2013 10:37
Show Gist options
  • Save cphilippsen/6317891 to your computer and use it in GitHub Desktop.
Save cphilippsen/6317891 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$('a#nav-btn').click(function() {
$(this).toggleClass('nav-btn-active');
$('#nav').stop().slideToggle(200).toggleClass('nav-active');
return false;
});
$('a#login-btn').click(function() {
$(this).toggleClass('login-btn-active');
$('.buttons').slideToggle();
return false;
});
$('#subnavigation > ul').waypoint('sticky', {
wrapper: '<div class="sticky-sub" />',
stuckClass: 'stuck',
offset: 100
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment