parent
ef7e7f03aa
commit
4dfc953d2c
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@
|
||||||
const resp = await fetch('https://ha.nolog.cz/fundraising/darujme-stats');
|
const resp = await fetch('https://ha.nolog.cz/fundraising/darujme-stats');
|
||||||
const data = await resp.json();
|
const data = await resp.json();
|
||||||
progressBar.setAttribute('style', '--filled: ' + Math.round(data.projectStats.collectedAmountEstimate.cents / 18000000 * 100) + '%')
|
progressBar.setAttribute('style', '--filled: ' + Math.round(data.projectStats.collectedAmountEstimate.cents / 18000000 * 100) + '%')
|
||||||
const amount = Math.round(data.projectStats.collectedAmountEstimate.cents / 100).toLocaleString('cs-CZ');
|
const v = Math.round(data.projectStats.collectedAmountEstimate.cents / 100).toLocaleString('cs-CZ');
|
||||||
amount.textContent = "vybráno " + amount + " Kč z 180 000 Kč";
|
amount.textContent = "vybráno " + v + " Kč z 180 000 Kč";
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue