MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 261: Line 261:




mw.loader.load("https://sarkarverse.org/index.php?title=MediaWiki:MP3Player.js&action=raw&ctype=text/javascript");
$.when(
    mw.loader.getScript( 'https://sarkarverse.org/index.php?title=MediaWiki:MP3Player.js&action=raw&ctype=text/javascript' )
)
.then(
    function () {
    new GreenAudioPlayer('.sarkarverse-mp3-player');
    },
    function ( e ) {
        mw.log.error( e.message ); // => "Failed to load script"
    }
);


/* DO NOT ADD CODE BELOW THIS LINE */
/* DO NOT ADD CODE BELOW THIS LINE */

Navigation menu