Team:Cornell/templates/wetnav

From 2013.igem.org

(Difference between revisions)
Line 60: Line 60:
<script>
<script>
var h=window.location.href.toString()
var h=window.location.href.toString()
-
if(h=="https://2013.igem.org/Team:Cornell/project/wetlab")
+
if(h == "https://2013.igem.org/Team:Cornell/project/wetlab")
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/chassis")
+
else if(h.indexOf("project/wetlab/chassis") != -1)
{ document.getElementById("liChassis").className="active"; }
{ document.getElementById("liChassis").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit")
+
else if(h.indexOf("project/wetlab/fungal_toolkit") != -1)
{ var liFT = document.getElementById("liFungalToolkit")
{ var liFT = document.getElementById("liFungalToolkit")
liFT.className="active";
liFT.className="active";
Line 70: Line 70:
for(var i = 0; i < childLi.length; i++) { childLi[i].className="inactive"; }
for(var i = 0; i < childLi.length; i++) { childLi[i].className="inactive"; }
}
}
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/regulatory_elements")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/regulatory_elements") != -1)
{ document.getElementById("liRegulatoryElements").className="active"; }
{ document.getElementById("liRegulatoryElements").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/resistance_markers")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/resistance_markers") != -1)
{ document.getElementById("liResistanceMarkers").className="active"; }
{ document.getElementById("liResistanceMarkers").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/homologous_constructs")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/homologous_constructs") != -1)
{ document.getElementById("liHomologousConstructs").className="active"; }
{ document.getElementById("liHomologousConstructs").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/characterization")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/characterization") != -1)
{ document.getElementById("liCharacterization").className="active"; }
{ document.getElementById("liCharacterization").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/biosafety")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/biosafety") != -1)
{ document.getElementById("liBioSafety").className="active"; }
{ document.getElementById("liBioSafety").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/carotenoids")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/carotenoids") != -1)
{ document.getElementById("liCarotenoids").className="active"; }
{ document.getElementById("liCarotenoids").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/limonene")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/limonene") != -1)
{ document.getElementById("liLimonene").className="active"; }
{ document.getElementById("liLimonene").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/antifungals")
+
else if(h.indexOf("project/wetlab/fungal_toolkit/antifungals") != -1)
{ document.getElementById("liAntiFungals").className="active"; }
{ document.getElementById("liAntiFungals").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/biobricks")
+
else if(h.indexOf("project/wetlab/biobricks") != -1)
{ document.getElementById("liBioBricks").className="active"; }
{ document.getElementById("liBioBricks").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/animation")
+
else if(h.indexOf("project/wetlab/animation") != -1)
{ document.getElementById("liAnimation").className="active"; }
{ document.getElementById("liAnimation").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/future_work")
+
else if(h.indexOf("roject/wetlab/future_work") != -1)
{ document.getElementById("liFutureWork").className="active"; }
{ document.getElementById("liFutureWork").className="active"; }
</script>
</script>
</html>
</html>

Revision as of 00:08, 27 September 2013