Il y a
?/200
- places déjà réservées
+ places déjà réservées. Ouverture prochaine des inscriptions !
Et nous avons reçu
? %
diff --git a/js/progress.js b/js/progress.js
index 1d9c652..5b875ce 100644
--- a/js/progress.js
+++ b/js/progress.js
@@ -3,7 +3,10 @@ const fundraising_url = "https://api.camp.interhacker.space/api/fundraising"
const gaugeMax = 250;
const fundraisingTotalMax = 20000;
-async function getGauge() {
+async function getGauge() {
+ // REMOVE WHEN SIGNUP FORM IS OPEN
+ return 0;
+
try {
const response = await fetch(gauge_url);
if (!response.ok) {
@@ -20,7 +23,7 @@ async function getGauge() {
}
}
-async function getFundraisingTotal() {
+async function getFundraisingTotal() {
try {
const response = await fetch(fundraising_url);
if (!response.ok) {
@@ -41,17 +44,17 @@ function percentRatio(ratio) {
return Math.floor(ratio * 100);
}
-function setAboveHalf(ratio, element) {
+function setAboveHalf(ratio, element) {
if (ratio > 0.5) {
element.classList.remove("lessthanhalf");
element.classList.add("morethanhalf");
}
}
-async function setGauge() {
+async function setGauge() {
const gauge = await getGauge();
- if (gauge) {
+ if (gauge !== null) {
const gaugeBar = document.getElementById("gauge-bar");
const gaugeText = document.getElementById("gauge-text");
@@ -67,7 +70,7 @@ async function setGauge() {
async function setFundraisingTotal() {
const fundraising_total = await getFundraisingTotal();
- if (fundraising_total) {
+ if (fundraising_total !== null) {
const fundraisingBar = document.getElementById("fundraising-bar");
const fundraisingText = document.getElementById("fundraising-text");