User:DAlangi (WMF)/common.js

/** * Testing out some functionalities */ mw.loader.using(	'oojs-ui',	'oojs-ui-core',	'oojs-ui.styles.icons-editing-core',	'mediawiki.api',	'mediawiki.widgets.DateInputWidget',	'jquery' ).done( function {	$( function  { var dateObj = new mw.widgets.DateInputWidget( {			$overlay: $( '.oo-ui-window' )		} ); var fieldset = new OO.ui.FieldsetLayout( {			items: [				new OO.ui.FieldLayout( dateObj, {						align: 'top', label: 'Select date (custom formats)' }				)			]		} );		$( '#mw-content-text' ).append( fieldset.$element ); } ); } );