MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,124: | Line 1,124: | ||
} | } | ||
}()); | }()); | ||
//Welcome banner | |||
$( function () { | |||
var banner = document.querySelector( '.inaugural-banner' ); | |||
if ( !banner ) { | |||
return; | |||
} | |||
banner.focus(); | |||
document.addEventListener( 'keydown', function ( e ) { | |||
if ( e.key === 'Enter' ) { | |||
window.location.href = 'https://anandamakaranda.in/'; | |||
} | |||
} ); | |||
} ); | |||