-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (38 loc) · 1.4 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sudo3DSCapture</title>
<script type="text/javascript" src="./3dscapture.js"></script>
<link rel="stylesheet" href="./3dscapture.css?1">
</head>
<body>
<h1>Sudo3DSCapture</h1>
<!-- Debug -->
<div id="debug-info">
<pre id="output"></pre>
<pre id="status"></pre>
<div id="hexout"></div>
</div>
<!-- Buttons -->
<div id="buttons">
<button onclick="pairUSB()">Pair</button>
<button onclick="queryUSB()">Query</button>
<button onclick="startCapture()">Start</button>
<button onclick="stopCapture()">Stop</button>
<button onclick="toggleSplitScreen()">Toggle Split</button>
<span>Frame Delay: </span>
<input onchange="setFrameDelay(this.value); stopCapture(); startCapture();" type="number" min="0" max="500" id="frame_delay_select" value="1">
</div>
<div id="canvas-container" style="display: none;">
<canvas id="screen" width="240" height="720"></canvas>
</div>
<div id="split-canvas-container" style="display: grid;">
<canvas id="topscreen" width="400" height="240"></canvas>
<canvas id="bottomscreen" width="320" height="240"></canvas>
</div>
<script>
document.getElementById("frame_delay_select").value = pollFrequency;
</script>
</body>
</html>