Team:Uppsala/Templates/TselectTier2

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
{
{
document.getElementById("currentH").innerHTML = "Project";
document.getElementById("currentH").innerHTML = "Project";
-
createA(<img src="https://static.igem.org/mediawiki/2014/9/95/Uppsala_igem2014_Arrow.png"/>, "https://2014.igem.org/Team:Uppsala/ProjectTest_AdhesionTest");
+
createA("Adhesion", "https://2014.igem.org/Team:Uppsala/ProjectTest_AdhesionTest", "https://static.igem.org/mediawiki/2014/9/95/Uppsala_igem2014_AdhesionV1.png");
createA("Killling", "https://2014.igem.org/Team:Uppsala/ProjectTest_KillingTest");
createA("Killling", "https://2014.igem.org/Team:Uppsala/ProjectTest_KillingTest");
createA("Sensing", "https://2014.igem.org/Team:Uppsala/ProjectTest_SensingTest");
createA("Sensing", "https://2014.igem.org/Team:Uppsala/ProjectTest_SensingTest");
Line 73: Line 73:
-
function createA(text, link) {
+
function createA(text, link, img) {
var node = document.createElement("li");
var node = document.createElement("li");
var a = document.createElement('a');
var a = document.createElement('a');
var linkText = document.createTextNode(text);
var linkText = document.createTextNode(text);
 +
                        var linkImg = document.createTextNode('img');
 +
                        a.appendChild(linkImg);
a.appendChild(linkText);
a.appendChild(linkText);
a.href = link;
a.href = link;

Revision as of 12:13, 19 July 2014