Team:Brown/templates/header

From 2010.igem.org

(Difference between revisions)
Line 2: Line 2:
<html>
<html>
<!-- BEGIN Breadcrumbs script from TU Delft -->
<!-- BEGIN Breadcrumbs script from TU Delft -->
-
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
 
-
<script type="text/javascript" src="http://github.com/cowboy/jquery-hashchange/raw/v1.3/jquery.ba-hashchange.js">
 
-
 
<script language="javascript" type="text/javascript">
<script language="javascript" type="text/javascript">
 +
var currentPage;
 +
var page = currentPage ? currentPage : 'Home';
 +
var url = location.pathname + '/' + page + '?action=edit';
function capitaliseFirstLetter(string)
function capitaliseFirstLetter(string)
{
{
     return string.charAt(0).toUpperCase() + string.slice(1);
     return string.charAt(0).toUpperCase() + string.slice(1);
}
}
-
 
function buildDepth(array,count)
function buildDepth(array,count)
{
{
Line 29: Line 28:
for (count=0;count<(constituentFolders.length);count++)
for (count=0;count<(constituentFolders.length);count++)
{
{
-
outputStr=outputStr + " <span class='doubleright'>&raquo;</span> <a href='https://2010.igem.org/Team:TU_Delft#page=" + buildDepth(constituentFolders,count) + constituentFolders[count] + "'>" + capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
+
outputStr=outputStr + " <span class='doubleright'>&raquo;</span> <a href='https://2010.igem.org/Team:Brown#page=" + buildDepth(constituentFolders,count) + constituentFolders[count] + "'>" + capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
}
}
}
}
Line 35: Line 34:
}
}
</script>
</script>
-
 
-
 
<style>
<style>
/*BEGIN HEADER/MENU REMOVAL*/
/*BEGIN HEADER/MENU REMOVAL*/

Revision as of 02:38, 24 October 2010