Team:Uppsala/Templates/TselectTier3
From 2014.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
createA("Sensing", "#", "tab3"); | createA("Sensing", "#", "tab3"); | ||
createA("Targeting", "#", "tab4"); | createA("Targeting", "#", "tab4"); | ||
- | changeContent( | + | changeContent("tab1"); |
- | changeContent( | + | changeContent("tab2"); |
- | changeContent( | + | changeContent("tab3"); |
- | changeContent( | + | changeContent("tab4"); |
} | } | ||
else if (data.search("Modeling")!== -1) | else if (data.search("Modeling")!== -1) | ||
Line 35: | Line 35: | ||
createA("Simulation", "#"); | createA("Simulation", "#"); | ||
createA("Matlab", "#"); | createA("Matlab", "#"); | ||
- | changeContent( | + | changeContent("tab1"); |
- | changeContent( | + | changeContent("tab2"); |
} | } | ||
else if (data.search("Parts")!== -1) | else if (data.search("Parts")!== -1) | ||
Line 44: | Line 44: | ||
createA("YenR", "#"); | createA("YenR", "#"); | ||
createA("USP45", "#"); | createA("USP45", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else if (data.search("Human")!== -1) | else if (data.search("Human")!== -1) | ||
Line 51: | Line 54: | ||
createA("Outreach", "#"); | createA("Outreach", "#"); | ||
createA("Continuity", "#"); | createA("Continuity", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else if (data.search("Notebook")!== -1) | else if (data.search("Notebook")!== -1) | ||
Line 58: | Line 64: | ||
createA("Experiments", "#"); | createA("Experiments", "#"); | ||
createA("Results", "#"); | createA("Results", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else if (data.search("Safety")!== -1) | else if (data.search("Safety")!== -1) | ||
Line 65: | Line 74: | ||
createA("More safety", "#"); | createA("More safety", "#"); | ||
createA("Max safety", "#"); | createA("Max safety", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else if (data.search("Attributions")!== -1) | else if (data.search("Attributions")!== -1) | ||
Line 72: | Line 84: | ||
createA("Attributions 2", "#"); | createA("Attributions 2", "#"); | ||
createA("Attributions 2", "#"); | createA("Attributions 2", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else if (data.search("Team") !== -1) | else if (data.search("Team") !== -1) | ||
Line 79: | Line 94: | ||
createA("Team2", "#"); | createA("Team2", "#"); | ||
createA("Team3", "#"); | createA("Team3", "#"); | ||
+ | changeContent("tab1"); | ||
+ | changeContent("tab2"); | ||
+ | changeContent("tab3"); | ||
} | } | ||
else | else | ||
Line 97: | Line 115: | ||
} | } | ||
- | function changeContent( | + | function changeContent(id) { |
var node = document.createElement("div"); | var node = document.createElement("div"); | ||
node.id = id; | node.id = id; | ||
- | var linkText = document.createTextNode( | + | var linkText = document.createTextNode(No content found); |
node.appendChild(linkText); | node.appendChild(linkText); | ||
document.getElementById("section_selector").appendChild(node); | document.getElementById("section_selector").appendChild(node); |
Revision as of 15:40, 16 July 2014