Team:Uppsala/Templates/TselectTier3

From 2014.igem.org

(Difference between revisions)
Line 97: Line 97:
{
{
document.getElementById("currentH").innerHTML = "Parts";
document.getElementById("currentH").innerHTML = "Parts";
-
}
 
-
 
-
else if (data.search("Overview")!== -1)
 
-
{
 
-
document.getElementById("currentH").innerHTML = "Overview";
 
-
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/1/17/Uppsala_igem2014_Sensing.png");
 
-
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/1/17/Uppsala_igem2014_Sensing.png");
 
-
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/1/17/Uppsala_igem2014_Sensing.png");
 
-
changeContent("tab1");
 
-
changeContent("tab2");
 
-
changeContent("tab3");
 
}
}
Line 132: Line 121:
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/7/73/Uppsala2014_Method_black.png", "MethPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/7/73/Uppsala2014_Method_black.png", "MethPic");
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/3/37/Uppsala2014_Result_black.png", "ResPic");
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/3/37/Uppsala2014_Result_black.png", "ResPic");
-
createA("", "#", "tab4", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DissPic");
+
createA("", "#", "tab4", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DiscPic");
-
createA("", "#", "tab5", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DissPic");
+
createA("", "#", "tab5", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DiscPic");
-
createA("", "#", "tab6", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DissPic");
+
createA("", "#", "tab6", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DiscPic");
-
createA("", "#", "tab7", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DissPic");
+
createA("", "#", "tab7", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "DiscPic");
changeContent("tab1");
changeContent("tab1");
changeContent("tab2");
changeContent("tab2");
Line 163: Line 152:
else if (data.search("Attributions")!== -1)  
else if (data.search("Attributions")!== -1)  
{
{
-
document.getElementById("currentH").innerHTML = "Notebook";
+
document.getElementById("currentH").innerHTML = "Attributions";
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/5/58/Uppsala2014_Protocol_red.png", "ProtPic");
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/5/58/Uppsala2014_Protocol_red.png", "ProtPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/f/fc/Uppsala2014_Experiments_black.png", "ExpPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/f/fc/Uppsala2014_Experiments_black.png", "ExpPic");
Line 176: Line 165:
document.getElementById("currentH").innerHTML = "Interlab Study";
document.getElementById("currentH").innerHTML = "Interlab Study";
                         createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/2/23/Uppsala2014_Thestudy_red.png", "studyPic");
                         createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/2/23/Uppsala2014_Thestudy_red.png", "studyPic");
-
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "discPic2");
+
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/7/7d/Uppsala2014_Discussion_black.png", "discPic");
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/d/dd/Uppsala2014_RawdataForm_black.png", "formPic");
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/d/dd/Uppsala2014_RawdataForm_black.png", "formPic");
changeContent("tab1");
changeContent("tab1");
Line 261: Line 250:
document.getElementById('formPic').src = "https://static.igem.org/mediawiki/2014/d/dd/Uppsala2014_RawdataForm_black.png";
document.getElementById('formPic').src = "https://static.igem.org/mediawiki/2014/d/dd/Uppsala2014_RawdataForm_black.png";
}
}
-
else if (target.is('#discPic2')){
+
else if (target.is('#discPic')){
document.getElementById('studyPic').src = "https://static.igem.org/mediawiki/2014/7/72/Uppsala2014_Thestudy_black.png";
document.getElementById('studyPic').src = "https://static.igem.org/mediawiki/2014/7/72/Uppsala2014_Thestudy_black.png";
document.getElementById('discPic2').src = "https://static.igem.org/mediawiki/2014/9/94/Uppsala2014_Discussion_red.png";
document.getElementById('discPic2').src = "https://static.igem.org/mediawiki/2014/9/94/Uppsala2014_Discussion_red.png";

Revision as of 13:19, 15 October 2014