Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 17: | Line 17: | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
var sbmenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | var sbmenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | ||
- | var smList = [" | + | var smList = ["members#attributions#freiburg", "overview#motivation#description#results#modelling#notebook#safety", "", "", ""]; |
for (var i = 0; i < smList.length; i++){ | for (var i = 0; i < smList.length; i++){ | ||
- | if (smList[i].search( | + | if (smList[i].search(url) >= 0){ |
+ | alert(sbmenus[i]); | ||
id = sbmenus[i]; | id = sbmenus[i]; | ||
} | } | ||
Line 313: | Line 314: | ||
<ul class="sub2" id="sub-team" display="none"> | <ul class="sub2" id="sub-team" display="none"> | ||
<li class="sub2"><a href="#"> <span class="blue"> → </span>members</a></li> | <li class="sub2"><a href="#"> <span class="blue"> → </span>members</a></li> | ||
- | <li id=" | + | <li id="attributions" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Attributions"> <span class="blue"> → </span>attributions</a></li> |
<li class="sub2"><a href="#"> <span class="blue"> → </span>freiburg</a></li> | <li class="sub2"><a href="#"> <span class="blue"> → </span>freiburg</a></li> | ||
</ul> | </ul> | ||
Line 324: | Line 325: | ||
<li class="sub2"><a href="#"><span class="blue"> → </span>results</a></li> | <li class="sub2"><a href="#"><span class="blue"> → </span>results</a></li> | ||
<li class="sub2"><a href="#"><span class="blue"> → </span>modelling</a></li> | <li class="sub2"><a href="#"><span class="blue"> → </span>modelling</a></li> | ||
- | <li id = " | + | <li id = "notebook" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Notebook"><span class="blue"> → </span>notebook</a></li> |
<li class="sub2"><a href="#"><span class="blue"> → </span>safety</a></li> | <li class="sub2"><a href="#"><span class="blue"> → </span>safety</a></li> | ||
</ul> </li> | </ul> </li> |
Revision as of 15:47, 14 July 2011