Template:Imperial/09/Breadcrumb

From 2009.igem.org

(Difference between revisions)
 
(43 intermediate revisions not shown)
Line 25: Line 25:
}
}
#II09_Tour_Navigation{
#II09_Tour_Navigation{
-
   position: static;
+
   position: relative;
   display:block;
   display:block;
   float:right;
   float:right;
Line 43: Line 43:
var addressSplit = address.split("/");
var addressSplit = address.split("/");
-
document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '">Home</a>');
+
if (addressSplit[3]!=undefined){
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '">Home</a>');
 +
    document.write('<span align="left"><font color=#000000> | </font>');
 +
}
 +
if (addressSplit[4]!=undefined){
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '/' +addressSplit[4]+ '">' +addressSplit[4]+ '</a>');
 +
}
 +
if (addressSplit[5]!=undefined){
 +
    document.write('<span align="left"><font color=#000000> | </font>');   
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '/' +addressSplit[4]+ '/' +addressSplit[5]+ '">' +addressSplit[5]+ '</a>');
 +
}
 +
if (addressSplit[6]!=undefined){
 +
    document.write('<span align="left"><font color=#000000> | </font>');
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '/' +addressSplit[4]+ '/' +addressSplit[5]+ '/' +addressSplit[6]+ '">' +addressSplit[6]+ '</a>');
-
for (i=4;i<8;i++){
 
-
  if (addressSplit[i]!=undefined){
 
-
      document.write('<span align="left"><font color=#000000> | </font>');
 
-
      document.write('<a href="' +addressSplit[i]+ '">' +addressSplit[i]+ '</a>');
 
-
  }
 
}
}
-
  document.write('</span>');
+
if (addressSplit[7]!=undefined){
 +
    document.write('<span align="left"><font color=#000000> | </font>');
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '/' +addressSplit[4]+ '/' +addressSplit[5]+ '/' +addressSplit[6]+ '/' +addressSplit[7]+ '">' +addressSplit[7]+ '</a>');
 +
 
 +
}
 +
if (addressSplit[8]!=undefined){
 +
    document.write('<span align="left"><font color=#000000> | </font>');
 +
    document.write('<a href="https://2009.igem.org/' +addressSplit[3]+ '/' +addressSplit[4]+ '/' +addressSplit[5]+ '/' +addressSplit[6]+ '/' +addressSplit[7]+ '/' +addressSplit[8]+ '">' +addressSplit[8]+ '</a>');
 +
 
 +
}
 +
document.write('</span></b>');
 +
</script>
 +
</div>
 +
<div id="II09_Tour_Navigation">
 +
<script type="text/javascript">
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]==undefined){
 +
          <!-- HOME -->
 +
          document.write('<blink><font color="red"><b>Take the tour </b></font></blink><a href="https://2009.igem.org/'+addressSplit[3]+'/Project_Overview"><b>Next ></b> Project overview</a>');
 +
    }else if(addressSplit[4]=='Project_Overview'){
 +
          <!-- PROJECT OVERVIEW -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'">Home <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Chemoinduction"><b>Next ></b> Chemoinduction</a>');
 +
    }else if(addressSplit[4]=='Chemoinduction'){
 +
          <!-- CHEMOINDUCTION -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Project_Overview">Project Overview <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M1"><b>Next ></b> Module 1: Protein Production</a>');
 +
    }else if(addressSplit[4]=='M1'){
 +
          <!-- MODULE1 -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Chemoinduction">Chemoinduction <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Autoinduction"><b>Next ></b> Autoinduction</a>');
 +
    }else if(addressSplit[4]=='Autoinduction'){
 +
          <!-- AUTOINDUCTION -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M1">Module 1: Protein production <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M2"><b>Next ></b> Module 2: Encapsulation</a>');
 +
    }else if(addressSplit[4]=='M2'){
 +
          <!-- MODULE2 -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M1">Autoinduction <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Thermoinduction"><b>Next ></b> Thermoinduction</a>');
 +
    }else if(addressSplit[4]=='Thermoinduction'){
 +
          <!-- THERMOINDUCTION -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M2">Module 2: Encapsulation <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M3"><b>Next ></b> Module 3: Genome deletion</a>');
 +
    }else if(addressSplit[4]=='M3'){
 +
          <!-- MODULE3 -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Thermoinduction">Thermoinduction <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Temporal_Control"><b>Next ></b> Temporal control</a>');
 +
    }else if(addressSplit[4]=='Temporal_Control'){
 +
          <!-- TEMPORAL CONTROL -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/M3">Module 3: Genome deletion <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Genetic_Circuit"><b>Next ></b> Genetic circuits</a>');
 +
    }else if(addressSplit[4]=='Genetic_Circuit'){
 +
          <!-- GENETIC CIRCUIT -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Temporal_Control">Temporal control <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Summary"><b>Next ></b> Summary</a>');
 +
    }else if(addressSplit[4]=='Drylab'){
 +
          <!-- DRYLAB -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Genetic_Circuit">Genetic circuit <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/HumanPractices"><b>Next ></b> Human practices project</a>');
 +
    }else if(addressSplit[4]=='HumanPractices'){
 +
          <!-- HUMAN PRACTICES -->
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/Drylab">Drylab <b>< Previous</b></a>');
 +
          document.write('<span align="right"><font color=#000000> | </font><blink><font color="red"><b>Take the tour</b></font></blink><font color=#000000> | </font></span>');
 +
          document.write('<a href="https://2009.igem.org/'+addressSplit[3]+'/TourEnd"><b>Next ></b>Tour end</a>');
 +
    }else if(addressSplit[4]=='Summary'){
 +
          <!-- Summary -->
 +
          document.write('<span align="right"><blink><font color="red"><a href="https://2009.igem.org/'+addressSplit[3]+'/Project_Overview"><b>Restart the tour </b></a></font></blink></span>');
 +
    }else{
 +
        <!-- NOT PART OF THE TOUR-->
 +
        document.write('<span align="right"><blink><font color="red"><a href="https://2009.igem.org/'+addressSplit[3]+'/Project_Overview"><b>Start the tour </b></a></font></blink></span>');
 +
    }
 +
}
</script>
</script>
</div>
</div>
-
<div id="II09_Tour_Navigation"><font color="red">Take the tour:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>Previous &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://static.igem.org/mediawiki/2009/d/de/II09_Logo_Hello.gif" style="position:absolute; left:120px; top:-86px; width:120px">&nbsp;&nbsp;&nbsp;&nbsp;Next</div>
 
</div>
</div>
</b>
</b>
</html>
</html>

Latest revision as of 03:59, 22 October 2009