Commit f7ec5b2c authored by Joel Martin's avatar Joel Martin

Rename default_controls.js to ui.js.

And DefaultControls to UI.
parent e66f3f89
...@@ -142,19 +142,19 @@ There a few reasons why a proxy is required: ...@@ -142,19 +142,19 @@ There a few reasons why a proxy is required:
The client is designed to be easily integrated with existing web The client is designed to be easily integrated with existing web
structure and style. structure and style.
At a minimum you must include the `vnc.js` and `default_controls.js` At a minimum you must include the `vnc.js` and `ui.js` scripts and
scripts and call DefaultControls.load(). For example: call UI.load(). For example:
<head> <head>
<script src='include/vnc.js'></script> <script src='include/vnc.js'></script>
<script src="include/default_controls.js"></script> <script src="include/ui.js"></script>
</head> </head>
<body> <body>
<div id='vnc'>Loading</div> <div id='vnc'>Loading</div>
<script> <script>
window.onload = function () { window.onload = function () {
DefaultControls.load('vnc'); UI.load('vnc');
} }
</script> </script>
</body> </body>
......
<html> <html>
<!-- <!--
noVNC example: simple example using default controls noVNC example: simple example using default UI
Copyright (C) 2010 Joel Martin Copyright (C) 2010 Joel Martin
Licensed under LGPL-3 (see LICENSE.txt) Licensed under LGPL-3 (see LICENSE.txt)
--> -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
--> -->
<script src="include/vnc.js"></script> <script src="include/vnc.js"></script>
<script src="include/default_controls.js"></script> <script src="include/ui.js"></script>
</head> </head>
<body> <body>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<script> <script>
window.onload = function () { window.onload = function () {
DefaultControls.load('vnc'); UI.load('vnc');
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment