Team:Uppsala/Templates/TselectTier3
From 2014.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
var List = document.getElementById("tabs"); | var List = document.getElementById("tabs"); | ||
- | if (data.search(" | + | if (data.search("Adhesion") !== -1) |
{ | { | ||
- | document.getElementById("currentH").innerHTML = " | + | document.getElementById("currentH").innerHTML = "Adhesion"; |
- | createA(" | + | createA("Adhesion1", "#", "tab1"); |
- | createA(" | + | createA("Adhesion2", "#", "tab2"); |
- | createA(" | + | createA("Adhesion3", "#", "tab3"); |
- | createA(" | + | createA("Adhesion4", "#", "tab4"); |
changeContent("tab1"); | changeContent("tab1"); | ||
changeContent("tab2"); | changeContent("tab2"); | ||
Line 30: | Line 30: | ||
changeContent("tab4"); | changeContent("tab4"); | ||
} | } | ||
- | else if (data.search(" | + | else if (data.search("Killing")!== -1) |
{ | { | ||
- | document.getElementById("currentH").innerHTML = " | + | document.getElementById("currentH").innerHTML = "Killing"; |
- | createA(" | + | createA("Killing1", "#"); |
- | createA(" | + | createA("Killing2", "#"); |
changeContent("tab1"); | changeContent("tab1"); | ||
changeContent("tab2"); | changeContent("tab2"); |
Revision as of 15:57, 16 July 2014