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-1;i++)
+
for (i=0;i<count;i++)
{
{
depthStr=depthStr + array[i] + "/" ;
depthStr=depthStr + array[i] + "/" ;
Line 43: Line 43:
// Loop through the URL
// Loop through the URL
-
for (count=0;count<(constituentFolders.length);count++)
+
for (count=1;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/Team:KAIST-Korea"+ buildDepth(constituentFolders,count) + "'>" +  
capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
capitaliseFirstLetter(constituentFolders[count]).replace(/-/gi," ") + "</a>";
}
}

Revision as of 09:33, 7 August 2011