MediaWiki:Mobile.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→All JavaScript here will be loaded for users of the mobile site: $.when( mw.loader.getScript( 'https://sarkarverse.org/index.php?title=MediaWiki:MP3Player.js&action=r...") |
(No difference)
|
Latest revision as of 19:06, 21 April 2021
/* All JavaScript here will be loaded for users of the mobile site */
$.when(
mw.loader.getScript( 'https://sarkarverse.org/index.php?title=MediaWiki:MP3Player.js&action=raw&ctype=text/javascript' )
)
.then(
function () {
$( ".sarkarverse-mp3-player" ).each(function() {
new GreenAudioPlayer( this );
});
},
function ( e ) {
mw.log.error( e.message ); // => "Failed to load script"
}
);