initial commit with all the stuff
This commit is contained in:
25
2B+Software/www/debug_simple.html
Normal file
25
2B+Software/www/debug_simple.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<div><h2 id="header"></h2></div>
|
||||
<hr>
|
||||
<pre id="log"></pre>
|
||||
|
||||
<script>
|
||||
document.getElementById('header').textContent = "Host: " + window.location.hostname;
|
||||
|
||||
// setup websocket with callbacks
|
||||
var ws = new WebSocket('ws://' + window.location.hostname + ':88/');
|
||||
|
||||
ws.onopen = function() {
|
||||
|
||||
};
|
||||
|
||||
ws.onclose = function() {
|
||||
close();
|
||||
};
|
||||
|
||||
ws.onmessage = function(event) {
|
||||
document.getElementById('log').textContent += event.data + "\n";
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user