Team:Uppsala/Templates/TselectTier3

From 2014.igem.org

(Difference between revisions)
 
(10 intermediate revisions not shown)
Line 19: Line 19:
else if (data.search("Adhesion") !== -1)
else if (data.search("Adhesion") !== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/7/76/Uppsala_iGEM2014_Team_headerPro_new.png)');
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/8/8e/Uppsala2014_Adhesion.png"> Adhesion';
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/8/8e/Uppsala2014_Adhesion.png"> Adhesion';
}     
}     
Line 29: Line 34:
else if (data.search("Killing")!== -1)
else if (data.search("Killing")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/7/76/Uppsala_iGEM2014_Team_headerPro_new.png)');
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/0/0e/Uppsala_igem2014_Killing.png"> Killing';  
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/0/0e/Uppsala_igem2014_Killing.png"> Killing';  
}
}
Line 39: Line 49:
else if (data.search("Sensing")!== -1)
else if (data.search("Sensing")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/7/76/Uppsala_iGEM2014_Team_headerPro_new.png)');
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/a/a2/Sensing.png"> Sensing';
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/a/a2/Sensing.png"> Sensing';
}
}
Line 54: Line 69:
else if (data.search("Targeting")!== -1)
else if (data.search("Targeting")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/7/76/Uppsala_iGEM2014_Team_headerPro_new.png)');
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/1/1c/Uppsala2014_Targeting.png"> Targeting';
document.getElementById("currentH").innerHTML = '<img style ="width:15%" src="https://static.igem.org/mediawiki/2014/1/1c/Uppsala2014_Targeting.png"> Targeting';
}
}
Line 59: Line 79:
else if (data.search("Safety")!== -1)
else if (data.search("Safety")!== -1)
{
{
-
var myNode = document.getElementById("imgwrapNH");
+
                        var myNode = document.getElementById("imgwrapNH");
-
while (myNode.firstChild) {
+
                        while (myNode.firstChild) {
-
    myNode.removeChild(myNode.firstChild);
+
                        myNode.removeChild(myNode.firstChild);
-
}
+
                        }
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/6/6f/Uppsala_iGEM2014_Team_headerSafety.png)');
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/6/6f/Uppsala_iGEM2014_Team_headerSafety.png)');
document.getElementById("currentH").innerHTML = "Safety";
document.getElementById("currentH").innerHTML = "Safety";
Line 75: Line 95:
                         else if (data.search("CellCell") !== -1)
                         else if (data.search("CellCell") !== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
document.getElementById("currentH").innerHTML = "Cell-Cell Interaction";
document.getElementById("currentH").innerHTML = "Cell-Cell Interaction";
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/3/3e/Uppsala_iGEM2014_Team_Mod.png)');
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");
Line 84: Line 109:
                         else if (data.search("Population") !== -1)
                         else if (data.search("Population") !== -1)
{
{
-
document.getElementById("currentH").innerHTML = "Pupulation Level";
+
                        var myNode = document.getElementById("imgwrapNH");
-
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/0/04/Uppsala2014_Background_red.png", "BackPic2");
+
                        while (myNode.firstChild) {
-
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/7/73/Uppsala2014_Method_black.png", "MethPic");
+
                        myNode.removeChild(myNode.firstChild);
-
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");
+
document.getElementById("currentH").innerHTML = "Population Level";
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/3/3e/Uppsala_iGEM2014_Team_Mod.png)');
 +
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/a/a8/Uppsala2014_Description_red.png", "PopDescPic");
 +
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/2/2e/Uppsala2014_Design_black.png", "DesignPic");
 +
createA("", "#", "tab3", "https://static.igem.org/mediawiki/2014/2/25/Uppsala2014_Tests_black.png", "TestPic");
changeContent("tab1");
changeContent("tab1");
changeContent("tab2");
changeContent("tab2");
changeContent("tab3");
changeContent("tab3");
-
changeContent("tab4");
 
}
}
else if (data.search("Parts")!== -1)
else if (data.search("Parts")!== -1)
{
{
-
var myNode = document.getElementById("imgwrapNH");
+
                        var myNode = document.getElementById("imgwrapNH");
-
while (myNode.firstChild) {
+
                        while (myNode.firstChild) {
-
    myNode.removeChild(myNode.firstChild);
+
                        myNode.removeChild(myNode.firstChild);
-
}
+
                        }
-
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/d/da/Uppsala_iGEM2014_Team_headerParts2.png)');
+
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/9/9f/Uppsala_iGEM2014_Team_headerParts.png)');
document.getElementById("currentH").innerHTML = "Parts";
document.getElementById("currentH").innerHTML = "Parts";
Line 108: Line 136:
else if (data.search("Outreach")!== -1)
else if (data.search("Outreach")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
document.getElementById("currentH").innerHTML = "Outreach";
document.getElementById("currentH").innerHTML = "Outreach";
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)');
}
}
else if (data.search("Business")!== -1)
else if (data.search("Business")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
document.getElementById("currentH").innerHTML = "Business Plan";
document.getElementById("currentH").innerHTML = "Business Plan";
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)');
}
}
else if (data.search("Microbial")!== -1)
else if (data.search("Microbial")!== -1)
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
document.getElementById("currentH").innerHTML = "Microbial Designs";
document.getElementById("currentH").innerHTML = "Microbial Designs";
 +
                        $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)');
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/9/95/Uppsala2014_Overview_red.png", "OverPic");
createA("", "#", "tab1", "https://static.igem.org/mediawiki/2014/9/95/Uppsala2014_Overview_red.png", "OverPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/e/ee/Uppsala2014_Property_Rights_black.png", "PRPic");
createA("", "#", "tab2", "https://static.igem.org/mediawiki/2014/e/ee/Uppsala2014_Property_Rights_black.png", "PRPic");
Line 137: Line 180:
else if (data.search("Notebook")!== -1)  
else if (data.search("Notebook")!== -1)  
{
{
 +
                        var myNode = document.getElementById("imgwrapNH");
 +
                        while (myNode.firstChild) {
 +
                        myNode.removeChild(myNode.firstChild);
 +
                        }
document.getElementById("currentH").innerHTML = "Notebook";
document.getElementById("currentH").innerHTML = "Notebook";
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("", "#", "tab4", "https://static.igem.org/mediawiki/2014/5/5b/Uppsala2014_Work_database_black.png", "WorkPic");
                         createA("", "#", "tab4", "https://static.igem.org/mediawiki/2014/5/5b/Uppsala2014_Work_database_black.png", "WorkPic");
changeContent("tab1");
changeContent("tab1");
-
changeContent("tab2");
 
changeContent("tab4");
changeContent("tab4");
}
}
Line 230: Line 275:
if (target.is('#ProtPic')){
if (target.is('#ProtPic')){
document.getElementById('ProtPic').src = "https://static.igem.org/mediawiki/2014/5/58/Uppsala2014_Protocol_red.png";
document.getElementById('ProtPic').src = "https://static.igem.org/mediawiki/2014/5/58/Uppsala2014_Protocol_red.png";
-
document.getElementById('ExpPic').src = "https://static.igem.org/mediawiki/2014/f/fc/Uppsala2014_Experiments_black.png";
 
-
document.getElementById('WorkPic').src = "https://static.igem.org/mediawiki/2014/5/5b/Uppsala2014_Work_database_black.png";
 
-
}
 
-
else if (target.is('#ExpPic')){
 
-
document.getElementById('ProtPic').src = "https://static.igem.org/mediawiki/2014/4/4f/Uppsala2014_Protocol_black.png";
 
-
document.getElementById('ExpPic').src = "https://static.igem.org/mediawiki/2014/4/48/Uppsala2014_Experiments_red.png";
 
document.getElementById('WorkPic').src = "https://static.igem.org/mediawiki/2014/5/5b/Uppsala2014_Work_database_black.png";
document.getElementById('WorkPic').src = "https://static.igem.org/mediawiki/2014/5/5b/Uppsala2014_Work_database_black.png";
}
}
else if (target.is('#WorkPic')){
else if (target.is('#WorkPic')){
document.getElementById('ProtPic').src = "https://static.igem.org/mediawiki/2014/4/4f/Uppsala2014_Protocol_black.png";
document.getElementById('ProtPic').src = "https://static.igem.org/mediawiki/2014/4/4f/Uppsala2014_Protocol_black.png";
-
document.getElementById('ExpPic').src = "https://static.igem.org/mediawiki/2014/f/fc/Uppsala2014_Experiments_black.png";
 
document.getElementById('WorkPic').src = "https://static.igem.org/mediawiki/2014/6/6f/Uppsala2014_Work_database_red.png";
document.getElementById('WorkPic').src = "https://static.igem.org/mediawiki/2014/6/6f/Uppsala2014_Work_database_red.png";
}
}
Line 250: Line 288:
document.getElementById('DescPic').src = "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Description_black.png";
document.getElementById('DescPic').src = "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Description_black.png";
document.getElementById('DemoPic').src = "https://static.igem.org/mediawiki/2014/7/79/Uppsala2014_Demo_red.png";
document.getElementById('DemoPic').src = "https://static.igem.org/mediawiki/2014/7/79/Uppsala2014_Demo_red.png";
 +
}
 +
else if (target.is('#PopDescPic')){
 +
document.getElementById('PopDescPic').src = "https://static.igem.org/mediawiki/2014/a/a8/Uppsala2014_Description_red.png";
 +
document.getElementById('DesignPic').src = "https://static.igem.org/mediawiki/2014/2/2e/Uppsala2014_Design_black.png";
 +
document.getElementById('TestPic').src = "https://static.igem.org/mediawiki/2014/2/25/Uppsala2014_Tests_black.png";
 +
}
 +
else if (target.is('#DesignPic')){
 +
document.getElementById('PopDescPic').src = "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Description_black.png";
 +
document.getElementById('DesignPic').src = "https://static.igem.org/mediawiki/2014/e/ec/Uppsala2014_Design_red.png";
 +
document.getElementById('TestPic').src = "https://static.igem.org/mediawiki/2014/2/25/Uppsala2014_Tests_black.png";
 +
}
 +
else if (target.is('#TestPic')){
 +
document.getElementById('PopDescPic').src = "https://static.igem.org/mediawiki/2014/0/08/Uppsala2014_Description_black.png";
 +
document.getElementById('DesignPic').src = "https://static.igem.org/mediawiki/2014/2/2e/Uppsala2014_Design_black.png";
 +
document.getElementById('TestPic').src = "https://static.igem.org/mediawiki/2014/9/92/Uppsala2014_Tests_red.png";
}
}
else if (target.is('#studyPic')){
else if (target.is('#studyPic')){

Latest revision as of 14:33, 17 October 2014