2 * JavaScript to show jump links to motor-impaired users when they are focused.
4 jQuery( function ( $ ) {
6 $( '.mw-jump' ).on( 'focus blur', 'a', function ( e ) {
7 // Confusingly jQuery leaves e.type as focusout for delegated blur events
8 if ( e.type === 'blur' || e.type === 'focusout' ) {
9 $( this ).closest( '.mw-jump' ).css( { height: 0 } );
11 $( this ).closest( '.mw-jump' ).css( { height: 'auto' } );