Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 23: | Line 23: | ||
function isOnNavBar() { return nav_bar.data('hover'); } | function isOnNavBar() { return nav_bar.data('hover'); } | ||
$(document).mousemove(function(event) { | $(document).mousemove(function(event) { | ||
− | if(event.pageY <= 20 | + | if(event.pageY <= 20 || isOnNavBar()) { |
nav_bar.fadeIn(); | nav_bar.fadeIn(); | ||
} else { | } else { |
Revision as of 14:07, 3 April 2015