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