Activer la barre de progression
This commit is contained in:
parent
744dd42c48
commit
9847d7c527
1 changed files with 3 additions and 3 deletions
|
|
@ -4,8 +4,8 @@ const gaugeMax = 200;
|
|||
const fundraisingTotalMax = 20000;
|
||||
|
||||
async function getGauge() {
|
||||
// REMOVE WHEN SIGNUP FORM IS OPEN
|
||||
return 0;
|
||||
// // REMOVE WHEN SIGNUP FORM IS OPEN
|
||||
// return 0;
|
||||
|
||||
try {
|
||||
const response = await fetch(gauge_url);
|
||||
|
|
@ -61,7 +61,7 @@ async function setGauge() {
|
|||
const gaugeRatio = gauge / gaugeMax;
|
||||
|
||||
gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%");
|
||||
gaugeText.innerText = gauge + "/" + gaugeMax;
|
||||
gaugeText.innerText = gauge + " / " + gaugeMax;
|
||||
|
||||
setAboveHalf(gaugeRatio, gaugeBar);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue