Team:Uppsala/Templates/Tracking

From 2014.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 8: Line 8:
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.split("_")
+
var data = data.split("_");
-
for (i = 0; i < data.length; i++) {
+
for (i = 0; i < data.length-1; i++) {
container += data[i]
container += data[i]
-
     text += '-><a href="' + container + '">' + data[i] + "</a>";
+
     text += 'Previous <a href="' + container + '">' + data[i] + "</a>; ";
container +="_"
container +="_"
}
}
-
document.getElementById("tra").innerHTML = text
+
document.getElementById("tra").innerHTML = text;
</script>
</script>
</div>
</div>
</html>
</html>

Latest revision as of 18:08, 16 October 2014

Failed to load tracking. JS is probably not enabled