Team:Cornell/templates/wetnav

From 2013.igem.org

(Difference between revisions)
Line 64: Line 64:
else if(h.indexOf("project/wetlab/chassis") != -1)
else if(h.indexOf("project/wetlab/chassis") != -1)
{ document.getElementById("liChassis").className="active"; }
{ document.getElementById("liChassis").className="active"; }
-
else if(h.indexOf("project/wetlab/fungal_toolkit") != -1)
 
-
{ var liFT = document.getElementById("liFungalToolkit")
 
-
liFT.className="active";
 
-
var childLi = liFT.children[1].children;
 
-
for(var i = 0; i < childLi.length; i++) { childLi[i].className="inactive"; }
 
-
}
 
else if(h.indexOf("project/wetlab/fungal_toolkit/regulatory_elements") != -1)
else if(h.indexOf("project/wetlab/fungal_toolkit/regulatory_elements") != -1)
{ document.getElementById("liRegulatoryElements").className="active"; }
{ document.getElementById("liRegulatoryElements").className="active"; }
Line 88: Line 82:
else if(h.indexOf("project/wetlab/biobricks") != -1)
else if(h.indexOf("project/wetlab/biobricks") != -1)
{ document.getElementById("liBioBricks").className="active"; }
{ document.getElementById("liBioBricks").className="active"; }
 +
else if(h.indexOf("project/wetlab/fungal_toolkit") != -1)
 +
{ var liFT = document.getElementById("liFungalToolkit")
 +
liFT.className="active";
 +
var childLi = liFT.children[1].children;
 +
for(var i = 0; i < childLi.length; i++) { childLi[i].className="inactive"; }
 +
}
else if(h.indexOf("project/wetlab/animation") != -1)
else if(h.indexOf("project/wetlab/animation") != -1)
{ document.getElementById("liAnimation").className="active"; }
{ document.getElementById("liAnimation").className="active"; }

Revision as of 00:10, 27 September 2013