mirror of
https://github.com/ivabus/www
synced 2024-11-25 20:35:06 +03:00
Merge pull request #80 from teaxyz/78-thousands-separator-comma
Use normalized number formatting
This commit is contained in:
commit
a5bcd9ff66
1 changed files with 9 additions and 8 deletions
|
@ -121,16 +121,17 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
|||
fetch('https://app.tea.xyz/api/signups')
|
||||
.then(res => res.json())
|
||||
.then(res => {
|
||||
const signups = res.signups ? res.signups.toLocaleString() : ""
|
||||
if (!(localStorage['signup'] || '').match(/:::/)) {
|
||||
$('#count').html(res.signups)
|
||||
$('#count').html(signups)
|
||||
}
|
||||
$('#count1').html(res.signups)
|
||||
$('#count2').html(res.signups)
|
||||
$('#count3').html(res.signups)
|
||||
$('#count4').html(res.signups)
|
||||
$('#count5').html(res.signups)
|
||||
$('#count6').html(res.signups)
|
||||
$('#count7').html(res.signups)
|
||||
$('#count1').html(signups)
|
||||
$('#count2').html(signups)
|
||||
$('#count3').html(signups)
|
||||
$('#count4').html(signups)
|
||||
$('#count5').html(signups)
|
||||
$('#count6').html(signups)
|
||||
$('#count7').html(signups)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
|
Loading…
Reference in a new issue