Benutzer:Mfchris84/common.js: Unterschied zwischen den Versionen

Aus Regiowiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:
count = (temp.match(/♀/g) || []).length;
count = (temp.match(/♀/g) || []).length;
$('#femaleBio').html(count-1);
$('#femaleBio').html(count-1);
count = (temp.match(/<sub>w<\/sub>/g) || []).length;
count = (temp.match(/-\sw\s/g) || []).length;
$('#werke').html(count-1);
$('#werke').html(count-1);
}());
}());

Version vom 5. Januar 2022, 01:33 Uhr

$(function () {
	var temp = $(document).text();
	var count = (temp.match(/♂/g) || []).length;
	$('#maleBio').html(count-1);
	count = (temp.match(/♀/g) || []).length;
	$('#femaleBio').html(count-1);
	count = (temp.match(/-\sw\s/g) || []).length;
	$('#werke').html(count-1);	
}());