Spaces:
Running
Running
File size: 1,073 Bytes
2f05ad7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bank Status Dashboard</title>
<style>
body { font-family: Arial, sans-serif; }
#dashboard { margin: 20px; padding: 20px; border: 1px solid #ddd; }
.value { font-size: 24px; font-weight: bold; color: #333; }
</style>
</head>
<body>
<div id="dashboard">
<h2>Bank Status</h2>
<p>Total Earnings: <span id="total_earnings" class="value">0</span> Credits</p>
<p>Bank Balance: <span id="bank_balance" class="value">0</span> Credits</p>
</div>
<script>
async function fetchBankStatus() {
const response = await fetch('/api/bank_status');
const data = await response.json();
document.getElementById('total_earnings').innerText = data.total_earnings;
document.getElementById('bank_balance').innerText = data.bank_balance;
}
// Lade die Daten alle 5 Sekunden neu
setInterval(fetchBankStatus, 5000);
fetchBankStatus();
</script>
</body>
</html>
|