summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-06-19 21:04:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-06-19 21:05:21 (GMT)
commitf46b4dcb7c8873553c4ef5810f18a246fb7357f2 (patch)
tree66a492a33929c62b612a4f9bf26e86cf3b8916fb
parent201c2fd98d6b6e893b398e8ea73c77c008e395d3 (diff)
downloadpublik-website-master.zip
publik-website-master.tar.gz
publik-website-master.tar.bz2
references: update submitted forms counter to match actual count & rateHEADmaster
-rw-r--r--static/js/combo.public.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/js/combo.public.js b/static/js/combo.public.js
index 1b2f59f..ce96a74 100644
--- a/static/js/combo.public.js
+++ b/static/js/combo.public.js
@@ -49,11 +49,11 @@ $(function() {
  suffix : ' demandes'
};
function get_current_count() { // (saas only)
- var base_number = 1000000;
- var base_date = new Date("2019-08-30T00:00:00");
+ var base_number = 1780000;
+ var base_date = new Date("2020-06-19T00:00:00");
var diff = (Date.now() - base_date.getTime()) / 1000;
- /* rate on base date: 1 request every 50 seconds */
- return base_number + (diff / 50);
+ /* approx rate on base date: 1 request every 30 seconds */
+ return base_number + (diff / 30);
}
//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);