MediaWiki:Gadget-prepareFA.js
Poznámka: Po uložení musíte vyprázdnit mezipaměť vašeho prohlížeče, jinak změny neuvidíte.
$(function() {
$('.fa-nom-size-indicator').each(function() {
var $t = $(this);
var $nom = $t.closest('.fa-nom-root');
var $text = $nom.find('.fa-nom-text');
if (!$text.length) return;
var text = $text[0].innerText || $text.text();
var len = text.length;
$t.text(len);
if (len < 1000 || len > 1800) {
$t.css({ 'font-weight': 'bold', 'color': '#7A2D26' });
$t.attr('title', 'Délka anotace je mimo doporučený rozsah (1000–1800 znaků).');
}
});
});