playground:playground
PlayGround
| username | times_paid | tokens_in_treasury |
|---|---|---|
| test | 10 | 690 |
| aboba | 11 |
| (null) | (null) |
|---|
<script> fetch('/bot/nalog.json')
.then(response => response.json())
.then(data => {
let table = '<table border="1"><tr><th>Имя</th><th>Очки</th></tr>';
data.forEach(user => {
table += `<tr><td>${user.name}</td><td>${user.points}</td></tr>`;
});
table += '</table>';
document.getElementById('users-table').innerHTML = table;
})
.catch(err => {
document.getElementById('users-table').innerHTML = 'Ошибка загрузки данных';
console.error(err);
});
</script>
playground/playground.txt · Последнее изменение: — Дима Виглес
