From c520ac52deb7a0e05f764da3008dc275de37b6db Mon Sep 17 00:00:00 2001 From: SIGEIV Date: Tue, 22 Nov 2022 21:33:12 +0000 Subject: [PATCH] Create joop.js --- joop.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 joop.js diff --git a/joop.js b/joop.js new file mode 100644 index 0000000..b338f0a --- /dev/null +++ b/joop.js @@ -0,0 +1,25 @@ +jQuery(document).ready(function(){ + var waypoint = jQuery('#jmm-counter-181').waypoint(function() { + jQuery('#jmm-counter-181 .jmm-timer').countTo({ + formatter: function (value, options) { + return value.toFixed(options.decimals).toString().split(".").join(",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"); + } + }); + this.destroy(); + }, { + offset: 'bottom-in-view' + }); + }); + + + + + + +