Difference between revisions of "Template:Main2017"

Line 16: Line 16:
 
load_menu (wgPageName);
 
load_menu (wgPageName);
 
}
 
}
 
+
else {
 +
load_menu ("Main");
 +
}
  
  
Line 22: Line 24:
  
 
//load menu
 
//load menu
function load_menu ( page_url_and_id ) {
+
function load_menu ( div_to_load ) {
  
 
// the full url is summed to the div id that holds that specific menu
 
// the full url is summed to the div id that holds that specific menu
  
//page_url_and_id = "https://2017.igem.org/HQ:Menu" +"#"+ page_url_and_id;
+
var page_url_and_id = "https://2017.igem.org/HQ:Menu" +"#"+ div_to_load;
  
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Competition", function() {
+
$( "#load_menu_here" ).load( page_url_and_id, function() {
 
 
 
//executes menu functionality ( accordion and toggles) once the menu is loaded
 
//executes menu functionality ( accordion and toggles) once the menu is loaded

Revision as of 16:22, 14 November 2016