Activer la barre de progression

This commit is contained in:
nono-lqdn 2026-02-05 13:48:51 +01:00
parent 330fcd2522
commit 2869544807

View file

@ -4,8 +4,8 @@ const gaugeMax = 200;
const fundraisingTotalMax = 20000; const fundraisingTotalMax = 20000;
async function getGauge() { async function getGauge() {
// REMOVE WHEN SIGNUP FORM IS OPEN // // REMOVE WHEN SIGNUP FORM IS OPEN
return 0; // return 0;
try { try {
const response = await fetch(gauge_url); const response = await fetch(gauge_url);
@ -61,7 +61,7 @@ async function setGauge() {
const gaugeRatio = gauge / gaugeMax; const gaugeRatio = gauge / gaugeMax;
gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%"); gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%");
gaugeText.innerText = gauge + "/" + gaugeMax; gaugeText.innerText = gauge + " / " + gaugeMax;
setAboveHalf(gaugeRatio, gaugeBar); setAboveHalf(gaugeRatio, gaugeBar);
} }