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

Aus Regiowiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „var temp = $(document).text(); var count = (temp.match(/♂/g) || []).length; $('#maleBio').html(count-1)“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
var temp = $(document).text();
$(function () {
var count = (temp.match(/♂/g) || []).length;
var temp = $(document).text();
$('#maleBio').html(count-1)
var count = (temp.match(/♂/g) || []).length;
$('#maleBio').html(count-1);
count = (temp.match(/♀/g) || []).length;
$('#femaleBio').html(count-1);
}());

Version vom 28. Juni 2021, 22:00 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);
}());