summaryrefslogtreecommitdiff
path: root/kvmd/web/index.html
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-15 11:21:44 +0300
committerDevaev Maxim <[email protected]>2018-07-15 11:21:44 +0300
commit999d3f245710013425cc2413f81d900ec1fc2f24 (patch)
tree07bf519cab5da1b522e8146a362724762c8a3e7c /kvmd/web/index.html
parent4122ecdb55abae00f2168d27df5f88527fc02341 (diff)
big js refactoring
Diffstat (limited to 'kvmd/web/index.html')
-rw-r--r--kvmd/web/index.html26
1 files changed, 16 insertions, 10 deletions
diff --git a/kvmd/web/index.html b/kvmd/web/index.html
index 3fec1ae3..76c94c2f 100644
--- a/kvmd/web/index.html
+++ b/kvmd/web/index.html
@@ -6,24 +6,30 @@
<link rel="stylesheet" href="css/main.css">
</head>
-<script src="js/kvmd.js"></script>
-<script>window.onload = runKvmdUi;</script>
+<script src="js/tools.js"></script>
+<script src="js/stream.js"></script>
+<script src="js/atx.js"></script>
+<script src="js/keyboard.js"></script>
+<script src="js/mouse.js"></script>
+<script src="js/hid.js"></script>
+<script src="js/session.js"></script>
+<script src="js/main.js"></script>
+
+<script>window.onload = main;</script>
<body>
<div id="stream-box">
- <img src="/streamer/?action=stream" id="stream-image" class="stream-image-off" alt="Loading..."/>
+ <img src="/streamer/?action=stream" id="stream-image" class="stream-image-inactive" alt="Loading..."/>
<hr>
<table cellpadding="0" cellspacing="0" style="border: none;">
<tr>
- <td><div id="screen-led" class="led-off">&#128437;</div></td>
+ <td><div id="stream-led" class="led-off">&#128437;</div></td>
<td>&nbsp;</td>
<td><div id="hid-keyboard-led" class="led-off">&#9000;</div></td>
<td>&nbsp;</td>
<td><div id="hid-mouse-led" class="led-off">&#128432;</div></td>
<td>&nbsp;&nbsp;</td>
- <td><button id="reset-stream-button" type="button" title="Click here if your video looks like crap" onclick="clickResetStreamButton(this);">Reset stream</button></td>
- <td>&nbsp;&nbsp;</td>
- <td><div id="session-status">Not connected yet...</div></td>
+ <td><button id="stream-reset-button" type="button" title="Click here if your video looks like crap" onclick="stream.clickResetButton(this);">Reset stream</button></td>
</tr>
</table>
</div>
@@ -35,9 +41,9 @@
<td>&nbsp;</td>
<!--<td><div id="msd-led" class="led-off">&#9991;</div></td>
<td>&nbsp;</td>-->
- <td><button id="atx-power-button" type="button" title="Click hardware power button" onclick="clickAtxButton(this);">Power</button></td>
- <td><button id="atx-power-button-long" type="button" title="Click hardware power button (long press)" onclick="clickAtxButton(this);">Power (long)</button></td>
- <td><button id="atx-reset-button" type="button" title="Click to force reset" onclick="clickAtxButton(this);">Reset</button></td>
+ <td><button id="atx-power-button" type="button" title="Click hardware power button" onclick="atx.clickButton(this);">Power</button></td>
+ <td><button id="atx-power-button-long" type="button" title="Click hardware power button (long press)" onclick="atx.clickButton(this);">Power (long)</button></td>
+ <td><button id="atx-reset-button" type="button" title="Click to force reset" onclick="atx.clickButton(this);">Reset</button></td>
</tr>
</table>
</body>