-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 1.62 KB
/
Copy pathindex.html
File metadata and controls
45 lines (45 loc) · 1.62 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>WASM web agent</title>
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<main>
<h1>WASM web agent</h1>
<p>
The page imports the generated module from <code>/pkg</code>,
initializes the WASM runtime, and connects to <code>/ws</code>.
</p>
<p>
Open the browser devtools as well if you want to inspect the module logs
from <code>tracing-wasm</code>.
</p>
<div class="agent-card">
<strong>Web Agent Identity</strong>
<div id="agent-status">Waiting for websocket handshake...</div>
<code id="agent-id">unassigned</code>
</div>
<p>
<label for="module-select">Workflow module</label>
<select id="module-select"></select>
<button id="run-module-button" type="button">Run module</button>
</p>
<video id="video-preview" autoplay playsinline muted hidden></video>
<canvas id="video-output-canvas" hidden></canvas>
<div class="status-grid">
<textarea id="module-output" readonly
>Workflow module not running.</textarea>
<textarea id="ml-debug-output" readonly
>ML model debugging output not available.</textarea>
<textarea id="sensor-output" readonly
>Waiting for device sensor data...</textarea>
</div>
<pre id="log">Booting...</pre>
</main>
<script type="module" src="/app.js"></script>
</body>
</html>