Team:Uppsala/script.js

From 2014.igem.org

Revision as of 11:52, 23 June 2014 by Amaron (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function track() { text = ""; container = ""; var data = window.location.href; var data = data.replace("file:///C:/Users/niha6447/Desktop/", "");//change to the correct one for the wiki var data = data.replace(".html", ""); var data = data.split("_") for (i = 0; i < data.length; i++) { container += data[i]

   text += '-><a href="' + container + '.html">' + data[i] + "</a>";

container +="_" } document.getElementById("demo").innerHTML = text }