Team:Uppsala/Templates/TselectTier2

From 2014.igem.org

(Difference between revisions)
Line 9: Line 9:
var data = window.location.href;
var data = window.location.href;
var List = document.getElementById("links");
var List = document.getElementById("links");
-
if (data.search("Team") !== -1)
+
 
-
{
+
if (data.search("Project") !== -1)
-
document.getElementById("currentH").innerHTML = "Team";
+
-
createA("Team1", "#");
+
-
createA("Team2", "#");
+
-
createA("Team3", "#");
+
-
}
+
-
else if (data.search("Project") !== -1)
+
{
{
document.getElementById("currentH").innerHTML = "Project";
document.getElementById("currentH").innerHTML = "Project";
Line 65: Line 59:
createA("Attributions 2", "http://example.com");
createA("Attributions 2", "http://example.com");
createA("Attributions 2", "http://example.com");
createA("Attributions 2", "http://example.com");
 +
}
 +
else if (data.search("Team") !== -1)
 +
{
 +
document.getElementById("currentH").innerHTML = "Team";
 +
createA("Team1", "#");
 +
createA("Team2", "#");
 +
createA("Team3", "#");
}
}
else
else

Revision as of 13:45, 16 July 2014