Team:Amsterdam/Sandbox

From 2011.igem.org

(Difference between revisions)
 
(26 intermediate revisions not shown)
Line 1: Line 1:
{{:Team:Amsterdam/Header}}
{{:Team:Amsterdam/Header}}
<html>
<html>
-
<script type="text/javascript">
+
<style type="text/css">
-
//Configure the script here
+
-
var teamname = "Amsterdam";
+
-
// Do not edit below
 
-
// Loop through the URL
+
</style>
-
function buildDepth(array,count) {
+
<div id="requirements">
-
var depthStr="";
+
<table id="table">
-
for (i=0;i<count;i++)
+
<tr>
-
{
+
<td>Bronze</td>
-
depthStr=depthStr + array[i] + "/" ;
+
<td>Silver</td>
-
}
+
<td>Gold</td>
-
return depthStr;
+
</tr>
-
}
+
<tr>
 +
<td><a href="https://igem.org/Team.cgi?id=538"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Team registration</a></td>
 +
<td><a href="https://2011.igem.org/Team:Amsterdam/Labwork/Characterisation"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Working BioBricks</a></td>
 +
<td><a href="https://2011.igem.org/Team:Amsterdam/Human_Outreach/Collaboration"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Collaboration</a></td>
 +
</tr>
 +
<tr>
 +
<td><a href="https://igem.org/2011_Judging_Form?id=538"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Complete judging form</a></td>
 +
<td><a href="https://2011.igem.org/Team:Amsterdam/Labwork/Characterisation"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">BioBrick characterisation</a></td>
 +
<td><a href="https://2011.igem.org/Team:Amsterdam/Human_Outreach/Overview"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Human outreach</a></td>
 +
</tr>
 +
<tr>
 +
<td><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Team Wiki</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">Present at iGEM Jamboree</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td><a href="https://2011.igem.org/Team:Amsterdam/Biobricks/Overview#Registry_Submissions"><img src="https://static.igem.org/mediawiki/2011/b/b1/Igemcheck.jpg">New BioBricks submitted</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
</tr>
 +
</table>
-
// The function
+
</div>
-
function buildBreadCrumbTrail(page) {
+
-
// Declare vars
+
-
var constituentFolders = new Array();
+
-
var currentURL = page;
+
-
 
+
-
// Split the URL
+
-
constituentFolders=currentURL.split("/");
+
-
 
+
-
// Start with a link to the team home page
+
-
var outputStr="<a href='https://2010.igem.org/Team:'" + teamname + ">Home</a>";
+
-
 
+
-
// Loop through the URL
+
-
for (count=0;count<(constituentFolders.length);count++)
+
-
{
+
-
outputStr=outputStr + " > <a href='https://2010.igem.org/Team:" + teamname +
+
-
buildDepth(constituentFolders,count) + constituentFolders[count] + "'>" +
+
-
capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
+
-
}
+
-
 
+
-
// Write to the div
+
-
$("#breadcrumbs").html(outputStr);
+
-
var txt=document.getElementById("breadcrumbs")
+
-
txt.innerHTML=outputStr;
+
-
}
+
-
 
+
-
// Capitalize the first letter
+
-
function capitaliseFirstLetter(string) {
+
-
    return string.charAt(0).toUpperCase() + string.slice(1);
+
-
}
+
-
 
+
-
// Start the script upon page load
+
-
$(function() {
+
-
buildBreadCrumbTrail(window.location.pathname);
+
-
}
+
-
</script>breadcrumbs
+
-
<div id=""></div>
+
</html>
</html>
-
{{:Team:Amsterdam/Footer}}
 

Latest revision as of 19:31, 21 September 2011