Team:SDU-Denmark/core/footer
From 2013.igem.org
(Difference between revisions)
Heidi.Wille (Talk | contribs) |
Heidi.Wille (Talk | contribs) |
||
Line 12: | Line 12: | ||
<script> | <script> | ||
+ | footExpanded = false; | ||
$('.footerContainer').mouseenter(function() { | $('.footerContainer').mouseenter(function() { | ||
- | $('.footer').animate({height: '70px'}, 500); | + | if (footExpanded) { |
+ | footExpanded = true; | ||
+ | $('.footer').animate({height: '70px'}, 500); | ||
+ | } | ||
}); | }); | ||
$('.footerContainer').mouseleave(function() { | $('.footerContainer').mouseleave(function() { | ||
- | $('.footer').animate({height: '30px'}, 500); | + | if (footExpanded) { |
+ | footExpanded = false; | ||
+ | $('.footer').animate({height: '30px'}, 500); | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 19:29, 19 May 2013