Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
m
Line 97: Line 97:
function listWither(i)
function listWither(i)
{
{
-
/*DEBUG*/
 
-
/*DEBUG*/
 
   subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5;
   subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5;
   if (subLhght_Cur[i]<=0)
   if (subLhght_Cur[i]<=0)
Line 122: Line 120:
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"Trigger"+i+"<br>";
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"Trigger"+i+"<br>";
-
   if (subLhand_Return) {clearTimeout(subLhand_Return);subLhand_Return=null;
+
   if (subLhand_Return) {clearTimeout(subLhand_Return);subLhand_Return=null;}
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"clear Return."+"<br>";
+
-
}
+
   if (i!=sublists_Cur)
   if (i!=sublists_Cur)
   {
   {
-
     if (subLhand_Growth) {clearTimeout(subLhand_Growth);
+
     if (subLhand_Growth) {clearTimeout(subLhand_Growth);}
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"clear Growth"+sublists_Cur+"<br>";
+
     if (!subLhand_Wither[sublists_Cur]) {listWither(sublists_Cur);}
-
}
+
     if (subLhand_Wither[i]) {clearTimeout(subLhand_Wither[i]);subLhand_Wither[i]=null;}
-
     if (!subLhand_Wither[sublists_Cur]) {listWither(sublists_Cur);
+
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"start Wither"+sublists_Cur+"<br>";
+
-
}
+
-
     if (subLhand_Wither[i]) {clearTimeout(subLhand_Wither[i]);
+
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"clear Wither"+i+"<br>";
+
-
}
+
     sublists[2*i+2].style.display='block';
     sublists[2*i+2].style.display='block';
     sublists_Cur = i;
     sublists_Cur = i;
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"Cur="+sublists_Cur+"<br>";
 
     listGrowth();
     listGrowth();
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"start Growth"+sublists_Cur+"<br>";
 
   }
   }
}
}
Line 147: Line 135:
   if (subLhand_Return) {clearTimeout(listReturn);}
   if (subLhand_Return) {clearTimeout(listReturn);}
   subLhand_Return = setTimeout(listReturn,1000);
   subLhand_Return = setTimeout(listReturn,1000);
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"start Return."+"<br>";
 
}
}
-
/*DEBUG*/
 
listTrigger(sublists_Now);
listTrigger(sublists_Now);
</script>
</script>
</html>
</html>

Revision as of 07:27, 15 September 2012