Team:Uppsala/Templates/TselectTier3

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
 +
<div id="tab_selector">
<div id="tab_selector">
<ul id="tabSection">
<ul id="tabSection">
Line 14: Line 15:
{
{
document.getElementById("currentH").innerHTML = "Adhesion Group";
document.getElementById("currentH").innerHTML = "Adhesion Group";
-
                       
 
}       
}       
Line 20: Line 20:
{
{
document.getElementById("currentH").innerHTML = "Adhesion";
document.getElementById("currentH").innerHTML = "Adhesion";
-
                     
 
}     
}     
                        
                        
Line 26: Line 25:
                         {
                         {
document.getElementById("currentH").innerHTML = "Killing Group";
document.getElementById("currentH").innerHTML = "Killing Group";
-
                       
 
-
               
 
}
}
   
   
else if (data.search("Killing")!== -1)
else if (data.search("Killing")!== -1)
{
{
-
document.getElementById("currentH").innerHTML = "Killing";
+
document.getElementById("currentH").innerHTML = "Killing";  
-
                       
+
}
}
Line 39: Line 35:
                         {
                         {
document.getElementById("currentH").innerHTML = "Sensing Group";
document.getElementById("currentH").innerHTML = "Sensing Group";
-
                       
 
}
}
Line 45: Line 40:
{
{
document.getElementById("currentH").innerHTML = "Sensing";
document.getElementById("currentH").innerHTML = "Sensing";
-
                       
 
}
}
Line 51: Line 45:
                         {
                         {
document.getElementById("currentH").innerHTML = "Targeting Group";
document.getElementById("currentH").innerHTML = "Targeting Group";
-
                       
 
}           
}           
                         else if (data.search("ModelingGroup")!== -1)  
                         else if (data.search("ModelingGroup")!== -1)  
                         {
                         {
-
document.getElementById("currentH").innerHTML = "Modeling Group";
+
document.getElementById("currentH").innerHTML = "Modeling Group";
-
                       
+
}
}
                
                
Line 63: Line 55:
{
{
document.getElementById("currentH").innerHTML = "Targeting";
document.getElementById("currentH").innerHTML = "Targeting";
-
                       
 
}
}
 +
                         else if (data.search("Micro") !== -1)
                         else if (data.search("Micro") !== -1)
{
{
Line 70: Line 62:
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/a/a8/Uppsala2014_Description_red.png", "DescPic");
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/a/a8/Uppsala2014_Description_red.png", "DescPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Demo_black.png", "DemoPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Demo_black.png", "DemoPic");
-
 
changeContent("tab1");
changeContent("tab1");
changeContent("tab2");
changeContent("tab2");
-
 
}
}
 +
                         else if (data.search("Macro") !== -1)
                         else if (data.search("Macro") !== -1)
{
{
Line 87: Line 78:
changeContent("tab4");
changeContent("tab4");
}
}
 +
else if (data.search("Parts")!== -1)
else if (data.search("Parts")!== -1)
{
{
document.getElementById("currentH").innerHTML = "Parts";
document.getElementById("currentH").innerHTML = "Parts";
-
                       
 
}
}
 +
else if (data.search("Overview")!== -1)
else if (data.search("Overview")!== -1)
{
{
Line 102: Line 94:
changeContent("tab3");
changeContent("tab3");
}
}
 +
else if (data.search("Outreach")!== -1)
else if (data.search("Outreach")!== -1)
{
{
Line 112: Line 105:
changeContent("tab3");
changeContent("tab3");
}
}
 +
else if (data.search("Continuity")!== -1)
else if (data.search("Continuity")!== -1)
{
{
Line 120: Line 114:
changeContent("tab2");
changeContent("tab2");
}
}
 +
else if (data.search("Notebook")!== -1)  
else if (data.search("Notebook")!== -1)  
{
{
Line 130: Line 125:
changeContent("tab4");
changeContent("tab4");
}
}
 +
else if (data.search("Safety")!== -1)
else if (data.search("Safety")!== -1)
{
{
document.getElementById("currentH").innerHTML = "Safety";
document.getElementById("currentH").innerHTML = "Safety";
-
                       
 
}
}
 +
else if (data.search("Attributions")!== -1)
else if (data.search("Attributions")!== -1)
{
{
document.getElementById("currentH").innerHTML = "Attributions";
document.getElementById("currentH").innerHTML = "Attributions";
-
                       
 
}
}
 +
else if (data.search("InterlabStudy")!== -1)
else if (data.search("InterlabStudy")!== -1)
{
{
Line 150: Line 146:
changeContent("tab3");
changeContent("tab3");
}
}
 +
else if (data.search("Team") !== -1)
else if (data.search("Team") !== -1)
{
{
-
document.getElementById("currentH").innerHTML = "Team";
+
document.getElementById("currentH").innerHTML = "Team";    
-
                       
+
}
}
 +
else
else
{
{
Line 175: Line 172:
node.appendChild(a);
node.appendChild(a);
document.getElementById("tabSection").appendChild(node);
document.getElementById("tabSection").appendChild(node);
-
 
}
}
Line 239: Line 235:
document.getElementById('formPic').src = "https://static.igem.org/mediawiki/2014/e/e7/Uppsala2014_RawdataForm_red.png";
document.getElementById('formPic').src = "https://static.igem.org/mediawiki/2014/e/e7/Uppsala2014_RawdataForm_red.png";
}
}
-
    });
+
});
});
});
</script>
</script>
-
 
</html>
</html>

Revision as of 16:24, 12 October 2014