From 02552ac5a9c4a165730af58b746d88a0965b344d Mon Sep 17 00:00:00 2001 From: SIGEIV Date: Tue, 22 Nov 2022 21:26:20 +0000 Subject: [PATCH] Create app.js --- app.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 app.js diff --git a/app.js b/app.js new file mode 100644 index 000000000..aff976ed5 --- /dev/null +++ b/app.js @@ -0,0 +1,39 @@ + + 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' + }); + }); + + + + + + + + + +