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 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'>»</span> <a href='https://2010.igem.org/Team: | + | outputStr=outputStr + " <span class='doubleright'>»</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