Team:Cornell/templates/outnav

From 2013.igem.org

(Difference between revisions)
(Created page with "<html class="no-js" lang="en"> <body> <div id="bodyContent"> <div class="row last-ele"> <div class="twelve columns"> <ul class="side-nav"> <li> <h6>Outreach</h6> ...")
 
(13 intermediate revisions not shown)
Line 10: Line 10:
<li class="divider"></li>
<li class="divider"></li>
<li id="liOverview">
<li id="liOverview">
-
<a href="https://2013.igem.org/Team:Cornell/project/outreach">Overview</a>
+
<a href="https://2013.igem.org/Team:Cornell/outreach">Overview</a>
</li>
</li>
<li id="liPresentations">
<li id="liPresentations">
-
<a href="https://2013.igem.org/Team:Cornell/project/outreach/presentations">Research Presentations</a>
+
<a href="https://2013.igem.org/Team:Cornell/outreach/presentations">Research Presentations</a>
</li>
</li>
<li id="liDiscussions">
<li id="liDiscussions">
-
<a href="https://2013.igem.org/Team:Cornell/project/outreach/discussions">Panel Discussions</a>
+
<a href="https://2013.igem.org/Team:Cornell/outreach/discussions">Panel Discussions</a>
</li>
</li>
<li id="liAwareness">
<li id="liAwareness">
-
<a href="https://2013.igem.org/Team:Cornell/project/outreach/awareness">Public Awareness</a>
+
<a href="https://2013.igem.org/Team:Cornell/outreach/awareness">Public Awareness</a>
</li>
</li>
</ul>
</ul>
Line 27: Line 27:
</body>
</body>
<script>
<script>
-
var h=window.location.href.toString()
+
var h=window.location.pathname.toString();
-
if(h=="https://2013.igem.org/Team:Cornell/project/outreach")
+
if(h == "https://2013.igem.org/Team:Cornell/outreach")
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/outreach/presentations")
+
else if(h.indexOf("outreach/presentations") != -1)
{ document.getElementById("liPresentations").className="active"; }
{ document.getElementById("liPresentations").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/outreach")
+
else if(h.indexOf("outreach/discussions") != -1)
-
{ document.getElementById("liOutreach").className="active"; }
+
{ document.getElementById("liDiscussions").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/outreach/awareness")
+
else if(h.indexOf("outreach/awareness") != -1)
{ document.getElementById("liAwareness").className="active"; }
{ document.getElementById("liAwareness").className="active"; }
</script>
</script>
</html>
</html>

Latest revision as of 00:00, 27 September 2013