vnc.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. <!DOCTYPE html>
  2. <html lang="en" class="noVNC_loading">
  3. <head>
  4. <!--
  5. noVNC example: simple example using default UI
  6. Copyright (C) 2019 The noVNC Authors
  7. noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
  8. This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
  9. Connect parameters are provided in query string:
  10. http://example.com/?host=HOST&port=PORT&encrypt=1
  11. or the fragment:
  12. http://example.com/#host=HOST&port=PORT&encrypt=1
  13. -->
  14. <title>noVNC</title>
  15. <!-- <link rel="icon" type="image/x-icon" href="app/images/icons/novnc.ico"> -->
  16. <!-- Apple iOS Safari settings -->
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  18. <meta name="apple-mobile-web-app-capable" content="yes">
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  20. <!-- <link rel="apple-touch-icon" sizes="40x40" type="image/png" href="app/images/icons/novnc-ios-40.png">
  21. <link rel="apple-touch-icon" sizes="58x58" type="image/png" href="app/images/icons/novnc-ios-58.png">
  22. <link rel="apple-touch-icon" sizes="80x80" type="image/png" href="app/images/icons/novnc-ios-80.png">
  23. <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-ios-120.png">
  24. <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-ios-152.png">
  25. <link rel="apple-touch-icon" sizes="167x167" type="image/png" href="app/images/icons/novnc-ios-167.png">
  26. <link rel="apple-touch-icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-ios-60.png">
  27. <link rel="apple-touch-icon" sizes="87x87" type="image/png" href="app/images/icons/novnc-ios-87.png">
  28. <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-ios-120.png">
  29. <link rel="apple-touch-icon" sizes="180x180" type="image/png" href="app/images/icons/novnc-ios-180.png"> -->
  30. <!-- Stylesheets -->
  31. <link rel="stylesheet" href="app/styles/base.css">
  32. <link rel="stylesheet" href="app/styles/input.css">
  33. <!-- Images that will later appear via CSS -->
  34. <link rel="preload" as="image" href="app/images/info.svg">
  35. <link rel="preload" as="image" href="app/images/error.svg">
  36. <link rel="preload" as="image" href="app/images/warning.svg">
  37. <script type="module" crossorigin="anonymous" src="app/error-handler.js"></script>
  38. <script type="module" crossorigin="anonymous" src="app/ui.js"></script>
  39. </head>
  40. <body>
  41. <div id="noVNC_fallback_error" class="noVNC_center">
  42. <div>
  43. <div>noVNC encountered an error:</div>
  44. <br>
  45. <div id="noVNC_fallback_errormsg"></div>
  46. </div>
  47. </div>
  48. <!-- noVNC Control Bar -->
  49. <div id="noVNC_control_bar_anchor" class="noVNC_vcenter">
  50. <div id="noVNC_control_bar">
  51. <div id="noVNC_control_bar_handle" title="Hide/Show the control bar"><div></div></div>
  52. <div class="noVNC_scroll">
  53. <!-- <h1 class="noVNC_logo" translate="no"><span>no</span><br>VNC</h1> -->
  54. <hr>
  55. <!-- Drag/Pan the viewport -->
  56. <input type="image" alt="Drag" src="app/images/drag.svg"
  57. id="noVNC_view_drag_button" class="noVNC_button noVNC_hidden"
  58. title="Move/Drag Viewport">
  59. <!--noVNC Touch Device only buttons-->
  60. <div id="noVNC_mobile_buttons">
  61. <input type="image" alt="Keyboard" src="app/images/keyboard.svg"
  62. id="noVNC_keyboard_button" class="noVNC_button" title="Show Keyboard">
  63. </div>
  64. <!-- Extra manual keys -->
  65. <input type="image" alt="Extra keys" src="app/images/toggleextrakeys.svg"
  66. id="noVNC_toggle_extra_keys_button" class="noVNC_button"
  67. title="Show Extra Keys">
  68. <div class="noVNC_vcenter">
  69. <div id="noVNC_modifiers" class="noVNC_panel">
  70. <input type="image" alt="Ctrl" src="app/images/ctrl.svg"
  71. id="noVNC_toggle_ctrl_button" class="noVNC_button"
  72. title="Toggle Ctrl">
  73. <input type="image" alt="Alt" src="app/images/alt.svg"
  74. id="noVNC_toggle_alt_button" class="noVNC_button"
  75. title="Toggle Alt">
  76. <input type="image" alt="Windows" src="app/images/windows.svg"
  77. id="noVNC_toggle_windows_button" class="noVNC_button"
  78. title="Toggle Windows">
  79. <input type="image" alt="Tab" src="app/images/tab.svg"
  80. id="noVNC_send_tab_button" class="noVNC_button"
  81. title="Send Tab">
  82. <input type="image" alt="Esc" src="app/images/esc.svg"
  83. id="noVNC_send_esc_button" class="noVNC_button"
  84. title="Send Escape">
  85. <input type="image" alt="Ctrl+Alt+Del" src="app/images/ctrlaltdel.svg"
  86. id="noVNC_send_ctrl_alt_del_button" class="noVNC_button"
  87. title="Send Ctrl-Alt-Del">
  88. </div>
  89. </div>
  90. <!-- Shutdown/Reboot -->
  91. <input type="image" alt="Shutdown/Reboot" src="app/images/power.svg"
  92. id="noVNC_power_button" class="noVNC_button"
  93. title="Shutdown/Reboot...">
  94. <div class="noVNC_vcenter">
  95. <div id="noVNC_power" class="noVNC_panel">
  96. <div class="noVNC_heading">
  97. <img alt="" src="app/images/power.svg"> Power
  98. </div>
  99. <input type="button" id="noVNC_shutdown_button" value="Shutdown">
  100. <input type="button" id="noVNC_reboot_button" value="Reboot">
  101. <input type="button" id="noVNC_reset_button" value="Reset">
  102. </div>
  103. </div>
  104. <!-- Clipboard -->
  105. <input type="image" alt="Clipboard" src="app/images/clipboard.svg"
  106. id="noVNC_clipboard_button" class="noVNC_button"
  107. title="Clipboard">
  108. <div class="noVNC_vcenter">
  109. <div id="noVNC_clipboard" class="noVNC_panel">
  110. <div class="noVNC_heading">
  111. <img alt="" src="app/images/clipboard.svg"> Clipboard
  112. </div>
  113. <p class="noVNC_subheading">
  114. Edit clipboard content in the textarea below.
  115. </p>
  116. <textarea id="noVNC_clipboard_text" rows=5></textarea>
  117. </div>
  118. </div>
  119. <!-- Toggle fullscreen -->
  120. <input type="image" alt="Full Screen" src="app/images/fullscreen.svg"
  121. id="noVNC_fullscreen_button" class="noVNC_button noVNC_hidden"
  122. title="Full Screen">
  123. <!-- Settings -->
  124. <input type="image" alt="Settings" src="app/images/settings.svg"
  125. id="noVNC_settings_button" class="noVNC_button"
  126. title="Settings">
  127. <div class="noVNC_vcenter">
  128. <div id="noVNC_settings" class="noVNC_panel">
  129. <div class="noVNC_heading">
  130. <img alt="" src="app/images/settings.svg"> Settings
  131. </div>
  132. <ul>
  133. <li>
  134. <label><input id="noVNC_setting_shared" type="checkbox"> Shared Mode</label>
  135. </li>
  136. <li>
  137. <label><input id="noVNC_setting_view_only" type="checkbox"> View Only</label>
  138. </li>
  139. <li><hr></li>
  140. <li>
  141. <label><input id="noVNC_setting_view_clip" type="checkbox"> Clip to Window</label>
  142. </li>
  143. <li>
  144. <label for="noVNC_setting_resize">Scaling Mode:</label>
  145. <select id="noVNC_setting_resize" name="vncResize">
  146. <option value="off">None</option>
  147. <option value="scale">Local Scaling</option>
  148. <option value="remote">Remote Resizing</option>
  149. </select>
  150. </li>
  151. <li><hr></li>
  152. <li>
  153. <div class="noVNC_expander">Advanced</div>
  154. <div><ul>
  155. <li>
  156. <label for="noVNC_setting_quality">Quality:</label>
  157. <input id="noVNC_setting_quality" type="range" min="0" max="9" value="6">
  158. </li>
  159. <li>
  160. <label for="noVNC_setting_compression">Compression level:</label>
  161. <input id="noVNC_setting_compression" type="range" min="0" max="9" value="2">
  162. </li>
  163. <li><hr></li>
  164. <li>
  165. <label for="noVNC_setting_repeaterID">Repeater ID:</label>
  166. <input id="noVNC_setting_repeaterID" type="text" value="">
  167. </li>
  168. <li>
  169. <div class="noVNC_expander">WebSocket</div>
  170. <div><ul>
  171. <li>
  172. <label><input id="noVNC_setting_encrypt" type="checkbox"> Encrypt</label>
  173. </li>
  174. <li>
  175. <label for="noVNC_setting_host">Host:</label>
  176. <input id="noVNC_setting_host">
  177. </li>
  178. <li>
  179. <label for="noVNC_setting_port">Port:</label>
  180. <input id="noVNC_setting_port" type="number">
  181. </li>
  182. <li>
  183. <label for="noVNC_setting_path">Path:</label>
  184. <input id="noVNC_setting_path" type="text" value="websockify">
  185. </li>
  186. </ul></div>
  187. </li>
  188. <li><hr></li>
  189. <li>
  190. <label><input id="noVNC_setting_reconnect" type="checkbox"> Automatic Reconnect</label>
  191. </li>
  192. <li>
  193. <label for="noVNC_setting_reconnect_delay">Reconnect Delay (ms):</label>
  194. <input id="noVNC_setting_reconnect_delay" type="number">
  195. </li>
  196. <li><hr></li>
  197. <li>
  198. <label><input id="noVNC_setting_show_dot" type="checkbox"> Show Dot when No Cursor</label>
  199. </li>
  200. <li><hr></li>
  201. <!-- Logging selection dropdown -->
  202. <li>
  203. <label>Logging:
  204. <select id="noVNC_setting_logging" name="vncLogging">
  205. </select>
  206. </label>
  207. </li>
  208. </ul></div>
  209. </li>
  210. <li class="noVNC_version_separator"><hr></li>
  211. <li class="noVNC_version_wrapper">
  212. <span>Version:</span>
  213. <span class="noVNC_version"></span>
  214. </li>
  215. </ul>
  216. </div>
  217. </div>
  218. <!-- Connection Controls -->
  219. <input type="image" alt="Disconnect" src="app/images/disconnect.svg"
  220. id="noVNC_disconnect_button" class="noVNC_button"
  221. title="Disconnect">
  222. </div>
  223. </div>
  224. </div> <!-- End of noVNC_control_bar -->
  225. <div id="noVNC_hint_anchor" class="noVNC_vcenter">
  226. <div id="noVNC_control_bar_hint">
  227. </div>
  228. </div>
  229. <!-- Status Dialog -->
  230. <div id="noVNC_status"></div>
  231. <!-- Connect button -->
  232. <div class="noVNC_center">
  233. <div id="noVNC_connect_dlg">
  234. <!-- <p class="noVNC_logo" translate="no"><span>no</span>VNC</p> -->
  235. <div>
  236. <button id="noVNC_connect_button">
  237. <img alt="" src="app/images/connect.svg"> Connect
  238. </button>
  239. </div>
  240. </div>
  241. </div>
  242. <!-- Server Key Verification Dialog -->
  243. <div class="noVNC_center noVNC_connect_layer">
  244. <div id="noVNC_verify_server_dlg" class="noVNC_panel"><form>
  245. <div class="noVNC_heading">
  246. Server identity
  247. </div>
  248. <div>
  249. The server has provided the following identifying information:
  250. </div>
  251. <div id="noVNC_fingerprint_block">
  252. <b>Fingerprint:</b>
  253. <span id="noVNC_fingerprint"></span>
  254. </div>
  255. <div>
  256. Please verify that the information is correct and press
  257. "Approve". Otherwise press "Reject".
  258. </div>
  259. <div>
  260. <input id="noVNC_approve_server_button" type="submit" value="Approve" class="noVNC_submit">
  261. <input id="noVNC_reject_server_button" type="button" value="Reject" class="noVNC_submit">
  262. </div>
  263. </form></div>
  264. </div>
  265. <!-- Password Dialog -->
  266. <div class="noVNC_center noVNC_connect_layer">
  267. <div id="noVNC_credentials_dlg" class="noVNC_panel"><form>
  268. <div class="noVNC_heading">
  269. Credentials
  270. </div>
  271. <div id="noVNC_username_block">
  272. <label for="noVNC_username_input">Username:</label>
  273. <input id="noVNC_username_input">
  274. </div>
  275. <div id="noVNC_password_block">
  276. <label for="noVNC_password_input">Password:</label>
  277. <input id="noVNC_password_input" type="password">
  278. </div>
  279. <div>
  280. <input id="noVNC_credentials_button" type="submit" value="Send Credentials" class="noVNC_submit">
  281. </div>
  282. </form></div>
  283. </div>
  284. <!-- Transition Screens -->
  285. <div id="noVNC_transition">
  286. <div id="noVNC_transition_text"></div>
  287. <div>
  288. <input type="button" id="noVNC_cancel_reconnect_button" value="Cancel" class="noVNC_submit">
  289. </div>
  290. <div class="noVNC_spinner"></div>
  291. </div>
  292. <!-- This is where the RFB elements will attach -->
  293. <div id="noVNC_container">
  294. <!-- Note that Google Chrome on Android doesn't respect any of these,
  295. html attributes which attempt to disable text suggestions on the
  296. on-screen keyboard. Let's hope Chrome implements the ime-mode
  297. style for example -->
  298. <textarea id="noVNC_keyboardinput" autocapitalize="off"
  299. autocomplete="off" spellcheck="false" tabindex="-1"></textarea>
  300. </div>
  301. <audio id="noVNC_bell">
  302. <source src="app/sounds/bell.oga" type="audio/ogg">
  303. <source src="app/sounds/bell.mp3" type="audio/mpeg">
  304. </audio>
  305. </body>
  306. </html>