Team:Cornell/templates/outnav

From 2013.igem.org

(Difference between revisions)
Line 27: Line 27:
</body>
</body>
<script>
<script>
-
var h=window.location.href.toString()
+
var h=window.location.pathname.toString()
 +
alert(h);
if(h == "https://2013.igem.org/Team:Cornell/outreach")
if(h == "https://2013.igem.org/Team:Cornell/outreach")
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/presentations") != -1)
+
else if(h == "https://2013.igem.org/Team:Cornell/outreach/presentations")
{ document.getElementById("liPresentations").className="active"; }
{ document.getElementById("liPresentations").className="active"; }
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/discussions") != -1)
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/discussions") != -1)

Revision as of 23:48, 26 September 2013