Diferencia entre revisiones de «MediaWiki:Common.js»
Sin resumen de edición |
(Se ha deshecho la revisión 81332 de Sophivorus (disc.)) Etiqueta: Deshacer |
||
Línea 14: | Línea 14: | ||
$( function () { | $( function () { | ||
if ( $( '#launchpad' ).length ) { | if ( $( '#launchpad' ).length ) { | ||
mw.loader.getScript( 'https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js' ).then( function () { | mw.loader.getScript( 'https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js' ).then( function () { | ||
mw.loader.getScript( 'https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js' ).then( function () { | |||
function setup() { | |||
div = createDiv( 'All OK!' ); | |||
div.parent( 'launchpad' ); | |||
} | |||
//mw.loader.load( '//localhost/Launchpad/Launchpad.css', 'text/css' ); | |||
//mw.loader.load( '//localhost/Launchpad/Launchpad.js' ); | |||
//mw.loader.load( '/index.php?title=MediaWiki:Launchpad.js&action=raw&ctype=text/javascript' ); | |||
}); | |||
}); | }); | ||
} | } | ||
}); | }); |
Revisión del 16:21 10 abr 2019
// Customize WikiEditor toolbar
mw.loader.load( '/index.php?title=MediaWiki:WikiEditor.js&action=raw&ctype=text/javascript' );
// Load HotCat
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
// Load Easy LST
//mw.loader.load( '//en.wikisource.org/wiki/MediaWiki:Gadget-Easy_LST.js?action=raw&ctype=text/javascript' );
// Launchpad
$( function () {
if ( $( '#launchpad' ).length ) {
mw.loader.getScript( 'https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js' ).then( function () {
mw.loader.getScript( 'https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js' ).then( function () {
function setup() {
div = createDiv( 'All OK!' );
div.parent( 'launchpad' );
}
//mw.loader.load( '//localhost/Launchpad/Launchpad.css', 'text/css' );
//mw.loader.load( '//localhost/Launchpad/Launchpad.js' );
//mw.loader.load( '/index.php?title=MediaWiki:Launchpad.js&action=raw&ctype=text/javascript' );
});
});
}
});