[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 /** 2 * JavaScript to show jump links to motor-impaired users when they are focused. 3 */ 4 jQuery( function ( $ ) { 5 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 } ); 10 } else { 11 $( this ).closest( '.mw-jump' ).css( { height: 'auto' } ); 12 } 13 } ); 14 15 } );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |