vnc.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
  2. <html>
  3. <head>
  4. <!--
  5. noVNC example: simple example using default UI
  6. Copyright (C) 2012 Joel Martin
  7. noVNC is licensed under the LGPL-3 (see LICENSE.txt)
  8. This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
  9. -->
  10. <title>noVNC</title>
  11. <meta charset="utf-8">
  12. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
  13. Remove this if you use the .htaccess -->
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  15. <!-- Apple iOS Safari settings -->
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  17. <meta name="apple-mobile-web-app-capable" content="yes" />
  18. <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  19. <!-- App Start Icon -->
  20. <link rel="apple-touch-startup-image" href="images/screen_320x460.png" />
  21. <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
  22. <link rel="apple-touch-icon" href="images/screen_57x57.png">
  23. <!--
  24. <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" />
  25. -->
  26. <!-- Stylesheets -->
  27. <link rel="stylesheet" href="include/base.css" />
  28. <link rel="alternate stylesheet" href="include/black.css" TITLE="Black" />
  29. <link rel="alternate stylesheet" href="include/blue.css" TITLE="Blue" />
  30. <!--
  31. <script type='text/javascript'
  32. src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
  33. -->
  34. <script src="include/vnc.js"></script>
  35. <script src="include/ui.js"></script>
  36. </head>
  37. <body>
  38. <div id="noVNC-control-bar">
  39. <!--noVNC Mobile Device only Buttons-->
  40. <div class="noVNC-buttons-left">
  41. <input type="image" src="images/drag.png"
  42. id="noVNC_view_drag_button" class="noVNC_status_button"
  43. title="Move/Drag Viewport"
  44. onclick="UI.setViewDrag();">
  45. <div id="noVNC_mobile_buttons">
  46. <input type="image" src="images/mouse_none.png"
  47. id="noVNC_mouse_button0" class="noVNC_status_button"
  48. onclick="UI.setMouseButton(1);">
  49. <input type="image" src="images/mouse_left.png"
  50. id="noVNC_mouse_button1" class="noVNC_status_button"
  51. onclick="UI.setMouseButton(2);">
  52. <input type="image" src="images/mouse_middle.png"
  53. id="noVNC_mouse_button2" class="noVNC_status_button"
  54. onclick="UI.setMouseButton(4);">
  55. <input type="image" src="images/mouse_right.png"
  56. id="noVNC_mouse_button4" class="noVNC_status_button"
  57. onclick="UI.setMouseButton(0);">
  58. <input type="image" src="images/keyboard.png"
  59. id="showKeyboard" class="noVNC_status_button"
  60. value="Keyboard" title="Show Keyboard"
  61. onclick="UI.showKeyboard()"/>
  62. <input type="email"
  63. autocapitalize="off" autocorrect="off"
  64. id="keyboardinput" class="noVNC_status_button"
  65. onKeyDown="onKeyDown(event);" onblur="UI.keyInputBlur();"/>
  66. </div>
  67. </div>
  68. <!--noVNC Buttons-->
  69. <div class="noVNC-buttons-right">
  70. <input type="image" src="images/ctrlaltdel.png"
  71. id="sendCtrlAltDelButton" class="noVNC_status_button"
  72. title="Send Ctrl-Alt-Del"
  73. onclick="UI.sendCtrlAltDel();" />
  74. <input type="image" src="images/clipboard.png"
  75. id="clipboardButton" class="noVNC_status_button"
  76. title="Clipboard"
  77. onclick="UI.toggleClipboardPanel();" />
  78. <input type="image" src="images/settings.png"
  79. id="settingsButton" class="noVNC_status_button"
  80. title="Settings"
  81. onclick="UI.toggleSettingsPanel();" />
  82. <input type="image" src="images/connect.png"
  83. id="connectButton" class="noVNC_status_button"
  84. title="Connect"
  85. onclick="UI.toggleConnectPanel()" />
  86. <input type="image" src="images/disconnect.png"
  87. id="disconnectButton" class="noVNC_status_button"
  88. title="Disconnect"
  89. onclick="UI.disconnect()" />
  90. </div>
  91. <!-- Description Panel -->
  92. <!-- Shown by default when hosted at for kanaka.github.com -->
  93. <div id="noVNC_description" style="display:none;" class="">
  94. noVNC is a browser based VNC client implemented using HTML5 Canvas
  95. and WebSockets. You will either need a VNC server with WebSockets
  96. support (such as <a href="http://libvncserver.sourceforge.net/">libvncserver</a>)
  97. or you will need to use
  98. <a href="https://github.com/kanaka/websockify">websockify</a>
  99. to bridge between your browser and VNC server. See the noVNC
  100. <a href="https://github.com/kanaka/noVNC">README</a>
  101. and <a href="http://kanaka.github.com/noVNC">website</a>
  102. for more information.
  103. <br />
  104. <input type="button" value="Close"
  105. onclick="UI.toggleConnectPanel();">
  106. </div>
  107. <!-- Clipboard Panel -->
  108. <div id="noVNC_clipboard" class="triangle-right top">
  109. <textarea id="noVNC_clipboard_text" rows=5
  110. onfocus="UI.displayBlur();" onblur="UI.displayFocus();"
  111. onchange="UI.clipSend();">
  112. </textarea>
  113. <br />
  114. <input id="noVNC_clipboard_clear_button" type="button"
  115. value="Clear" onclick="UI.clipClear();">
  116. </div>
  117. <!-- Settings Panel -->
  118. <div id="noVNC_settings" class="triangle-right top">
  119. <span id="noVNC_settings_menu" onmouseover="UI.displayBlur();"
  120. onmouseout="UI.displayFocus();">
  121. <ul>
  122. <li><input id="noVNC_encrypt" type="checkbox"> Encrypt</li>
  123. <li><input id="noVNC_true_color" type="checkbox" checked> True Color</li>
  124. <li><input id="noVNC_cursor" type="checkbox"> Local Cursor</li>
  125. <li><input id="noVNC_clip" type="checkbox"> Clip to Window</li>
  126. <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li>
  127. <li><input id="noVNC_view_only" type="checkbox"> View Only</li>
  128. <li><input id="noVNC_connectTimeout" type="input"> Connect Timeout (s)</li>
  129. <li><input id="noVNC_path" type="input" value="websockify"> Path</li>
  130. <li><input id="noVNC_repeaterID" type="input" value=""> Repeater ID</li>
  131. <hr>
  132. <!-- Stylesheet selection dropdown -->
  133. <li><label><strong>Style: </strong>
  134. <select id="noVNC_stylesheet" name="vncStyle">
  135. <option value="default">default</option>
  136. </select></label>
  137. </li>
  138. <!-- Logging selection dropdown -->
  139. <li><label><strong>Logging: </strong>
  140. <select id="noVNC_logging" name="vncLogging">
  141. </select></label>
  142. </li>
  143. <hr>
  144. <li><input type="button" id="noVNC_apply" value="Apply"
  145. onclick="UI.settingsApply()"></li>
  146. </ul>
  147. </span>
  148. </div>
  149. <!-- Connection Panel -->
  150. <div id="noVNC_controls" class="triangle-right top">
  151. <ul>
  152. <li><label><strong>Host: </strong><input id="noVNC_host" /></label></li>
  153. <li><label><strong>Port: </strong><input id="noVNC_port" /></label></li>
  154. <li><label><strong>Password: </strong><input id="noVNC_password" type="password" /></label></li>
  155. <li><input id="noVNC_connect_button" type="button" value="Connect" onclick="UI.connect();"></li>
  156. </ul>
  157. </div>
  158. </div> <!-- End of noVNC-control-bar -->
  159. <div id="noVNC_screen">
  160. <div id="noVNC_screen_pad"></div>
  161. <div id="noVNC_status_bar" class="noVNC_status_bar">
  162. <div id="noVNC_status">Loading</div>
  163. </div>
  164. <h1 id="noVNC_logo"><span>no</span><br />VNC</h1>
  165. <!-- HTML5 Canvas -->
  166. <div id="noVNC_container">
  167. <canvas id="noVNC_canvas" width="640px" height="20px">
  168. Canvas not supported.
  169. </canvas>
  170. </div>
  171. </div>
  172. <script>
  173. window.onload = UI.load;
  174. </script>
  175. </body>
  176. </html>