forked from AlanClasses/TSOS-2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·244 lines (219 loc) · 9.46 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author" content="Alan G. Labouseur" />
<link rel="stylesheet" href="dist/styles/WesterOS.css" type="text/css" media="screen" />
<title>
WesterOS - a browser-based virtual Operating System in TypeScript
</title>
<!-- Globals CONSTANTS and _Variables. Must included be first. -->
<script type="text/javascript" src="dist/scripts/globals.js"></script>
<!-- Host (Hardware Simulation) Routines -->
<script type="text/javascript" src="dist/scripts/host/control.js"></script>
<script type="text/javascript" src="dist/scripts/host/devices.js"></script>
<script type="text/javascript" src="dist/scripts/host/cpu.js"></script>
<script type="text/javascript" src="dist/scripts/host/memory.js"></script>
<!-- Virtual OS Routines: Make sure Kernel code is last, since it needs those above it. -->
<script type="text/javascript" src="dist/scripts/os/interrupt.js"></script>
<script type="text/javascript" src="dist/scripts/os/canvastext.js"></script>
<script type="text/javascript" src="dist/scripts/os/console.js"></script>
<script type="text/javascript" src="dist/scripts/os/pcb.js"></script>
<script type="text/javascript" src="dist/scripts/os/memoryManager.js"></script>
<script type="text/javascript" src="dist/scripts/os/deviceDriver.js"></script>
<script type="text/javascript" src="dist/scripts/os/deviceDriverKeyboard.js"></script>
<script type="text/javascript" src="dist/scripts/os/queue.js"></script>
<script type="text/javascript" src="dist/scripts/os/shell.js"></script>
<script type="text/javascript" src="dist/scripts/os/shellCommand.js"></script>
<script type="text/javascript" src="dist/scripts/os/userCommand.js"></script>
<script type="text/javascript" src="dist/scripts/os/cpuScheduler.js"></script>
<script type="text/javascript" src="dist/scripts/os/kernel.js"></script>
<script type="text/javascript" src="dist/scripts/os/fileSystemDeviceDriver.js"></script>
<!-- Other Routines -->
<script type="text/javascript" src="dist/scripts/utils.js"></script>
<!--<style type="text/css">
.statusDateTimeTable {
background-image: url(source/styles/white-design.jpg);
height: 20px;
width: 800px;
}
</style>-->
<!-- Bootstrap -->
<link href="source/styles/bootstrap-3.2.0-dist/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="source/styles/bootstrap-3.2.0-dist/js/bootstrap.min.js"></script>
<!-- Uncomment this line below to enable Glados testing -->
<!-- <script type="text/javascript" src="http://www.labouseur.com/courses/os/projects/glados.js"></script> -->
</head>
<body onload="WesterOS.Control.hostInit();">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a id="brand" class="navbar-brand" href="index.html" style="color:dodgerblue;">Wester<strong class="text-primary" style="color:darkblue;">OS</strong></a>
</div>
<div id="navbar" class="pull-right collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="divider-vertical"></li>
<li><a href="#" id = "btnStartOS"
name="brnStartOS"
value="Start"
tabindex="0"
onclick="WesterOS.Control.hostBtnStartOS_click(this);">Start</a></li>
<li><a href="#" id = "btnHaltOS"
name="brnHaltOS"
class="disabled"
value="Halt"
tabindex="1"
onclick="WesterOS.Control.hostBtnHaltOS_click(this);">Halt</a></li>
<li><a href="#" id = "btnReset"
name="brnReset"
class="disabled"
value="Reset"
tabindex="2"
onclick="WesterOS.Control.hostBtnReset_click(this);">Reset</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<table id="statusDateTimeTable" class="statusDateTimeTable" border="0">
<tr>
<td id="statusColumn" align="left">
<div id="statusBar" class="label label-primary">
STATUS: Ready and waiting
</div>
</td>
<td id="dateColumn" align="right">
<div id="dateTime" class="label label-success" onload="updateDateTime();">
Time will be activated with WesterOS startup
</div>
</td>
</tr>
</table>
<br>
<div class="row">
<div id="console-display" class="col-xs-7" style="margin-left:4px;">
<canvas id="display"
width="500px"
height="500px"
tabindex="3">
</canvas>
</div>
<div class="col-xs-3">
<div class="row">
<div id="divLog" style="margin-left:4px;">
<label>
Host Log
<br>
<textarea name="taHostLog"
id ="taHostLog"
rows="6"
cols="48"
></textarea>
</label>
</div>
<div id="divUserProgramInput" style="margin-left:4px;">
<label>
User Program Input
<br>
<textarea name="taProgramInput"
id ="taProgramInput"
rows="8"
cols="48"
></textarea>
</label>
</div>
<div id="cpu" style="margin-left:4px;"><h4>CPU</h4>
<table id="cpuTable" class="table table-bordered">
<thead>
<tr>
<th>PC</th>
<th>Acc</th>
<th>X-Reg</th>
<th>Y-Reg</th>
<th>Z-Reg</th>
</tr>
</thead>
<tbody>
<tr>
<td id="pcValue"></td>
<td id="accValue"></td>
<td id="xRegValue"></td>
<td id="yRegValue"></td>
<td id="zRegValue"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4" id="divMemory"><h4>Memory</h4>
<table id="memoryTable" class="table table-bordered"></table>
</div>
<div class="col-xs-3" style="margin-left: 12px">
<div id="disk"><h4>Hard Drive</h4>
<table id="hardDriveTable" class="table table-bordered">
<thead>
<tr>
<th>TSB</th>
<th>Meta</th>
<th>Data</th>
</tr>
</thead>
<tbody id="hardDriveRows">
<!-- Insert awesome here -->
</tbody>
</table>
</div>
</div>
<div class="col-xs-3" style="margin-left: 12px">
<div id="pcb"><h4>Active Processes</h4>
<table id="readyQueueTable" class="table table-bordered">
<thead>
<tr>
<th>PID</th>
<th>State</th>
<th>PC</th>
<th>Acc</th>
<th>X-Reg</th>
<th>Y-Reg</th>
<th>Z-Reg</th>
<th>Base</th>
<th>Limit</th>
<th>Location</th>
</tr>
</thead>
<tbody id="readyQueueRows">
<!--
<tr>
<td id="pcbPidValue"></td>
<td id="pcbPcValue"></td>
<td id="pcbAccValue"></td>
<td id="pcbXRegValue"></td>
<td id="pcbYRegValue"></td>
<td id="pcbZRegValue"></td>
</tr> -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<p class="footerText" style="clear:both;">
<br>
Copyright © 2008 - 2014 No Rights Reserved.
<br>
Reproduction is prohibited without the express written consent of
Ted Codd, Stevie Ray Vaughan, and Ian Fleming.
</p>
</body>
</html>