MediaWiki: Common.js: Unterschied zwischen den Versionen
Aus Joachim Camerarius (1500-1574)
Noeth (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Noeth (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 2: | Zeile 2: | ||
// | /***************************************************************/ | ||
/********* Animate stat-counter on main page ******************/ | |||
/**************************************************************/ | |||
$('.counting').each(function() { | $('.counting').each(function() { | ||
Zeile 25: | Zeile 27: | ||
}); | }); | ||
}); | }); |
Version vom 26. Oktober 2018, 17:04 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ /***************************************************************/ /********* Animate stat-counter on main page ******************/ /**************************************************************/ $('.counting').each(function() { var $this = $(this), countTo = $this.attr('data-count'); $({ countNum: $this.text()}).animate({ countNum: countTo }, { duration: 2000, easing:'linear', step: function() { $this.text(Math.floor(this.countNum)); }, complete: function() { $this.text(this.countNum); //alert('finished'); } }); });