MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,126: | Line 1,126: | ||
//Welcome banner | //Welcome banner | ||
$( function () { | $( function () { | ||
if ( !document.body.classList.contains( 'page-Welcome' ) ) { | |||
return; | return; | ||
} | } | ||
| Line 1,133: | Line 1,132: | ||
window.location.href = 'https://anandamakaranda.in/'; | window.location.href = 'https://anandamakaranda.in/'; | ||
}; | }; | ||
document.body.addEventListener( 'click', go ); | |||
document.addEventListener( 'keydown', function ( e ) { | document.addEventListener( 'keydown', function ( e ) { | ||
if ( e.key === 'Enter' ) { | if ( e.key === 'Enter' ) { | ||