forked from tinixos/tinixos.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (128 loc) · 6.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!doctype html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tinix OS - Virtual x86</title>
<script type="text/javascript" src="build/libv86.js"></script>
<script type="text/javascript" src="worker.js"></script>
<script type="text/javascript" src="kbd/vk_loader.js?vk_layout=US%20US&vk_skin=flat_gray" ></script>
<link rel="stylesheet" href="v86.css">
<body>
<div id="runtime_options">
<table style="margin: 0 auto;">
<tr>
<td><button type="button" id="run" style="border-width: 2px"><img id="img_run" src="res/pause.png" width="50" height="50" alt="Run" style="background-color: #fff"></button></td>
<td><button type="button" id="reset" style="border-width: 2px"><img src="res/reset.png" width="50" height="50" alt="reset" style="background-color: #fff"></button></td>
<td><button type="button" id="exit" style="border-width: 2px"><img src="res/exit.png" width="50" height="50" alt="exit" style="background-color: #fff"></button></td>
<td><button type="button" id="mouse" style="border-width: 2px"><img src="res/mouse.png" width="50" height="50" alt="mouse" style="background-color: #fff"></button></td>
<td><button type="button" id="keyboard" style="border-width: 2px"><img src="res/keyboard.png" width="50" height="50" alt="keyboard" style="background-color: #fff"></button></td>
<td><button type="button" id="takesnap" style="border-width: 2px"><img src="res/takesnap.png" width="50" height="50" alt="takesnap" style="background-color: #fff"></button></td>
<td><button type="button" id="setting" style="border-width: 2px"><img src="res/setting.png" width="50" height="50" alt="setting" style="background-color: #fff"></button></td>
</tr>
<tr>
<td>Pause</td><td>Reset</td><td>Exit</td><td>Mouse</td><td>Keyboard</td><td>Takesnap</td><td>Setting</td>
</tr>
</table>
</div>
<hr>
<div id="process_layer" style="display: block;"></div>
<div id="process" name="process" style="display:none" align="center">
<table>
<tr><td>Loading:</td><td><span id="image_name">-</span></td></tr>
<tr><td>Size(bytes):</td><td><span id="image_size">-</span></td></tr>
<tr><td>Progress:</td><td><span id="load_process">-</span></td></tr>
</table>
</div>
<div id="setting-dialog" name="setting-dialog" style="display:none">
<table>
<tr>
<td>Symtem Image</td>
<td>
<select name="image" size="1" id="image_path">
<option value="images/tinix.img">Tinix OS (1.4MB)</option>
<option value="images/windows101.img">Windows 1.01 (1.4MB)</option>
<option value="images/linux.iso">Linux 2.6 (5.4MB)</option>
<option value="images/linux3.iso">Linux 3.18 (7.4MB)</option>
<option value="images/freedos722.img">Freedos 7.22 (0.7MB)</option>
<option value="images/kolibri.img">KolibriOS (1.4MB)</option>
<option value="images/openbsd.img">OpenBSD (1.4MB)</option>
<option value="images/os8.img">Solar OS (1.4MB)</option>
<option value="images/tccboot.iso">TCCBOOT Linux (6.2MB)</option>
</select>
</td>
</tr>
<tr>
<td>Boot order</td>
<td>
<select id="boot_order">
<option value="213">CD / Floppy / Hard Disk</option>
<option value="123">CD / Hard Disk / Floppy</option>
<option value="231">Floppy / CD / Hard Disk</option>
<option value="321">Floppy / Hard Disk / CD</option>
<option value="312">Hard Disk / Floppy / CD</option>
<option value="132">Hard Disk / CD / Floppy</option>
</select>
</td>
</tr>
<tr>
<td>Memory size</td>
<td>
<input id="memory_size" type="number" value="64" min="16" max="2048" step="16"> MB<br>
</td>
</tr>
</table>
<div style="text-align:center; ">
<input type="button" value=" Cancel " id="setting-cancel"></input>
<input type="button" value=" Apply " id="setting-apply"></input>
</div>
</div>
<div id="main">
<div id="screen_container">
<div id="screen"></div>
<canvas id="vga"></canvas>
</div>
<div id="runtime_infos" style="display: block;">
<div id="info_cpu">
<b>CPU</b><br>
Running: <span id="running_time">0s</span> <br>
Speed(kIPS): <span id="speed">0</span><br>
Protect: <span id="protect">false</span><br>
Paging: <span id="paging">false</span><br>
Privilege: <span id="cpl">false</span><br>
<br>
<b>Registers</b><br>
<font color="#FFFF00">eip: <span id="eip">-</span></font> <br>
efl: <span id="eflags">-</span> <br>
<br>
eax: <span id="eax">-</span> <br>
ebx: <span id="ebx">-</span> <br>
ecx: <span id="ecx">-</span> <br>
edx: <span id="edx">-</span> <br>
esi: <span id="esi">-</span> <br>
edi: <span id="edi">-</span> <br>
ebp: <span id="ebp">-</span> <br>
esp: <span id="esp">-</span> <br>
<br>
</div>
<b>VGA</b><br>
Mode: <span id="info_vga_mode"></span><br>
<div id="vga_graph" style="display: none;">
Resolution: <span id="info_res">-</span><br>
BPP: <span id="info_bpp">-</span><br>
</div>
<!-- Keyboard: <span id="info_keyboard_enabled">-</span><br> -->
</div>
</div>
<br style="clear:both">
<div id="kbd_panel" style="display: none">
<input type="text" id="keyboardinput" style="display: none" />
<div id="softkey"></div>
</div>
<br style="clear:both">
<hr>
<a href="https://github.com/tinixos/tinixos.github.io" target="_blank">Project on Github</a>
—
<a href="https://github.com/tinixos/tinix" target="_blank">TinixOS kernel on Github</a>
—
<a href="https://github.com/copy/v86" target="_blank">Virtual x86 on Github</a>
—
<a href="#">About</a>
</body>