Team:Penn/HumanPractices
From 2013.igem.org
(Difference between revisions)
Line 144: | Line 144: | ||
jQuery(document).ready(function($) { | jQuery(document).ready(function($) { | ||
- | + | ||
- | + | $(".dropdown").mouseenter(function(){ | |
- | + | $(".dropdown-menu").hide(); | |
- | + | $(this).find(".dropdown-menu").show(); | |
- | + | }); | |
- | }); | + | |
+ | $(".dropdown").mouseleave(function(){ | ||
+ | $(this).find(".dropdown-menu").hide(); | ||
+ | }); | ||
+ | |||
+ | $(".dropdown li").mouseenter(function(){ | ||
+ | $(this).addClass("active"); | ||
+ | }); | ||
+ | |||
+ | $(".dropdown li").mouseleave(function(){ | ||
+ | $(this).removeClass("active"); | ||
+ | |||
+ | }); | ||
+ | |||
+ | |||
$(window).scroll($.debounce( 300, true, function(){ | $(window).scroll($.debounce( 300, true, function(){ | ||
Line 168: | Line 182: | ||
})); | })); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 12:38, 22 August 2013