Template:Peking2012 Color Modeling
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 78: | Line 78: | ||
{ | { | ||
/*DEBUG*/ | /*DEBUG*/ | ||
- | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"G"+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>"; | + | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"G:C"+sublists_Cur+' N'+sublists_Now+' G'+subLhand_Growth+' R'+subLhand_Return+' W'+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>"; |
/*DEBUG*/ | /*DEBUG*/ | ||
subLhght_Cur[sublists_Cur] = subLhght_Cur[sublists_Cur] * 0.7 + subLhght[sublists_Cur] * 1.2 * 0.3; | subLhght_Cur[sublists_Cur] = subLhght_Cur[sublists_Cur] * 0.7 + subLhght[sublists_Cur] * 1.2 * 0.3; | ||
Line 95: | Line 95: | ||
{ | { | ||
/*DEBUG*/ | /*DEBUG*/ | ||
- | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"W"+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>"; | + | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"W"+i+"C"+sublists_Cur+' N'+sublists_Now+' G'+subLhand_Growth+' R'+subLhand_Return+' W'+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>"; |
/*DEBUG*/ | /*DEBUG*/ | ||
subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5; | subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5; | ||
Line 118: | Line 118: | ||
function listTrigger(i) | function listTrigger(i) | ||
{ | { | ||
- | if (subLhand_Return) {clearTimeout(subLhand_Return);subLhand_Return=null;} | + | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"Trigger"+i+"<br>"; |
+ | |||
+ | 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); |
- | if (!subLhand_Wither[sublists_Cur]) listWither(sublists_Cur); | + | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"clear Growth."+"<br>"; |
- | if (subLhand_Wither[i]) { | + | } |
+ | 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; | ||
listGrowth(); | listGrowth(); | ||
+ | document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"start Growth."+"<br>"; | ||
} | } | ||
} | } |
Revision as of 06:43, 15 September 2012