Files
pitts-touchscreen/fsi_touch_05042021/www/debug_simple.html

26 lines
503 B
HTML

<!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>