MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,130: Line 1,130:
         return;
         return;
     }
     }
    var go = function () {
        window.location.href = 'https://anandamakaranda.in/';
    };
     banner.focus();
     banner.focus();
    banner.addEventListener( 'click', go );
     document.addEventListener( 'keydown', function ( e ) {
     document.addEventListener( 'keydown', function ( e ) {
         if ( e.key === 'Enter' ) {
         if ( e.key === 'Enter' ) {
             window.location.href = 'https://anandamakaranda.in/';
             go();
         }
         }
     } );
     } );
} );
} );