Skip to content

Instantly share code, notes, and snippets.

@shehabkhan013
Created December 17, 2017 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shehabkhan013/f95ca29c6630d23ce68dcec9b31de5e8 to your computer and use it in GitHub Desktop.
Save shehabkhan013/f95ca29c6630d23ce68dcec9b31de5e8 to your computer and use it in GitHub Desktop.
function responsiveMenu($width){
if ($(window).width() < $width) {
$("#menu").hide();
}else {
$("#menu").show();
}
$('.menu-button').on('click' , function(){
$("#menu").slideToggle(500);
return false;
})
}
responsiveMenu(767);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment