Team:Uppsala/Templates/TselectTier3

From 2014.igem.org

(Difference between revisions)
Line 59: Line 59:
else if (data.search("Safety")!== -1)
else if (data.search("Safety")!== -1)
{
{
 +
var myNode = document.getElementById("imgwrapNH");
 +
while (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 93: Line 97:
else if (data.search("Parts")!== -1)
else if (data.search("Parts")!== -1)
{
{
 +
var myNode = document.getElementById("imgwrapNH");
 +
while (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/d/da/Uppsala_iGEM2014_Team_headerParts2.png)');
document.getElementById("currentH").innerHTML = "Parts";
document.getElementById("currentH").innerHTML = "Parts";
Line 140: Line 148:
else if (data.search("Attributions")!== -1)  
else if (data.search("Attributions")!== -1)  
{
{
 +
var myNode = document.getElementById("imgwrapNH");
 +
while (myNode.firstChild) {
 +
    myNode.removeChild(myNode.firstChild);
 +
}
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/4/49/Uppsala_iGEM2014_Team_headerAtt.png)');
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/4/49/Uppsala_iGEM2014_Team_headerAtt.png)');
document.getElementById("currentH").innerHTML = "Attributions";
document.getElementById("currentH").innerHTML = "Attributions";
Line 152: Line 164:
else if (data.search("InterlabStudy")!== -1)
else if (data.search("InterlabStudy")!== -1)
{
{
 +
var myNode = document.getElementById("imgwrapNH");
 +
while (myNode.firstChild) {
 +
    myNode.removeChild(myNode.firstChild);
 +
}
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/d/d2/Uppsala_iGEM2014_Team_headerILS.png)');
                         $('#header').css('background-image', 'url(https://static.igem.org/mediawiki/2014/d/d2/Uppsala_iGEM2014_Team_headerILS.png)');
document.getElementById("currentH").innerHTML = "Interlab Study";
document.getElementById("currentH").innerHTML = "Interlab Study";

Revision as of 17:57, 16 October 2014