Team:Uppsala/Templates/TselectTier3
From 2014.igem.org
(Difference between revisions)
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'; |
Latest revision as of 14:33, 17 October 2014