User:DAlangi (WMF)/common.js

/** * Testing out some functionalities */ /*mw.loader.using( 'oojs-ui', 'oojs-ui-core', 'oojs-ui.styles.icons-editing-core', 'jquery' ).done( function {	$( function  { var inputField = new OO.ui.HiddenInputWidget( {		} ); $( '#mw-content-text' ).append( inputField.$element ); } ); } );*/

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 ); } ); } );