Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2011 18:06
Show Gist options
  • Save anonymous/1320324 to your computer and use it in GitHub Desktop.
Save anonymous/1320324 to your computer and use it in GitHub Desktop.
$(".menu ul li").click(function(){
//show the loading bar
showLoading();
//load selected section
switch(this.id){
case "home":
navmenu.load("navmenu.html #zhome", hideLoading);
break;
case "our-team":
navmenu.load("navmenu.html #zour-team", hideLoading);
break;
case "strategy":
navmenu.load("navmenu.html #zstrategy", hideLoading);
break;
case "portfolio":
navmenu.load("navmenu.html #zportfolio", hideLoading);
break;
case "timeline":
navmenu.load("navmenu.html #ztimeline", hideLoading);
break;
case "news":
navmenu.load("navmenu.html #znews", hideLoading);
break;
case "contact":
navmenu.load("navmenu.html #zcontact", hideLoading);
break;
default:
//hide loading bar if there is no selected section
hideLoading();
break;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment