MediaWiki:Gadget-prota.js: Difference between revisions

From faraghaib
Jump to navigation Jump to search
admin>Admin
صفحه‌ای تازه حاوی «$(function () { var edit = $("#wpTextbox1"); if (edit.length === 0) { return; } $('<div>').append($.map(['Monospace', 'Sans-serif', 'Serif', 'Nazli', 'Tahoma', 'Iranian Sans', 'Inherit'], function (font) { return $('<button>', { text: font }).click(function (e) { e.preventDefault(); edit.css('font-family', font); }); })).insertBefore(edit.parent()); });» ایجاد کرد
 
m 2 revisions imported
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 12:16, November 30, 2025

$(function () {
	var edit = $("#wpTextbox1");
	if (edit.length === 0) { return; }
	
	$('<div>').append($.map(['Monospace', 'Sans-serif', 'Serif', 'Nazli', 'Tahoma', 'Iranian Sans', 'Inherit'], function (font) {
		return $('<button>', { text: font }).click(function (e) {
			e.preventDefault();
			edit.css('font-family', font);
		});
	})).insertBefore(edit.parent());
});