]>
Commit | Line | Data |
---|---|---|
65e27ddd JM |
1 | <html> |
2 | ||
3 | <body onload="draw();"> | |
4 | ||
5 | VNC Window:<br> | |
6 | ||
7 | <canvas id="vnc" width="800" height="600"> | |
8 | Canvas not supported. | |
9 | </canvas> | |
10 | ||
11 | <br><br> | |
12 | Debug: | |
13 | <div id="debug"></div> | |
14 | ||
15 | </body> | |
16 | ||
17 | <script src="include/mootools.js"></script> | |
18 | <script src="include/mootools-more.js"></script> | |
19 | <script src="vnc.js"></script> | |
20 | ||
21 | <script type="text/javascript"> | |
22 | function connect() { | |
23 | debug(">> connect"); | |
24 | var uri = new URI(window.location); | |
25 | var host = uri.getData("host"); | |
26 | var port = uri.getData("port"); | |
27 | if ((!host) || (!port)) { | |
28 | debug("must set host and port"); | |
29 | return; | |
30 | } | |
31 | init_ws(host, port); | |
32 | debug("<< connect"); | |
33 | } | |
34 | ||
35 | window.onload = connect(); | |
36 | </script> | |
37 | ||
38 | </html> |