Team:KAIST-Korea/jihan

From 2011.igem.org

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

Revision as of 09:30, 7 August 2011