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 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>
|
||||
|
|
Loading…
Reference in a new issue