fix
All checks were successful
/ build (push) Successful in 19s

This commit is contained in:
bain 2024-12-14 22:31:05 +01:00
parent ef7e7f03aa
commit 4dfc953d2c
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -20,8 +20,8 @@
const resp = await fetch('https://ha.nolog.cz/fundraising/darujme-stats');
const data = await resp.json();
progressBar.setAttribute('style', '--filled: ' + Math.round(data.projectStats.collectedAmountEstimate.cents / 18000000 * 100) + '%')
const amount = Math.round(data.projectStats.collectedAmountEstimate.cents / 100).toLocaleString('cs-CZ');
amount.textContent = "vybráno " + amount + " Kč z 180 000 Kč";
const v = Math.round(data.projectStats.collectedAmountEstimate.cents / 100).toLocaleString('cs-CZ');
amount.textContent = "vybráno " + v + " Kč z 180 000 Kč";
})()
</script>
</div>