proper functoin calls for faction data

This commit is contained in:
2025-11-26 17:04:15 -05:00
parent 1dde34d266
commit 79d0012d66
7 changed files with 142 additions and 62 deletions

View File

@@ -1,24 +1,28 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>War Dashboard</title>
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<div class="container">
<h1>War Dashboard</h1>
<h1>War Dashboard</h1>
<div class="faction-section">
<h2>Enemy Faction</h2>
<input type="number" id="enemyId" placeholder="Enemy Faction ID">
<input type="number" id="refreshInterval" placeholder="Refresh Interval (sec)">
<button onclick="updateEnemy()">Refresh Enemy</button>
</div>
<div>
<h2>Enemy Faction</h2>
<button onclick="updateEnemy()">Refresh Enemy</button>
</div>
<div class="faction-section">
<h2>Friendly Faction</h2>
<input type="number" id="friendlyId" placeholder="Friendly Faction ID">
<button onclick="updateFriendly()">Refresh Friendly</button>
</div>
</div>
<div>
<h2>Friendly Faction</h2>
<button onclick="updateFriendly()">Refresh Friendly</button>
</div>
<script src="/static/dashboard.js"></script>
<script src="/static/dashboard.js"></script>
</body>
</html>