count users without gamers
This commit is contained in:
parent
ef9aa3d3df
commit
faf6ec0c35
3 changed files with 32 additions and 1 deletions
|
|
@ -286,6 +286,7 @@
|
|||
|
||||
<div class="stats">
|
||||
Всего пользователей: <strong id="total-users">0</strong> (сегодня: <strong id="users-today">0</strong>)<br>
|
||||
👤 Пользователей без игроков: <strong id="users-without-gamers">0</strong> (<strong id="users-without-gamers-percent">0</strong>%)<br>
|
||||
Кол-во игроков: <strong id="total-gamers">0</strong> (сегодня: <strong id="gamers-today">0</strong>)
|
||||
</div>
|
||||
|
||||
|
|
@ -353,6 +354,8 @@
|
|||
users = data.users;
|
||||
document.getElementById('total-users').textContent = data.total_users;
|
||||
document.getElementById('users-today').textContent = data.users_today || 0;
|
||||
document.getElementById('users-without-gamers').textContent = data.users_without_gamers || 0;
|
||||
document.getElementById('users-without-gamers-percent').textContent = data.users_without_gamers_percent || 0;
|
||||
document.getElementById('total-gamers').textContent = data.total_gamers;
|
||||
document.getElementById('gamers-today').textContent = data.gamers_today || 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue