Template:Team:KIT-Kyoto/hidelogo
From 2014.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function(){ | $(function(){ | ||
+ | $(window).resize(function(){ | ||
+ | var h = $(window).height(); | ||
+ | var x = 500; | ||
+ | if (h <= x){ | ||
setTimeout(function(){ | setTimeout(function(){ | ||
$(".toplogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear'); | $(".toplogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear'); | ||
Line 14: | Line 18: | ||
} | } | ||
); | ); | ||
- | + | } | |
+ | }); | ||
}); | }); | ||
</script> | </script> |
Revision as of 18:02, 20 September 2014