Team:NTU-Taida/Templates/Footer

From 2012.igem.org

(Difference between revisions)
Line 40: Line 40:
     var newDisplayText="";
     var newDisplayText="";
     var i = -1;
     var i = -1;
 +
    var state = false;
     do{
     do{
       i++;
       i++;
       newDisplayText = newDisplayText + ' ' + arrayAbbrText[i];
       newDisplayText = newDisplayText + ' ' + arrayAbbrText[i];
-
    }while (i < arrayAbbrText.length </html>{{{LALA|&amp;&amp;}}}<html> newDisplayText.length < 23)
+
      if (i < arrayAbbrText.length){
 +
        if (newDisplayText.length < 23){
 +
          state = true; 
 +
        }
 +
        else{
 +
          state = false;
 +
        }
 +
      }else{
 +
        state = false;
 +
      }
 +
    }while (state)
     return newDisplayText;
     return newDisplayText;
   }else{
   }else{

Revision as of 16:33, 24 September 2012