Team:Uppsala/Templates/top template

From 2014.igem.org

(Difference between revisions)
Line 50: Line 50:
</div> <!-- Ends subheader -->
</div> <!-- Ends subheader -->
-
            <div id="tracking_system"> <!-- Masterdiv for the tracking system, all other elements for tracking should be put here! -->
 
-
                       
 
-
            <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>   <!-- Ends tracking_system -->
 
-
 
-
   
 
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<div>
<div>
</html>
</html>

Revision as of 12:36, 16 July 2014