Difference between revisions of "User:Podehaye/common.js"
Jump to navigation
Jump to search
(Created page with "mw.loader.using( 'oojs-ui-core' ).done( function () { $( function () { var button = new OO.ui.ButtonWidget( { label: 'Click me!' } ); button.on( 'click', function () {...") |
(No difference)
|
Revision as of 23:42, 8 March 2019
mw.loader.using( 'oojs-ui-core' ).done( function () {
$( function () {
var button = new OO.ui.ButtonWidget( { label: 'Click me!' } );
button.on( 'click', function () {
alert( 'You clicked the button!' );
} );
$( '#mw-content-text' ).append( button.$element );
} );
} );