Team:KAIST-Korea/jihan

From 2011.igem.org

(Difference between revisions)
Line 24: Line 24:
function buildDepth(array,count) {
function buildDepth(array,count) {
var depthStr="";
var depthStr="";
-
for (i=1;i<count;i++)
+
for (i=0;i<count;i++)
{
{
depthStr=depthStr + array[i] + "/" ;
depthStr=depthStr + array[i] + "/" ;
Line 46: Line 46:
for (count=0;count<(constituentFolders.length);count++)
for (count=0;count<(constituentFolders.length);count++)
{
{
-
outputStr=outputStr + "<a href='https://2011.igem.org/Team:" + teamname +
+
outputStr=outputStr + "<a href='https://2011.igem.org/Team:" + buildDepth(constituentFolders,count) + constituentFolders[count] + "'>" +  
-
buildDepth(constituentFolders,count) + constituentFolders[count] + "'>" +  
+
capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
}
}

Revision as of 09:19, 7 August 2011