index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <!doctype html>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <title>Virtual x86</title>
  4. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  5. <meta name="description" content="Run KolibriOS, Linux or Windows 98 in your browser">
  6. <script src="build/v86_all.js"></script>
  7. <link rel="stylesheet" href="v86.css">
  8. <div>
  9. <div id="boot_options">
  10. <h4>Select profile</h4>
  11. <table id="oses">
  12. <tr id="start_archlinux"><td><a href="?profile=archlinux">Arch Linux</a> <small>12 MB</small></td><td>
  13. A complete Arch Linux restored from a snapshot, additional files are loaded as needed</td></tr>
  14. <tr id="start_dsl"><td><a href="?profile=dsl">Damn Small Linux</a> <small>50 MB</small></td><td>
  15. Graphical Linux with 2.4 kernel, Firefox 2.0 and more. Takes 1 minute to boot.</td></tr>
  16. <tr id="start_buildroot"><td><a href="?profile=buildroot">Buildroot Linux</a> <small>5.0 MB</small></td><td>
  17. Minimal Linux with busybox, Lua, tests, internet access, ping, telnet and curl. Exchange files through <code>/mnt/</code>.</td></tr>
  18. <tr id="start_reactos"><td><a href="?profile=reactos">ReactOS</a> <small>18 MB</small></td><td>
  19. Windows-compatible OS. Restored from snapshot</td></tr>
  20. <tr id="start_windows2000"><td><a href="?profile=windows2000">Windows 2000</a> <small>22 MB</small></td><td>
  21. Including Pinball and Internet Explorer with internet access. Additional sectors are loaded as needed.</td></tr>
  22. <tr id="start_windows98"><td><a href="?profile=windows98">Windows 98</a> <small>9.7 MB</small></td><td>
  23. Including Minesweeper and Internet Explorer with internet access. Additional sectors are loaded as needed.</td></tr>
  24. <tr id="start_windows95"><td><a href="?profile=windows95">Windows 95</a> <small>4.6 MB</small></td><td>
  25. Restored from snapshot</td></tr>
  26. <tr id="start_windows31"><td><a href="?profile=windows31">Windows 3.1</a> <small>15 MB</small></td><td>
  27. Takes 15 seconds to boot</td></tr>
  28. <tr id="start_windows1"><td><a href="?profile=windows1">Windows 1.01</a> <small>0.6 MB</small></td><td>
  29. Takes 1 second to boot</td></tr>
  30. <tr id="start_msdos"><td><a href="?profile=msdos">MS-DOS 6.22</a> <small>4.4 MB</small></td><td>
  31. With Enhanced Tools, QBasic, vim, games and demos.</td></tr>
  32. <tr id="start_freedos"><td><a href="?profile=freedos">FreeDOS</a> <small>0.5 MB</small></td><td>
  33. With nasm, vim, debug.com, Rogue, some games and demos.</td></tr>
  34. <tr id="start_freebsd"><td><a href="?profile=freebsd">FreeBSD</a> <small>17 MB</small></td><td>
  35. FreeBSD 12.0 base install. Restored from snapshot.</td></tr>
  36. <tr id="start_openbsd"><td><a href="?profile=openbsd">OpenBSD</a> <small>12 MB</small></td><td>
  37. OpenBSD 6.6 base install. Restored from snapshot.</td></tr>
  38. <tr id="start_9front"><td><a href="?profile=9front">9front</a> <small>4.4 MB</small></td><td>
  39. A Plan 9 fork.</td></tr>
  40. <tr id="start_haiku"><td><a href="?profile=haiku">Haiku</a> <small>46 MB</small></td><td>
  41. An open-source operating system inspired by BeOS. Restored from snapshot. Includes network support.</td></tr>
  42. <tr id="start_serenity"><td><a href="?profile=serenity">SerenityOS</a> <small>11 MB</small></td><td>
  43. A graphical Unix-like operating system. Restored from snapshot.</td></tr>
  44. <tr id="start_helenos"><td><a href="?profile=helenos">HelenOS</a> <small>7.9 MB</small></td><td>
  45. A graphical operating system based on a multiserver microkernel design</td></tr>
  46. <tr id="start_oberon"><td><a href="?profile=oberon">Oberon</a> <small>1.2 MB</small></td><td>
  47. Native Oberon 2.3.6</td></tr>
  48. <tr id="start_kolibrios"><td><a href="?profile=kolibrios">KolibriOS</a> <small>1.4 MB</small></td><td>
  49. Fast graphical OS written in Assembly</td></tr>
  50. <tr id="start_qnx"><td><a href="?profile=qnx">QNX</a> <small>1.3 MB</small></td><td>
  51. QNX 4.05 Demo disk (no networking)</td></tr>
  52. <tr id="start_snowdrop"><td><a href="?profile=snowdrop">Snowdrop</a> <small>0.3 MB</small></td><td>
  53. A homebrew operating system from scratch, written in assembly language</td></tr>
  54. <tr id="start_solos"><td><a href="?profile=solos">Solar OS</a> <small>0.3 MB</small></td><td>
  55. Simple graphical OS</td></tr>
  56. <tr id="start_bootchess"><td><a href="?profile=bootchess">Bootchess</a> <small>512 B</small></td><td>
  57. A tiny chess program written in the boot sector</td></tr>
  58. <tr id="start_sectorlisp"><td><a href="?profile=sectorlisp">SectorLISP</a> <small>512 B</small></td><td>
  59. A LISP interpreter that fits into the boot sector</td></tr>
  60. </table>
  61. <hr>
  62. <h4>Setup</h4>
  63. <table>
  64. <tr>
  65. <td width="350"><label for="cd_image">CD image</label></td>
  66. <td>
  67. <input type="file" id="cd_image">
  68. </td>
  69. </tr>
  70. <tr>
  71. <td><label for="floppy_image">Floppy disk image</label></td>
  72. <td> <input type="file" id="floppy_image"><br></td>
  73. </tr>
  74. <tr>
  75. <td><label for="hda_image">Hard drive disk image</label></td>
  76. <td><input type="file" id="hda_image"><br></td>
  77. </tr>
  78. <!--
  79. <tr>
  80. <td><label for="multiboot_image">Multiboot kernel image (experimental)</td>
  81. <td><input type="file" id="multiboot_image"><br></td>
  82. </tr>
  83. -->
  84. <tr>
  85. <td><label for="bzimage">Kernel image (bzimage)</label></td>
  86. <td><input type="file" id="bzimage"><br></td>
  87. </tr>
  88. <tr>
  89. <td><label for="initrd">initrd</label></td>
  90. <td><input type="file" id="initrd"><br></td>
  91. </tr>
  92. <tr>
  93. <td colspan="2"><small>Disk images are not uploaded to the server</small><hr></td>
  94. </tr>
  95. <tr>
  96. <td><label for="memory_size">Memory size</label></td>
  97. <td>
  98. <input id="memory_size" type="number" value="128" min="16" max="2048" step="16"> MB<br>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td><label for="video_memory_size">Video Memory size</label></td>
  103. <td>
  104. <input id="video_memory_size" type="number" value="8" min="1" max="128" step="1"> MB<br>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td><label for="networking_proxy">Networking proxy (leave blank to disable)</label></td>
  109. <td>
  110. <input id="networking_proxy" type="text" value="wss://relay.widgetry.org/">
  111. </td>
  112. </tr>
  113. <tr>
  114. <td colspan="2"><hr></td>
  115. </tr>
  116. <tr>
  117. <td><label for="disable_audio">Disable audio</label></td>
  118. <td>
  119. <input id="disable_audio" type="checkbox"><br>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td><label for="enable_acpi">Enable ACPI (experimental)</label></td>
  124. <td>
  125. <input id="enable_acpi" type="checkbox"><br>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td colspan="2"><hr></td>
  130. </tr>
  131. <tr>
  132. <td><label for="boot_order">Boot order</label></td>
  133. <td>
  134. <select id="boot_order">
  135. <option value="213">CD / Floppy / Hard Disk</option>
  136. <option value="123">CD / Hard Disk / Floppy</option>
  137. <option value="231">Floppy / CD / Hard Disk</option>
  138. <option value="321">Floppy / Hard Disk / CD</option>
  139. <option value="312">Hard Disk / Floppy / CD</option>
  140. <option value="132">Hard Disk / CD / Floppy</option>
  141. </select>
  142. </td>
  143. </tr>
  144. </table>
  145. <br>
  146. <button id="start_emulation">Start Emulation</button>
  147. </div>
  148. <div id="runtime_options" style="display: none">
  149. <input type="button" value="Pause" id="run">
  150. <input type="button" value="Reset" id="reset">
  151. <input type="button" value="Exit" id="exit">
  152. <input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
  153. <input type="button" value="Send Alt-Tab" id="alttab">
  154. <input type="button" value="Get floppy image" id="get_fda_image">
  155. <input type="button" value="Get second floppy image" id="get_fdb_image">
  156. <input type="button" value="Get hard disk image" id="get_hda_image">
  157. <input type="button" value="Get second hard disk image" id="get_hdb_image">
  158. <input type="button" value="Get cdrom image" id="get_cdrom_image">
  159. <input type="button" value="Save State" id="save_state">
  160. <input type="button" value="Load State" id="load_state"> <input type="file" style="display: none" id="load_state_input">
  161. <input type="button" value="Memory Dump" id="memory_dump">
  162. <input type="button" value="Disable mouse" id="toggle_mouse">
  163. <input type="button" value="Lock mouse" id="lock_mouse">
  164. <input type="button" value="Go fullscreen" id="fullscreen">
  165. <input type="button" value="Take screenshot" id="take_screenshot">
  166. <input type="button" value="Mute" id="mute">
  167. <label>
  168. Scale:
  169. <input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
  170. </label>
  171. <br>
  172. <label id="change_fda" style="display: none">
  173. Change floppy:
  174. <input type="file">
  175. </label>
  176. <label id="change_cdrom" style="display: none">
  177. Change CD:
  178. <input type="file">
  179. </label>
  180. <br>
  181. </div>
  182. <pre style="display: none" id="loading"></pre>
  183. </div>
  184. <div id="screen_container" style="display: none">
  185. <div id="screen"></div>
  186. <canvas id="vga"></canvas>
  187. <div style="position: absolute; top: 0; z-index: 10">
  188. <textarea class="phone_keyboard"></textarea>
  189. </div>
  190. </div>
  191. <div id="runtime_infos" style="display: none">
  192. Running: <span id="running_time">0s</span> <br>
  193. Speed: <span id="speed">0</span> mIPS<br>
  194. Avg speed: <span id="avg_speed">0</span> mIPS<br>
  195. <br>
  196. <div id="info_storage" style="display: none">
  197. <b>IDE device (HDA or CDROM)</b><br>
  198. Sectors read: <span id="info_storage_sectors_read">0</span><br>
  199. Bytes read: <span id="info_storage_bytes_read">0</span><br>
  200. Sectors written: <span id="info_storage_sectors_written">0</span><br>
  201. Bytes written: <span id="info_storage_bytes_written">0</span><br>
  202. Status: <span id="info_storage_status"></span><br>
  203. <br>
  204. </div>
  205. <div id="info_filesystem" style="display: none">
  206. <b>9p Filesystem</b><br>
  207. Bytes read: <span id="info_filesystem_bytes_read">0</span><br>
  208. Bytes written: <span id="info_filesystem_bytes_written">0</span><br>
  209. <div style="white-space: nowrap; overflow-x: hidden">Last file: <span id="info_filesystem_last_file"></span></div>
  210. Status: <span id="info_filesystem_status"></span><br>
  211. <br>
  212. </div>
  213. <div id="info_network" style="display: none">
  214. <b>Network</b><br>
  215. Bytes received: <span id="info_network_bytes_received">0</span><br>
  216. Bytes transmitted: <span id="info_network_bytes_transmitted">0</span><br>
  217. <br>
  218. </div>
  219. <b>VGA</b><br>
  220. Mode: <span id="info_vga_mode"></span><br>
  221. Resolution: <span id="info_res">-</span><br>
  222. BPP: <span id="info_bpp">-</span><br>
  223. <br>
  224. Mouse: <span id="info_mouse_enabled">No</span><br>
  225. <div id="description" style="display: none"><br></div>
  226. </div>
  227. <div id="filesystem_panel" style="display: none">
  228. <label>
  229. Send files to emulator<br>
  230. <input type="file" id="filesystem_send_file" multiple>
  231. </label>
  232. <br><br>
  233. <label>
  234. Get file from emulator<br>
  235. <input type="text" id="filesystem_get_file" placeholder="Absolute path">
  236. </label>
  237. </div>
  238. <br style="clear: both"><br>
  239. <div id="terminal"></div>
  240. <br style="clear: both">
  241. <code>Version: <a href="https://github.com/copy/v86/commits/98e7110c2">98e7110c2</a> (Feb 16, 2021 12:02)</code>
  242. <hr>
  243. <a href="debug.html">Enable debug</a>
  244. &mdash;
  245. <a href="https://github.com/copy/v86/blob/master/Readme.md">Readme</a>
  246. &mdash;
  247. <a href="https://github.com/copy/v86">Project on Github</a>
  248. &mdash;
  249. <a href="https://github.com/copy/v86#compatibility">Compatibility</a>