Difference between revisions of "Template:2016Demo bottom"

Line 129: Line 129:
  
 
if($('#Demo_mainpage').is(':visible')) {
 
if($('#Demo_mainpage').is(':visible')) {
  alert ("we can use this");
 
}
 
  
if (switch_whichMenu == false) {
+
for ( var i=1; i< hub_list.length; i++ ) {
 +
 
 +
if ( wgPageName.indexOf( hub_list[i] ) > -1 ) {
 +
whichPageMenu( "https://2015.igem.org/Menu/DemoSafety" + " " + "#" +  hub_list[i] );
 +
}
 +
}
 +
}
 +
 
 +
else  {
  
 
$(".switch_Menus").html(" ► ");
 
$(".switch_Menus").html(" ► ");
Line 140: Line 146:
 
} );
 
} );
  
switch_whichMenu = true ;
 
 
}
 
}
  
else {
 
  
for ( var i=1; i< hub_list.length; i++ ) {
 
 
if ( wgPageName.indexOf( hub_list[i] ) > -1 ) {
 
whichPageMenu( "https://2015.igem.org/Menu/DemoSafety" + " " + "#" +  hub_list[i] );
 
}
 
}
 
 
switch_whichMenu = false ;
 
}
 
 
} );
 
} );
  

Revision as of 21:10, 23 November 2015