میڈیا وکی:Gadget-prota.js
یاددہانی: محفوظ کرݨ دے بعد انہاں تبدیلیاں کوں ݙیکھݨ کیتے تہاکوں آپݨے براؤزر دا کیشی (cache) صاف کرݨاں ہوسی۔
- فائرفاکس/ سفاری: ڄݙݨ Reload تے کلک کرو تاں Shift دبا تے رکھو، یا Ctrl-F5 یا Ctrl-R دباؤ (Mac تے R-⌘)
- گوگل کروم: Ctrl-Shift-R دباؤ (Mac تے Shift-R-⌘)
- انٹرنیٹ ایکسپلورر: ڄݙݨ Refresh تے کلک کرو تاں Ctrl یا Ctrl-F5 دباؤ
- اوپیرا: Ctrl-F5 دباؤ۔
/* Addes font selector buttons to edit view */
jQuery( function ( $ ) {
"use strict";
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(' Serif', 'serif' );
protaAddButton(' Sans', 'sans-serif' );
protaAddButton(' Monospaced', 'monospace' );
protaAddButton(' جمیل نوری نستعلیق', 'Jameel Noori Nastaleeq' );
protaAddButton(' علوی نستعلیق', 'Jameel Noori Nastaleeq' );
protaAddButton(' امیری', 'Amiri' );
protaAddButton(' ٹائمز نیو رومن', 'Time New Roman' );
protaAddButton(' تاہوما', 'Tahoma' );
} );
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 );
}
} );