Team:Tec-Monterrey/projectnotebook september/day02
From 2011.igem.org
(Difference between revisions)
Line 361: | Line 361: | ||
var stepHeight = contentHeight / PANEL_ANIMATION_STEPS; | var stepHeight = contentHeight / PANEL_ANIMATION_STEPS; | ||
var direction = (!expanding ? -1 : 1); | var direction = (!expanding ? -1 : 1); | ||
- | + | if (direction > 0) | |
+ | collapseAll(); | ||
setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY); | setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY); | ||
} | } | ||
Line 564: | Line 565: | ||
- | <a href="https://2011.igem.org/Team:Tec-Monterrey/ | + | <a href="https://2011.igem.org/Team:Tec-Monterrey/projectnotebook_august/day31"> |
<img src="https://static.igem.org/mediawiki/2011/c/c8/Botonleft01.png"> </a> | <img src="https://static.igem.org/mediawiki/2011/c/c8/Botonleft01.png"> </a> | ||