Difference between revisions of "Template:Toulouse/nav"

Line 80: Line 80:
 
var activeColor = #82E2BC;
 
var activeColor = #82E2BC;
 
if (myurl.search("notebook") != -1){
 
if (myurl.search("notebook") != -1){
document.getElementById('notebook').style = activeColor;}
+
document.getElementById('notebook').style = activeColor;
 +
document.write("notebook");}
 
else{
 
else{
 
if (myurl.search("humanp") != -1){
 
if (myurl.search("humanp") != -1){
document.getElementById('humanp').style = activeColor;}
+
document.getElementById('humanp').style = activeColor;
 +
document.write("humanp");}
 
else{
 
else{
 
if (myurl.search("issues") != -1){
 
if (myurl.search("issues") != -1){
document.getElementById('issues').style = activeColor;}
+
document.getElementById('issues').style = activeColor;
 +
document.write("issues");}
 
else{
 
else{
 
if (myurl.search("achievements") != -1){
 
if (myurl.search("achievements") != -1){
document.getElementById('achiev').style = activeColor;}
+
document.getElementById('achiev').style = activeColor;
 +
document.write("achiev");}
 
else{
 
else{
 
if (myurl.search("members") != -1){
 
if (myurl.search("members") != -1){
document.getElementById('team').style = activeColor;}
+
document.getElementById('team').style = activeColor;
 +
document.write("team");}
 
else{
 
else{
 
if (myurl.search("project") != -1){
 
if (myurl.search("project") != -1){
document.getElementById('project').style = activeColor;}
+
document.getElementById('project').style = activeColor;
 +
document.write("project");}
 
else{
 
else{
 
document.getElementById("myH1").style.color = "red";
 
document.getElementById("myH1").style.color = "red";

Revision as of 16:00, 4 August 2015