Template:Imperial/09/Menu/Reduced

From 2009.igem.org

(Difference between revisions)
Line 224: Line 224:
     var address = document.location.href;
     var address = document.location.href;
     var addressSplit = address.split("/");
     var addressSplit = address.split("/");
-
    alert(addressSplit[3] + ' and ' + addressSplit[4]);
 
</script>
</script>
Line 233: Line 232:
<script type="text/javascript">
<script type="text/javascript">
-
if (typeof addressSplit[30] == 'undefined'){
+
if (addressSplit[3]=='Team:Imperial_College_London' && typeof addressSplit[30] == 'undefined'){
-
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/M1/Genetic"> Genetic circuit</a></li>');
+
-
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/M1/Results"> Results</a></li>');
+
-
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/M1/Modelling"> Modelling</a></li>');
+
-
}
+
-
</script>
+
-
 
+
-
<script type="text/javascript">
+
-
if (addressSplit[3]=='Team:Imperial_College_London' && (typeof addressSplit[30] == 'undefined')){
+
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/Major_results"> Major results</a></li>');
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/Major_results"> Major results</a></li>');
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/Biobricks"> Submitted parts</a></li>');
document.write('<li><sub_a href="https://2009.igem.org/Team:Imperial_College_London/Biobricks"> Submitted parts</a></li>');

Revision as of 17:42, 13 September 2009