Move DOM manipulation into include/default_controls.js and update vnc.html to use it. Add an example vnc_auto.html which automatically connects using parameters from the query string and doesn't use default_controls.js. Reorder functions in vnc.js to put external interface functions at the top of the RFB namespace.
23 lines
484 B
HTML
23 lines
484 B
HTML
<!--
|
|
noVNC example: simple example using default controls
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title>VNC Client</title>
|
|
<link rel="stylesheet" href="include/plain.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id='vnc'>Loading</div>
|
|
</body>
|
|
|
|
<script src="vnc.js"></script>
|
|
<script src="include/default_controls.js"></script>
|
|
<script>
|
|
window.onload = function () {
|
|
DefaultControls.load('vnc');
|
|
RFB.load();
|
|
}
|
|
</script>
|
|
</html>
|