websockify/vnc.html

44 lines
1.1 KiB
HTML

<html>
<head><title>VNC Client</title></head>
<body onload="draw();">
VNC Window:<br>
<canvas id="vnc" width="800" height="600">
Canvas not supported.
</canvas>
<br>
Debug:<br>
<textarea id="debug" style="font-size: 9;" cols=80 rows=25></textarea>
</body>
<script src="include/mootools.js"></script>
<script src="include/mootools-more.js"></script>
<script src="include/base64a.js"></script>
<script src="include/des2.js"></script>
<script src="canvas.js"></script>
<script src="vnc.js"></script>
<script>
function connect() {
debug(">> connect");
var uri = new URI(window.location);
var host = uri.getData("host");
var port = uri.getData("port");
if ((!host) || (!port)) {
debug("must set host and port");
return;
}
RFB.init_ws(host, port);
debug("<< connect");
}
window.onload = function() {
connect();
}
</script>
</html>