Team:Uppsala/Templates/Tracking
From 2014.igem.org
(Difference between revisions)
(Created page with "<html> <head> <link href="https://2014.igem.org/Team:Uppsala/stylesheet.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> </head> <div id="tracking_system"> <p...") |
|||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | + | <div id="tracking_system"> | |
- | < | + | |
- | + | <p id="tra">Failed to load tracking. JS is probably not enabled</p> | |
- | < | + | <script type="text/javascript"> |
- | + | text = ""; | |
- | </ | + | container = ""; |
- | + | 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.split("_") | |
- | < | + | for (i = 0; i < data.length; i++) { |
- | + | container += data[i] | |
+ | text += '-><a href="' + container + '">' + data[i] + "</a>"; | ||
+ | container +="_" | ||
+ | } | ||
+ | document.getElementById("tra").innerHTML = text | ||
+ | </script> | ||
</div> | </div> | ||
- | |||
</html> | </html> |
Revision as of 12:33, 16 July 2014
Failed to load tracking. JS is probably not enabled