Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
Line 55: | Line 55: | ||
} | } | ||
}while (state) | }while (state) | ||
- | + | if (i == 0){ | |
+ | return arrayAbbrText[0]; | ||
+ | }else{ | ||
+ | newDisplayText = "" | ||
+ | for (var j=0; j <= i-1; j++){ | ||
+ | newDisplayText = newDisplayText + arrayAbbrText[j]; | ||
+ | } | ||
+ | } | ||
+ | return newDisplayText; | ||
}else{ | }else{ | ||
return displayText; | return displayText; |
Revision as of 16:42, 24 September 2012