Team:TU Delft/test
From 2010.igem.org
(Difference between revisions)
Line 213: | Line 213: | ||
function buildBreadCrumbTrail(page) | function buildBreadCrumbTrail(page) | ||
{ | { | ||
- | + | var constituentFolders = new Array(); | |
- | + | ||
- | + | ||
var currentURL = page; | var currentURL = page; | ||
constituentFolders=currentURL.split("/"); | constituentFolders=currentURL.split("/"); | ||
Line 221: | Line 219: | ||
for (count=0;count<(constituentFolders.length);count++) | for (count=0;count<(constituentFolders.length);count++) | ||
{ | { | ||
- | outputStr=outputStr + " » <a href='https://2010.igem.org/Team:TU_Delft/test#page=" + constituentFolders | + | outputStr=outputStr + " » <a href='https://2010.igem.org/Team:TU_Delft/test#page=" + buildDepth((constituentFolders.length-count)+1) + "'>" + constituentFolders[count] + "</a>"; |
} | } | ||
$("#breadcrumbs").html(outputStr); | $("#breadcrumbs").html(outputStr); |