Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
splitted = url.split("2011.igem.org/Team:Freiburg/"); | splitted = url.split("2011.igem.org/Team:Freiburg/"); | ||
url = splitted[1]; | url = splitted[1]; | ||
- | + | // check is we are in a submenu | |
- | alert( | + | |
+ | alert(url.search('/')); | ||
var submenus= ['sub-team','sub-project']; | var submenus= ['sub-team','sub-project']; | ||
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ |
Revision as of 15:18, 3 July 2011