Team:Grenoble/script
From 2012.igem.org
(Difference between revisions)
Line 50: | Line 50: | ||
dist = (Math.round(currh / DDSPEED)); | dist = (Math.round(currh / DDSPEED)); | ||
} | } | ||
- | if(dist <= 1 | + | if(dist <= 1){ |
- | + | if(d == 1){ | |
+ | dist = 1; | ||
+ | } | ||
} | } | ||
c.style.height = currh + (dist * d) + 'px'; | c.style.height = currh + (dist * d) + 'px'; |
Revision as of 08:22, 19 July 2012