Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
first pass at toggling the Page Actions menu on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
garrickvanburen committed Jul 2, 2013
1 parent b44553c commit fb0d09d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/scripts/foreground.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ jQuery(document).ready(function() {
// Turn categories into labels
jQuery('#mw-normal-catlinks ul li a').addClass('label');

// Make the Page Action button respond to hover
jQuery('a.button.dropdown').mouseenter(function(){
jQuery('ul#drop1').addClass('open').addClass('right').css('top', '32px').css('left', '785px');
});
jQuery('ul#drop1').mouseleave(function(){
jQuery('ul#drop1').removeClass('open').css('top', '-9999px').css('left', '785px');
});

});

0 comments on commit fb0d09d

Please sign in to comment.