User:Bilalwaheed099/OOUI-Demo.js

$(document).ready( function {	// we wrap the code in loader for user scripts	mw.loader.using( 'oojs-ui-core' ).done( function { $( function {		//button widget		var button = new OO.ui.ButtonWidget( { label: 'Button 1!' } );		button.on( 'click', function { alert( 'hmm! The button was clicked!' ); } );		$( '#mw-content-text' ).append( button.$element );		//second widget		var input = new OO.ui.TextInputWidget( { value: 'Text input from user' } );		$( document.body ).append( textInput.$element );		var button = new OO.ui.ButtonWidget( { label: 'Submit button for text input', icon: '', title: 'Submit' } );		$( document.body ).append( button.$element );	} );

} ); });