vnc.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!--
  5. noVNC example: simple example using default UI
  6. Copyright (C) 2012 Joel Martin
  7. Copyright (C) 2013 Samuel Mannehed for Cendio AB
  8. noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
  9. This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
  10. Connect parameters are provided in query string:
  11. http://example.com/?host=HOST&port=PORT&encrypt=1&true_color=1
  12. -->
  13. <title>noVNC</title>
  14. <meta charset="utf-8">
  15. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
  16. Remove this if you use the .htaccess -->
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  18. <!-- Apple iOS Safari settings -->
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  20. <meta name="apple-mobile-web-app-capable" content="yes" />
  21. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  22. <!-- App Start Icon -->
  23. <link rel="apple-touch-startup-image" href="images/screen_320x460.png" />
  24. <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
  25. <link rel="apple-touch-icon" href="images/screen_57x57.png">
  26. <!--
  27. <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" />
  28. -->
  29. <!-- Stylesheets -->
  30. <link rel="stylesheet" href="include/base.css" />
  31. <link rel="alternate stylesheet" href="include/black.css" TITLE="Black" />
  32. <link rel="alternate stylesheet" href="include/blue.css" TITLE="Blue" />
  33. <!--
  34. <script type='text/javascript'
  35. src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
  36. -->
  37. </head>
  38. <body>
  39. <div id="noVNC-control-bar" class="noVNC_status_normal">
  40. <!--noVNC Mobile Device only Buttons-->
  41. <div class="noVNC-buttons-left">
  42. <input type="image" alt="viewport drag" src="images/drag.png"
  43. id="noVNC_view_drag_button" class="noVNC_status_button"
  44. title="Move/Drag Viewport">
  45. <div id="noVNC_mobile_buttons">
  46. <input type="image" alt="No mousebutton" src="images/mouse_none.png"
  47. id="noVNC_mouse_button0" class="noVNC_status_button">
  48. <input type="image" alt="Left mousebutton" src="images/mouse_left.png"
  49. id="noVNC_mouse_button1" class="noVNC_status_button">
  50. <input type="image" alt="Middle mousebutton" src="images/mouse_middle.png"
  51. id="noVNC_mouse_button2" class="noVNC_status_button">
  52. <input type="image" alt="Right mousebutton" src="images/mouse_right.png"
  53. id="noVNC_mouse_button4" class="noVNC_status_button">
  54. <input type="image" alt="Keyboard" src="images/keyboard.png"
  55. id="showKeyboard" class="noVNC_status_button"
  56. value="Keyboard" title="Show Keyboard"/>
  57. <!-- Note that Google Chrome on Android doesn't respect any of these,
  58. html attributes which attempt to disable text suggestions on the
  59. on-screen keyboard. Let's hope Chrome implements the ime-mode
  60. style for example -->
  61. <textarea id="keyboardinput" autocapitalize="off"
  62. autocorrect="off" autocomplete="off" spellcheck="false"
  63. mozactionhint="Enter"></textarea>
  64. <div id="noVNC_extra_keys">
  65. <input type="image" alt="Extra keys" src="images/showextrakeys.png"
  66. id="showExtraKeysButton" class="noVNC_status_button">
  67. <input type="image" alt="Ctrl" src="images/ctrl.png"
  68. id="toggleCtrlButton" class="noVNC_status_button">
  69. <input type="image" alt="Alt" src="images/alt.png"
  70. id="toggleAltButton" class="noVNC_status_button">
  71. <input type="image" alt="Tab" src="images/tab.png"
  72. id="sendTabButton" class="noVNC_status_button">
  73. <input type="image" alt="Esc" src="images/esc.png"
  74. id="sendEscButton" class="noVNC_status_button">
  75. </div>
  76. </div>
  77. </div>
  78. <div id="noVNC_status"></div>
  79. <!--noVNC Buttons-->
  80. <div class="noVNC-buttons-right">
  81. <input type="image" alt="Ctrl+Alt+Del" src="images/ctrlaltdel.png"
  82. id="sendCtrlAltDelButton" class="noVNC_status_button"
  83. title="Send Ctrl-Alt-Del" />
  84. <input type="image" alt="Shutdown/Reboot" src="images/power.png"
  85. id="xvpButton" class="noVNC_status_button"
  86. title="Shutdown/Reboot..." />
  87. <input type="image" alt="Clipboard" src="images/clipboard.png"
  88. id="clipboardButton" class="noVNC_status_button"
  89. title="Clipboard" />
  90. <input type="image" alt="Fullscreen" src="images/fullscreen.png"
  91. id="fullscreenButton" class="noVNC_status_button"
  92. title="Fullscreen" />
  93. <input type="image" alt="Settings" src="images/settings.png"
  94. id="settingsButton" class="noVNC_status_button"
  95. title="Settings" />
  96. <input type="image" alt="Connect" src="images/connect.png"
  97. id="connectButton" class="noVNC_status_button"
  98. title="Connect" />
  99. <input type="image" alt="Disconnect" src="images/disconnect.png"
  100. id="disconnectButton" class="noVNC_status_button"
  101. title="Disconnect" />
  102. </div>
  103. <!-- Description Panel -->
  104. <!-- Shown by default when hosted at for kanaka.github.com -->
  105. <div id="noVNC_description" class="">
  106. noVNC is a browser based VNC client implemented using HTML5 Canvas
  107. and WebSockets. You will either need a VNC server with WebSockets
  108. support (such as <a href="http://libvncserver.sourceforge.net/">libvncserver</a>)
  109. or you will need to use
  110. <a href="https://github.com/kanaka/websockify">websockify</a>
  111. to bridge between your browser and VNC server. See the noVNC
  112. <a href="https://github.com/kanaka/noVNC">README</a>
  113. and <a href="http://kanaka.github.com/noVNC">website</a>
  114. for more information.
  115. <br />
  116. <input id="descriptionButton" type="button" value="Close">
  117. </div>
  118. <!-- Popup Status -->
  119. <div id="noVNC_popup_status" class="">
  120. </div>
  121. <!-- Clipboard Panel -->
  122. <div id="noVNC_clipboard" class="triangle-right top">
  123. <textarea id="noVNC_clipboard_text" rows=5>
  124. </textarea>
  125. <br />
  126. <input id="noVNC_clipboard_clear_button" type="button"
  127. value="Clear">
  128. </div>
  129. <!-- XVP Shutdown/Reboot Panel -->
  130. <div id="noVNC_xvp" class="triangle-right top">
  131. <span id="noVNC_xvp_menu">
  132. <input type="button" id="xvpShutdownButton" value="Shutdown" />
  133. <input type="button" id="xvpRebootButton" value="Reboot" />
  134. <input type="button" id="xvpResetButton" value="Reset" />
  135. </span>
  136. </div>
  137. <!-- Settings Panel -->
  138. <div id="noVNC_settings" class="triangle-right top">
  139. <span id="noVNC_settings_menu">
  140. <ul>
  141. <li><input id="noVNC_encrypt" type="checkbox"> Encrypt</li>
  142. <li><input id="noVNC_true_color" type="checkbox" checked> True Color</li>
  143. <li><input id="noVNC_cursor" type="checkbox"> Local Cursor</li>
  144. <li><input id="noVNC_clip" type="checkbox"> Clip to Window</li>
  145. <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li>
  146. <li><input id="noVNC_view_only" type="checkbox"> View Only</li>
  147. <hr>
  148. <li><input id="noVNC_path" type="input" value="websockify"> Path</li>
  149. <li><label>
  150. <select id="noVNC_resize" name="vncResize">
  151. <option value="off">None</option>
  152. <option value="scale">Local Scaling</option>
  153. <option value="downscale">Local Downscaling</option>
  154. <option value="remote">Remote Resizing</option>
  155. </select> Scaling Mode</label>
  156. </li>
  157. <li><input id="noVNC_repeaterID" type="input" value=""> Repeater ID</li>
  158. <hr>
  159. <!-- Stylesheet selection dropdown -->
  160. <li><label><strong>Style: </strong>
  161. <select id="noVNC_stylesheet" name="vncStyle">
  162. <option value="default">default</option>
  163. </select></label>
  164. </li>
  165. <!-- Logging selection dropdown -->
  166. <li><label><strong>Logging: </strong>
  167. <select id="noVNC_logging" name="vncLogging">
  168. </select></label>
  169. </li>
  170. <hr>
  171. <li><input type="button" id="noVNC_apply" value="Apply"></li>
  172. </ul>
  173. </span>
  174. </div>
  175. <!-- Connection Panel -->
  176. <div id="noVNC_controls" class="triangle-right top">
  177. <ul>
  178. <li><label><strong>Host: </strong><input id="noVNC_host" /></label></li>
  179. <li><label><strong>Port: </strong><input id="noVNC_port" /></label></li>
  180. <li><label><strong>Password: </strong><input id="noVNC_password" type="password" /></label></li>
  181. <li><input id="noVNC_connect_button" type="button" value="Connect"></li>
  182. </ul>
  183. </div>
  184. </div> <!-- End of noVNC-control-bar -->
  185. <div id="noVNC_screen">
  186. <h1 id="noVNC_logo"><span>no</span><br />VNC</h1>
  187. <!-- HTML5 Canvas -->
  188. <div id="noVNC_container">
  189. <canvas id="noVNC_canvas" width="0" height="0">
  190. Canvas not supported.
  191. </canvas>
  192. </div>
  193. </div>
  194. <script src="include/util.js"></script>
  195. <script src="include/ui.js"></script>
  196. </body>
  197. </html>