Template:Peking2012 Color Modeling
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 97: | Line 97: | ||
function listWither(i) | function listWither(i) | ||
{ | { | ||
- | |||
- | |||
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;} |
- | + | ||
- | } | + | |
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);} | |
- | } | + | if (subLhand_Wither[i]) {clearTimeout(subLhand_Wither[i]);subLhand_Wither[i]=null;} |
- | if (!subLhand_Wither[sublists_Cur]) {listWither(sublists_Cur); | + | |
- | + | ||
- | } | + | |
- | if (subLhand_Wither[i]) {clearTimeout(subLhand_Wither[i]); | + | |
- | + | ||
- | } | + | |
sublists[2*i+2].style.display='block'; | sublists[2*i+2].style.display='block'; | ||
sublists_Cur = i; | sublists_Cur = i; | ||
- | |||
listGrowth(); | listGrowth(); | ||
- | |||
} | } | ||
} | } | ||
Line 147: | Line 135: | ||
if (subLhand_Return) {clearTimeout(listReturn);} | if (subLhand_Return) {clearTimeout(listReturn);} | ||
subLhand_Return = setTimeout(listReturn,1000); | subLhand_Return = setTimeout(listReturn,1000); | ||
- | |||
} | } | ||
- | |||
listTrigger(sublists_Now); | listTrigger(sublists_Now); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 07:27, 15 September 2012