index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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>24 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. Restored from snapshot. Includes network support.</td></tr>
  42. <tr id="start_oberon"><td><a href="?profile=oberon">Oberon</a> <small>1.2 MB</small></td><td>
  43. Native Oberon 2.3.6</td></tr>
  44. <tr id="start_kolibrios"><td><a href="?profile=kolibrios">KolibriOS</a> <small>1.4 MB</small></td><td>
  45. Fast graphical OS written in Assembly</td></tr>
  46. <tr id="start_qnx"><td><a href="?profile=qnx">QNX</a> <small>1.3 MB</small></td><td>
  47. QNX 4.05 Demo disk (no networking)</td></tr>
  48. <tr id="start_snowdrop"><td><a href="?profile=snowdrop">Snowdrop</a> <small>0.3 MB</small></td><td>
  49. A homebrew operating system from scratch, written in assembly language</td></tr>
  50. <tr id="start_solos"><td><a href="?profile=solos">Solar OS</a> <small>0.3 MB</small></td><td>
  51. Simple graphical OS</td></tr>
  52. <tr id="start_bootchess"><td><a href="?profile=bootchess">Bootchess</a> <small>0.1 MB</small></td><td>
  53. A tiny chess program written in the boot sector</td></tr>
  54. </table>
  55. <hr>
  56. <h4>Setup</h4>
  57. <table>
  58. <tr>
  59. <td width="350"><label for="cd_image">CD image</label></td>
  60. <td>
  61. <input type="file" id="cd_image">
  62. </td>
  63. </tr>
  64. <tr>
  65. <td><label for="floppy_image">Floppy disk image</label></td>
  66. <td> <input type="file" id="floppy_image"><br></td>
  67. </tr>
  68. <tr>
  69. <td><label for="hda_image">Hard drive disk image</label></td>
  70. <td><input type="file" id="hda_image"><br></td>
  71. </tr>
  72. <!--
  73. <tr>
  74. <td><label for="multiboot_image">Multiboot kernel image (experimental)</td>
  75. <td><input type="file" id="multiboot_image"><br></td>
  76. </tr>
  77. -->
  78. <tr>
  79. <td colspan="2"><small>Disk images are not uploaded to the server</small><hr></td>
  80. </tr>
  81. <tr>
  82. <td><label for="memory_size">Memory size</label></td>
  83. <td>
  84. <input id="memory_size" type="number" value="128" min="16" max="2048" step="16"> MB<br>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td><label for="video_memory_size">Video Memory size</label></td>
  89. <td>
  90. <input id="video_memory_size" type="number" value="8" min="1" max="128" step="1"> MB<br>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td><label for="networking_proxy">Networking proxy (leave blank to disable)</label></td>
  95. <td>
  96. <input id="networking_proxy" type="text" value="wss://relay.widgetry.org/">
  97. </td>
  98. </tr>
  99. <tr>
  100. <td colspan="2"><hr></td>
  101. </tr>
  102. <tr>
  103. <td><label for="disable_audio">Disable audio</label></td>
  104. <td>
  105. <input id="disable_audio" type="checkbox"><br>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td><label for="enable_acpi">Enable ACPI (experimental)</label></td>
  110. <td>
  111. <input id="enable_acpi" type="checkbox"><br>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td colspan="2"><hr></td>
  116. </tr>
  117. <tr>
  118. <td><label for="boot_order">Boot order</label></td>
  119. <td>
  120. <select id="boot_order">
  121. <option value="213">CD / Floppy / Hard Disk</option>
  122. <option value="123">CD / Hard Disk / Floppy</option>
  123. <option value="231">Floppy / CD / Hard Disk</option>
  124. <option value="321">Floppy / Hard Disk / CD</option>
  125. <option value="312">Hard Disk / Floppy / CD</option>
  126. <option value="132">Hard Disk / CD / Floppy</option>
  127. </select>
  128. </td>
  129. </tr>
  130. </table>
  131. <br>
  132. <button id="start_emulation">Start Emulation</button>
  133. </div>
  134. <div id="runtime_options" style="display: none">
  135. <input type="button" value="Pause" id="run">
  136. <input type="button" value="Reset" id="reset">
  137. <input type="button" value="Exit" id="exit">
  138. <input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
  139. <input type="button" value="Send Alt-Tab" id="alttab">
  140. <input type="button" value="Get floppy image" id="get_fda_image">
  141. <input type="button" value="Get second floppy image" id="get_fdb_image">
  142. <input type="button" value="Get hard disk image" id="get_hda_image">
  143. <input type="button" value="Get second hard disk image" id="get_hdb_image">
  144. <input type="button" value="Get cdrom image" id="get_cdrom_image">
  145. <input type="button" value="Save State" id="save_state">
  146. <input type="button" value="Load State" id="load_state"> <input type="file" style="display: none" id="load_state_input">
  147. <input type="button" value="Memory Dump" id="memory_dump">
  148. <input type="button" value="Disable mouse" id="toggle_mouse">
  149. <input type="button" value="Lock mouse" id="lock_mouse">
  150. <input type="button" value="Go fullscreen" id="fullscreen">
  151. <input type="button" value="Take screenshot (only graphic modes)" id="take_screenshot">
  152. <label>
  153. Scale:
  154. <input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
  155. </label>
  156. <br>
  157. <label id="change_fda" style="display: none">
  158. Change floppy:
  159. <input type="file">
  160. </label>
  161. <label id="change_cdrom" style="display: none">
  162. Change CD:
  163. <input type="file">
  164. </label>
  165. <br>
  166. </div>
  167. <pre style="display: none" id="loading"></pre>
  168. </div>
  169. <div id="screen_container" style="display: none">
  170. <div id="screen"></div>
  171. <canvas id="vga"></canvas>
  172. <div style="position: absolute; top: 0; z-index: 10">
  173. <textarea class="phone_keyboard"></textarea>
  174. </div>
  175. </div>
  176. <div id="runtime_infos" style="display: none">
  177. Running: <span id="running_time">0s</span> <br>
  178. Speed: <span id="speed">0</span> mIPS<br>
  179. Avg speed: <span id="avg_speed">0</span> mIPS<br>
  180. <br>
  181. <div id="info_storage" style="display: none">
  182. <b>IDE device (HDA or CDROM)</b><br>
  183. Sectors read: <span id="info_storage_sectors_read">0</span><br>
  184. Bytes read: <span id="info_storage_bytes_read">0</span><br>
  185. Sectors written: <span id="info_storage_sectors_written">0</span><br>
  186. Bytes written: <span id="info_storage_bytes_written">0</span><br>
  187. Status: <span id="info_storage_status"></span><br>
  188. <br>
  189. </div>
  190. <div id="info_filesystem" style="display: none">
  191. <b>9p Filesystem</b><br>
  192. Bytes read: <span id="info_filesystem_bytes_read">0</span><br>
  193. Bytes written: <span id="info_filesystem_bytes_written">0</span><br>
  194. <div style="white-space: nowrap; overflow-x: hidden">Last file: <span id="info_filesystem_last_file"></span></div>
  195. Status: <span id="info_filesystem_status"></span><br>
  196. <br>
  197. </div>
  198. <div id="info_network" style="display: none">
  199. <b>Network</b><br>
  200. Bytes received: <span id="info_network_bytes_received">0</span><br>
  201. Bytes transmitted: <span id="info_network_bytes_transmitted">0</span><br>
  202. <br>
  203. </div>
  204. <b>VGA</b><br>
  205. Mode: <span id="info_vga_mode"></span><br>
  206. Resolution: <span id="info_res">-</span><br>
  207. BPP: <span id="info_bpp">-</span><br>
  208. <br>
  209. Mouse: <span id="info_mouse_enabled">No</span><br>
  210. <div id="description" style="display: none"><br></div>
  211. </div>
  212. <div id="filesystem_panel" style="display: none">
  213. <label>
  214. Send files to emulator<br>
  215. <input type="file" id="filesystem_send_file" multiple>
  216. </label>
  217. <br><br>
  218. <label>
  219. Get file from emulator<br>
  220. <input type="text" id="filesystem_get_file" placeholder="Absolute path">
  221. </label>
  222. </div>
  223. <br style="clear: both"><br>
  224. <div id="terminal"></div>
  225. <br style="clear: both">
  226. <code>Version: <a href="https://github.com/copy/v86/commits/98e7110c2">98e7110c2</a> (Feb 16, 2021 12:02)</code>
  227. <hr>
  228. <a href="debug.html">Enable debug</a>
  229. &mdash;
  230. <a href="https://github.com/copy/v86/blob/master/Readme.md">Readme</a>
  231. &mdash;
  232. <a href="https://github.com/copy/v86">Project on Github</a>
  233. &mdash;
  234. <a href="https://github.com/copy/v86#compatibility">Compatibility</a>