-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
147 lines (118 loc) · 4.16 KB
/
index.html
File metadata and controls
147 lines (118 loc) · 4.16 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>BBC Disk Image Displayer</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<style>
.hidden {
display: none;
}
.flexContainer {
display: flex;
align-items: center;
margin-top: 20px;
}
.spacer {
-ms-flex: 1;
-webkit-flex: 1;
flex: 1;
}
.flexItem {
}
.removeMarginsAndPadding {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>BBC Disk Image Displayer <small>by !Shawty!</small></h1>
</div>
<div id="availableDisks">
<h3>
Available disks <small id="disksLoading">Loading...</small>
</h3>
<table id="diskTable" class="table table-bordered">
<thead>
<tr>
<th>File Name</th>
<th>Disk Title</th>
<th>Disk Type</th>
<th> </th>
</tr>
</thead>
<tbody></tbody>
</table>
<button class="btn btn-success" onclick="loadDiskTable()">Reload Disks</button>
</div>
<div id="diskContents" style="display: none;">
<div class="flexContainer">
<h3 class="flexItem removeMarginsAndPadding">Disc Contents <small id="diskContentName"></small>
</h3>
<div class="spacer"> </div>
<div class="flexItem" id="backButton"><button class="btn btn-primary btn-sm" onclick="goBackToAvailableDisks()"><< Back to available disks</button>
</div>
</div>
<br/>
<p><strong>Disk Title: </strong><span id="diskTitle" class="text-info"></span></p>
<p><strong>Disk Writes: </strong><span id="diskWrites" class="text-info"></span></p>
<p><strong>Disk Size: </strong><span id="diskSize" class="text-info"></span></p>
<p><strong>Boot Option: </strong><span id="bootOption" class="text-info"></span></p>
<table id="fileTable" class="table table-bordered">
<thead>
<tr>
<th>Directory</th>
<th>File Name</th>
<th>Load Address</th>
<th>Exec Address</th>
<th>Length</th>
<th>Locked?</th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody></tbody>
</table>
<ul class="nav nav-pills">
<li class="active"><a id="ptxt" data-toggle="pill" href="#txt">Text</a></li>
<li><a id="pbas" data-toggle="pill" href="#bas">Basic</a></li>
<li><a id="phex" data-toggle="pill" href="#hex">Hex dump</a></li>
<li><a id="pdis" data-toggle="pill" href="#dis">Disassembly</a></li>
<li><a id="pscr" data-toggle="pill" href="#scr">Screen dump</a></li>
</ul>
<div class="tab-content">
<div id="txt" class="tab-pane fade in active">
<pre id="contentstxt"> </pre>
</div>
<div id="bas" class="tab-pane fade">
<pre id="contentsbas"> </pre>
</div>
<div id="hex" class="tab-pane fade">
<pre id="contentshex"> </pre>
</div>
<div id="dis" class="tab-pane fade">
<pre id="contentsdis"> </pre>
</div>
<div id="scr" class="tab-pane fade">
<pre id="contentsscr">
<div><canvas class="canvas" id="beebScreen0" width="640" height="512"></canvas></div>
<div><canvas class="canvas" id="beebScreen1" width="640" height="512"></canvas></div>
<div><canvas class="canvas" id="beebScreen2" width="640" height="512"></canvas></div>
<div><canvas class="canvas" id="beebScreen4" width="640" height="512"></canvas></div>
<div><canvas class="canvas" id="beebScreen5" width="640" height="512"></canvas></div>
</pre>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="dfscat.js"></script>
<script>
// Main runtime entry point here
loadDiskTable();
</script>
</body>
</html>