Line 25: | Line 25: | ||
if (currentHubMenu) { // if the function returns a positive value - there is a hub menu display it | if (currentHubMenu) { // if the function returns a positive value - there is a hub menu display it | ||
− | whichPageMenu( "https://2016.igem.org/HQ | + | whichPageMenu( "https://2016.igem.org/HQ:Menu" + " " + "#" + currentHubMenu ); |
} | } | ||
Line 82: | Line 82: | ||
function showMainMenu() { | function showMainMenu() { | ||
− | $( "#menuDisplay" ).load( "https://2016.igem.org/HQ | + | $( "#menuDisplay" ).load( "https://2016.igem.org/HQ:Menu #MainPage_menu", function() { |
activateLoadedMenu(); | activateLoadedMenu(); | ||
Line 129: | Line 129: | ||
if($('#MainPage_menu').is(':visible')) { // if the main menu is displayed, call the hub menu that is needed | if($('#MainPage_menu').is(':visible')) { // if the main menu is displayed, call the hub menu that is needed | ||
− | whichPageMenu( "https://2016.igem.org/HQ | + | whichPageMenu( "https://2016.igem.org/HQ:Menu" + " " + "#" + currentHubMenu ); |
} | } | ||
else { //else display the main menu | else { //else display the main menu | ||
$(".switch_Menus").html(" ▶ "); | $(".switch_Menus").html(" ▶ "); | ||
− | whichPageMenu( "https://2016.igem.org/HQ | + | whichPageMenu( "https://2016.igem.org/HQ:Menu #MainPage_menu" ); |
} | } | ||
Line 194: | Line 194: | ||
$(".pop_why").click(function() { //IF A POP WHY IS CLICKED | $(".pop_why").click(function() { //IF A POP WHY IS CLICKED | ||
− | which_why = "https://2016.igem.org/HQ | + | which_why = "https://2016.igem.org/HQ:Why"+" " + "#" +which_why; |
$( ".pop_why_content" ).load( which_why , function() { | $( ".pop_why_content" ).load( which_why , function() { |
Revision as of 18:26, 1 December 2015