Fix #30 : Mise en page des barres de progressions #31

Merged
Nono merged 4 commits from progression into main 2026-02-12 12:37:24 +00:00
Showing only changes of commit 9847d7c527 - Show all commits

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);
} }