Difference between revisions of "Template:Toulouse/nav"
Line 13: | Line 13: | ||
− | <li class="drop"><a href="https://2015.igem.org/Team:Toulouse"><b>Home</b></a></li> | + | <li class="drop" id="home"><a href="https://2015.igem.org/Team:Toulouse"><b>Home</b></a></li> |
<li><a class="drop" href="#" id="team"><b>Team</b></a> | <li><a class="drop" href="#" id="team"><b>Team</b></a> | ||
Line 78: | Line 78: | ||
// SET ACTIVE | // SET ACTIVE | ||
− | var activeColor = 'color:rgb(51, 153, 51)'; | + | var activeColor = 'color:rgb(51, 153, 51);'; |
if (myurl.search("notebook") != -1){ | if (myurl.search("notebook") != -1){ | ||
document.getElementById('notebook').style = activeColor;} | document.getElementById('notebook').style = activeColor;} | ||
− | + | else{ | |
if (myurl.search("hp") != -1){ | if (myurl.search("hp") != -1){ | ||
document.getElementById('hp').style = activeColor;} | document.getElementById('hp').style = activeColor;} | ||
− | + | else{ | |
if (myurl.search("ethics") != -1){ | if (myurl.search("ethics") != -1){ | ||
document.getElementById('ethics').style = activeColor;} | document.getElementById('ethics').style = activeColor;} | ||
− | + | else{ | |
if (myurl.search("achievements") != -1){ | if (myurl.search("achievements") != -1){ | ||
document.getElementById('achiev').style = activeColor;} | document.getElementById('achiev').style = activeColor;} | ||
− | + | else{ | |
if (myurl.search("members") != -1){ | if (myurl.search("members") != -1){ | ||
document.getElementById('team').style = activeColor;} | document.getElementById('team').style = activeColor;} | ||
− | + | else{ | |
if (myurl.search("project") != -1){ | if (myurl.search("project") != -1){ | ||
document.getElementById('project').style = activeColor;} | document.getElementById('project').style = activeColor;} | ||
− | + | else{ | |
+ | document.getElementById('home').style = activeColor; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
Revision as of 08:18, 4 August 2015