Team:SDU-Denmark/core/footer

From 2013.igem.org

(Difference between revisions)
Line 12: Line 12:
<script>
<script>
-
footExpanded = false;
 
$('.footerContainer').mouseenter(function() {
$('.footerContainer').mouseenter(function() {
-
  if (footExpanded == false) {
 
-
    footExpanded = true;
 
     $('.footer').animate({height: '70px'}, 500);
     $('.footer').animate({height: '70px'}, 500);
-
  }
 
});
});
$('.footerContainer').mouseleave(function() {
$('.footerContainer').mouseleave(function() {
-
  if (footExpanded) {
+
     $('.footer').animate({height: '30px'}, 100);
-
    footExpanded = false;
+
-
     $('.footer').animate({height: '30px'}, 500);
+
-
  }
+
});
});
</script>
</script>
</html>
</html>

Revision as of 19:32, 19 May 2013

Retrieved from "http://2013.igem.org/Team:SDU-Denmark/core/footer"