Team:NJU-QIBEBT
From 2014.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
$(this).css('color','white'); | $(this).css('color','white'); | ||
}); | }); | ||
+ | $("#menu_off img").click(function(){ | ||
+ | if($(this).data("tog") === 0){ | ||
+ | $(this).data("tog",1); | ||
+ | $("#header").animate({ "top" : "0px" }, 200); | ||
+ | } | ||
+ | else { | ||
+ | $(this).data("tog",0); | ||
+ | $("#header").animate({ "top" : "-60px" }, 150); | ||
+ | } | ||
+ | }).data("tog",0); | ||
}); | }); | ||
</script> | </script> |
Revision as of 08:42, 20 September 2014