Team:Cornell/templates/drynav

From 2013.igem.org

(Difference between revisions)
Line 38: Line 38:
if(h=="https://2013.igem.org/Team:Cornell/project/drylab")
if(h=="https://2013.igem.org/Team:Cornell/project/drylab")
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/drylab/design_considerations")
+
else if(h.indexOf("project/drylab/design_considerations") != -1)
{ document.getElementById("liDesignConsiderations").className="active"; }
{ document.getElementById("liDesignConsiderations").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/drylab/components")
+
else if(h.indexOf("project/drylab/components") != -1)
{ document.getElementById("liComponents").className="active"; }
{ document.getElementById("liComponents").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/drylab/components/fabrication")
+
else if(h.indexOf("project/drylab/components/fabrication") != -1)
{ document.getElementById("liFabrication").className="active"; }
{ document.getElementById("liFabrication").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/drylab/components/electronics")
+
else if(h.indexOf("project/drylab/components/electronics") != -1)
{ document.getElementById("liElectronics").className="active"; }
{ document.getElementById("liElectronics").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/drylab/modeling")
+
else if(h.indexOf("project/drylab/modeling") != -1)
{ document.getElementById("liModeling").className="active"; }
{ document.getElementById("liModeling").className="active"; }
</script>
</script>
</html>
</html>

Revision as of 00:11, 27 September 2013