Team:Uppsala/Templates/top template

From 2014.igem.org

(Difference between revisions)
Line 63: Line 63:
var data = window.location.href;
var data = window.location.href;
var data = data.replace("https://2014.igem.org/Team:Uppsala/", "");//change to the correct one for the wiki
var data = data.replace("https://2014.igem.org/Team:Uppsala/", "");//change to the correct one for the wiki
-
var data = data.replace(".html", "");
 
var data = data.split("_")
var data = data.split("_")
for (i = 0; i < data.length; i++) {
for (i = 0; i < data.length; i++) {
container += data[i]
container += data[i]
-
     text += '-><a href="' + container + '.html">' + data[i] + "</a>";
+
     text += '-><a href="' + container + '">' + data[i] + "</a>";
container +="_"
container +="_"
}
}

Revision as of 12:06, 23 June 2014

Project

TRACKING