میڈیا وکی:Gadget-prota.js

آزاد انسائیکلوپیڈیا، وکیپیڈیا توں

نوٹ: بچان مگروں توانوں اپنے براؤزر دے کاشے توں بار جانا پوے گا تبدیلیاں ویکھن لئی۔

  • Firefox / Safari: Shift پھڑی رکھو ریلوڈ تے کلکنگ کردیاں ہویاںCtrl-F5 or Ctrl-R (Command-R میک تے)
  • گوکل کروم: دباؤ Ctrl-Shift-R (Command-Shift-R میک تے)

Internet Explorer: hold Ctrl کلک کردیاں Refresh, یا دباؤ Ctrl-F5 Konqueror:کلک ریلوڈ یا F5 دباؤ۔ Opera: کاشے نوں صاف کرو آوزار → تانگاں

/* Addes font selector buttons to edit view */
jQuery( function ( $ ) {
	"use strict";
var newLang = 'ur';
document.documentElement.lang = newLang; // will set the lang property to 'ur'
	function protaAddButton ( label, style ) {
		var $edit = $( '#wpTextbox1' );
		var $button = $( '<input type="button">' )
			.val( label )
			.click( function () {
				$edit.css( {fontFamily: style } );
			} );
		
		$edit.parent().prepend( $button );
	}
                        protaAddButton(' امیری', 'Amiri');
                        protaAddButton(' سانس سیرف', 'Microsoft Sans Serif');
                        protaAddButton(' سکال مجلّہ', 'Sakkal Majalla');
                        protaAddButton(' مونو سپیس', 'Monospace');
                        protaAddButton(' ایریئل یونیکوڈ', 'Arial Unicode MS');
                        protaAddButton(' تاہوما', 'Tahoma');   
                        protaAddButton(' ایریئل', 'Arial');
	protaAddButton(' جمیل نوری نستعلیق', 'Jameel Noori Nastaleeq' );
	protaAddButton(' سیگوئے یوآئی', 'Segoe UI' );
       protaAddButton(' کیلیبری', 'Calibri');
	protaAddButton(' کوریئر نیو', 'Courier New' );
	protaAddButton(' ٹائمز نیو رومن', 'Time New Roman' );
	 protaAddButton(' مائیکروسافٹ ایغور', 'Microsoft Uighur' );


} );

jQuery( function( $ ) {
	"use strict";

	bidiAddButton( 'کھبے پاسے', { direction: 'ltr' } );
	bidiAddButton( ' سجے پاسے', { direction: 'rtl' } );


	function bidiAddButton ( label, css ) {
		var $edit = $( '#wpTextbox1' );
		var $button = $( '<input type="button">' )
			.val( label )
			.click( function () {
				$edit.css( css );
			} );
			
		$edit.parent().prepend( $button );
	}

} );