From ce7e3c7d1dc8b209d4128c7efc5e6ce54897ce93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 10 Mar 2024 10:31:39 +0100 Subject: [PATCH] adjust counter with jan/feb 2024 numbers --- static/js/combo.public.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/combo.public.js b/static/js/combo.public.js index 0deca5f..6e84ee4 100644 --- a/static/js/combo.public.js +++ b/static/js/combo.public.js @@ -49,14 +49,14 @@ $(function() {   suffix : ' demandes actives' }; function get_current_count() { // (saas only) - var base_number = 6910000; - var base_date = new Date("2022-11-06T00:00:00"); + var base_number = 13785600; + var base_date = new Date("2024-01-01T00:00:00"); var diff = (Date.now() - base_date.getTime()) / 1000; /* approx rate on base date, - * October 6th: 6690000, November 6th: 6910000 - * 1 / ((6910000 - 6690000) / (86400seconds * 31days)) -> 12 + * January 1th: 13785600, March 1st: 14711000 + * 1 / ((14711000 - 13785600) / (86400seconds * 60days)) -> 5.6 */ - return base_number + (diff / 12); + return base_number + (diff / 5.6); } //var count = new CountUp("counter", 1234, parseInt(total), 0, 4.5, options); var count = new CountUp("counter", 1, parseInt(get_current_count()), 0, 4.5, options);