Team:Uppsala/Templates/TselectTier3
From 2014.igem.org
(Difference between revisions)
Line 79: | Line 79: | ||
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 93: | ||
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 120: | ||
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 130: | ||
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 140: | ||
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 164: | ||
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"); |
Revision as of 14:30, 17 October 2014