Difference between revisions of "Template:Toulouse/nav"
Line 78: | Line 78: | ||
// SET ACTIVE | // SET ACTIVE | ||
− | var activeColor = ' | + | var activeColor = '#72B02A'; |
if (myurl.search("notebook") != -1){ | if (myurl.search("notebook") != -1){ | ||
− | document.getElementById('notebook').style = activeColor;} | + | document.getElementById('notebook').style.color = activeColor;} |
else{ | else{ | ||
if (myurl.search("humanp") != -1){ | if (myurl.search("humanp") != -1){ | ||
− | document.getElementById('humanp').style = activeColor;} | + | document.getElementById('humanp').style.color = activeColor;} |
else{ | else{ | ||
if (myurl.search("issues") != -1){ | if (myurl.search("issues") != -1){ | ||
− | document.getElementById('issues').style = activeColor;} | + | document.getElementById('issues').style.color = activeColor;} |
else{ | else{ | ||
if (myurl.search("achievements") != -1){ | if (myurl.search("achievements") != -1){ | ||
− | document.getElementById('achiev').style = activeColor;} | + | document.getElementById('achiev').style.color = activeColor;} |
else{ | else{ | ||
if (myurl.search("members") != -1){ | if (myurl.search("members") != -1){ | ||
− | document.getElementById('team').style = activeColor;} | + | document.getElementById('team').style.color = activeColor;} |
else{ | else{ | ||
if (myurl.search("project") != -1){ | if (myurl.search("project") != -1){ | ||
− | document.getElementById('project').style = activeColor;} | + | document.getElementById('project').style.color = activeColor;} |
else{ | else{ | ||
− | document.getElementById('home').style = activeColor; | + | document.getElementById('home').style.color = activeColor; |
} | } | ||
} | } |
Revision as of 08:16, 6 August 2015