Added intial plugin
This commit is contained in:
72
public/index.html
Normal file
72
public/index.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Project CARS UDP Telemetry</title>
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div>
|
||||
<h1>Project CARS UDP Telemetry</h1>
|
||||
<p id="status">Waiting for UDP packets on port 5606</p>
|
||||
</div>
|
||||
<nav class="page-nav" aria-label="Pages">
|
||||
<a href="/">Packet Data</a>
|
||||
<a href="/overview.html">Race Overview</a>
|
||||
<a href="/swagger.html">API Docs</a>
|
||||
</nav>
|
||||
<div class="stat">
|
||||
<span>Packets</span>
|
||||
<strong id="packet-count">0</strong>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<details class="panel" open>
|
||||
<summary class="panel-header">
|
||||
<h2>Latest Packets</h2>
|
||||
</summary>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Packet #</th>
|
||||
<th>Version</th>
|
||||
<th>Size</th>
|
||||
<th>Received</th>
|
||||
<th>Source</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<div id="packet-sections" class="packet-sections"></div>
|
||||
|
||||
<details class="panel">
|
||||
<summary class="panel-header">
|
||||
<h2>Recent Packets</h2>
|
||||
</summary>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Type</th>
|
||||
<th>Packet #</th>
|
||||
<th>Bytes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="recent-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
</main>
|
||||
|
||||
<script src="/app.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user