Team:Uppsala/Templates/TselectTier3
From 2014.igem.org
(Difference between revisions)
(2 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)'); | $('#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 30: | 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)'); | $('#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 41: | 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)'); | $('#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 57: | 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)'); | $('#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 79: | 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)'); | $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/3/3e/Uppsala_iGEM2014_Team_Mod.png)'); | ||
Line 89: | Line 109: | ||
else if (data.search("Population") !== -1) | else if (data.search("Population") !== -1) | ||
{ | { | ||
+ | var myNode = document.getElementById("imgwrapNH"); | ||
+ | while (myNode.firstChild) { | ||
+ | myNode.removeChild(myNode.firstChild); | ||
+ | } | ||
document.getElementById("currentH").innerHTML = "Population Level"; | document.getElementById("currentH").innerHTML = "Population Level"; | ||
$('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/3/3e/Uppsala_iGEM2014_Team_Mod.png)'); | $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/3/3e/Uppsala_iGEM2014_Team_Mod.png)'); | ||
Line 112: | 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)'); | $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)'); | ||
Line 118: | Line 146: | ||
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)'); | $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)'); | ||
Line 124: | Line 156: | ||
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)'); | $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/f/fd/Uppsala_iGEM2014_Team_HP.png)'); | ||
Line 144: | 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"); |
Latest revision as of 14:33, 17 October 2014