-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
276 lines (275 loc) · 12.5 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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="cpcbasic.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title id="title">CPC BasicTS v0.1.0</title>
</head>
<body id="pageBody">
<fieldset class="flexBox">
<legend>
<button id="inputButton" class="legendButton" title="Show/Hide BASIC">CPC BASIC</button>
<span class="buttonPopoverContainer">
<button id="galleryButton" class="popoverButton" title="Gallery">Gallery</button>
<span id="galleryArea" class="popover area flexColumn displayNone">
<span id="galleryAreaInner" class="area flexColumn displayFlex">
<span id="galleryAreaItems" class="displayBlock" />
</span>
</span>
</span>
<span class="buttonPopoverContainer">
<button id="settingsButton" class="popoverButton" title="Settings">Settings</button>
<span id="settingsArea" class="popover area flexColumn displayNone">
<span id="settingsAreaInner" class="area flexColumn displayFlex">
<span id="compileSettingsArea" class="area flexColumn displayFlex">
<span class="field flexStart">
<input id="arrayBoundsInput" type="checkbox" title="Check array bounds">
<label id="arrayBoundsLabel" for="arrayBoundsInput" class="label" title="Check array bounds">Array Bounds</label>
</span>
<span class="field flexStart">
<input id="implicitLinesInput" type="checkbox" title="Allow implicit line numbers">
<label id="implicitLinesLabel" for="implicitLinesInput" class="label" title="Allow implicit line numbers">Implicit Lines</label>
</span>
<span class="field flexStart">
<input id="traceInput" type="checkbox" title="Trace Mode">
<label id="traceLabel" for="traceInput" class="label" title="Trace Mode">Trace Mode</label>
</span>
</span>
<span id="runSettingsArea" class="area flexColumn displayFlex">
<span class="field flexStart">
<input id="autorunInput" type="checkbox" title="Autorun">
<label id="autorunLabel" for="autorunInput" class="label" title="Autorun on select">Autorun</label>
</span>
<span class="field flexStart">
<input id="soundInput" type="checkbox" title="Sound">
<label id="soundLabel" for="soundInput" class="label" title="Sound">Sound</label>
</span>
<span class="field flexStart">
<select id="paletteSelect" title="Select Palette">
<option value="color" title="Color" default>Color</option>
<option value="green" title="Green">Green</option>
<option value="grey" title="Grey">Grey</option>
</select>
<label id="paletteLabel" for="paletteSelect" class="label" title="Palette">Palette</label>
</span>
<span class="field flexStart">
<input id="speedInput" type="range" min="0" max="100" step="1" value="100" title="Speed">
<label id="speedLabel" for="speedInput" class="label" title="Speed">Speed</label>
</span>
</span>
<span id="debugSettingsArea" class="area flexColumn displayFlex">
<span class="field flexStart">
<input id="debugInput" type="number" min="0" max="99" value="0" title="Debug Level">
<label id="debugLabel" for="debugInput" class="label" title="Debug Level">Debug</label>
</span>
<span class="field flexStart">
<input id="consoleLogInput" type="checkbox" title="Show Console Log">
<label id="consoleLogLabel" for="consoleLogInput" class="label" title="Show Console Log">Console Log</label>
</span>
</span>
</span>
<span class="field flexStart">
<button id="helpButton" title="Help">Help</button>
</span>
</span>
<button id="reloadButton" title="Reload page with URL parameter settings">Reload</button>
</span>
</legend>
<div id="exampleSelectArea" class="area">
<div class="field">
<select id="databaseSelect" title="Select Database"></select>
</div>
<div class="field">
<select id="directorySelect" title="Select Directory"></select>
</div>
<div class="field selectWrap">
<select id="exampleSelect" title="Load Example"></select>
</div>
</div>
<div id="inputArea" class="area clearLeft">
<textarea id="inputText" rows="15" cols="80" spellcheck="false" autocomplete="off" autocapitalize="off"></textarea>
<div class="displayFlex">
<button id="parseButton" title="Check BASIC script (compile to JavaScript)">Check</button>
<span class="buttonPopoverContainer">
<button id="convertButton" class="popoverButton" title="Convert">Convert</button>
<span id="convertArea" class="popover area flexColumn displayNone">
<span id="renumArea" class="area flexColumn displayFlex">
<span class="field">
<label id="renumNewLabel" for="renumNewInput" class="label" title="New Line">New</label>
<input id="renumNewInput" value="10" min="0" max="65535" type="number" title="New" placeholder="value">
</span>
<span class="field clearLeft">
<label id="renumStartLabel" for="renumStartInput" class="label" title="Start Line">Start</label>
<input id="renumStartInput" value="1" min="0" max="65535" type="number" title="Start" placeholder="value">
</span>
<span class="field clearLeft">
<label id="renumStepLabel" for="renumStepInput" class="label" title="Step">Step</label>
<input id="renumStepInput" value="10" min="0" max="65535" type="number" title="Step" placeholder="value">
</span>
<span class="field clearLeft">
<label id="renumKeepLabel" for="renumKeepInput" class="label" title="First line to keep">Keep</label>
<input id="renumKeepInput" value="65535" min="0" max="65535" type="number" title="Keep" placeholder="value">
</span>
<span class="clearLeft"> <!-- clearLeft needed for IE -->
<button id="renumButton" title="Renumber lines">Renum</button>
</span>
</span>
<span id="prettyArea" class="area flexColumn displayFlex">
<span class="field flexStart">
<input id="prettyBracketsInput" type="checkbox" title="Keep Brackets" checked>
<label id="prettyBracketsLabel" for="prettyBracketsInput" class="label" title="Keep Brackets">Brackets</label>
</span>
<span class="field flexStart">
<input id="prettyColonsInput" type="checkbox" title="Keep Colons" checked>
<label id="prettyColonsLabel" for="prettyColonsInput" class="label" title="Keep Colons">Colons</label>
</span>
<span class="field flexStart clearLeft">
<input id="prettySpaceInput" type="checkbox" title="Keep Spaces">
<label id="prettySpaceLabel" for="prettySpaceInput" class="label" title="Keep Spaces">Spaces</label>
</span>
<span class="field clearLeft"> <!-- clearLeft needed for IE -->
<button id="prettyButton" title="Pretty print">Pretty</button>
</span>
</span>
<span id="lineNumberArea" class="area flexColumn displayFlex">
<span class="field">Line numbers</span>
<span class="field clearLeft">
<button id="lineNumberAddButton" title="Add (missing) line numbers">Add</button>
<button id="lineNumberRemoveButton" title="Remove (unreferenced) line numbers">Remove</button>
</span>
</span>
<span id="stackArea" class="area">
<span class="field">
<button id="undoButton" title="Undo changes" disabled>Undo</button>
<button id="redoButton" title="Redo changes" disabled>Redo</button>
</span>
</span>
</span>
</span>
<button id="downloadButton" title="Download tokenized">Download</button>
</div>
</div>
</fieldset>
<fieldset class="flexBox clearLeft" id="cpcAreaBox">
<legend>
<button id="cpcButton" class="legendButton" title="Show/Hide CPC">CPC</button>
<button id="parseRunButton" title="Compile and run script">Run</button>
<button id="stopButton" title="Stop/escape/break running script" disabled>Break</button>
<button id="continueButton" title="Continue script" disabled>Continue</button>
<span class="buttonPopoverContainer">
<button id="moreButton" class="popoverButton" title="More">More</button>
<span id="moreArea" class="popover area flexColumn displayNone">
<span id="moreAreaInner" class="area flexColumn displayFlex">
<span class="field flexStart">
<button id="resetButton" title="Reset CPC">Reset</button>
</span>
<span class="field flexStart">
<button id="screenshotButton" title="Take Screenshot and download">Screenshot</button>
</span>
<span class="field flexStart">
<button id="fullscreenButton" title="Fullscreen mode">Fullscreen</button>
</span>
</span>
</span>
</span>
</legend>
<div id="cpcArea" class="area">
<div id="cpcCanvasDiv">
<canvas id="cpcCanvas" width="640" height="400" tabindex="0"></canvas>
</div>
</div>
</fieldset>
<fieldset class="flexBox clearLeft">
<legend>
<button id="textButton" class="legendButton" title="Show/Hide Text View">Text View</button>
<button id="copyTextButton" title="Copy text to clipboard">Copy</button>
</legend>
<div id="textArea" class="area displayNone textCanvas">
<textarea readonly id="textText" placeholder="" rows="25" cols="80" spellcheck="false" autocomplete="off" autocapitalize="off" style="overflow:hidden; resize:none; padding:0px; line-height: 15px;"></textarea>
</div>
</fieldset>
<fieldset class="flexBox clearLeft" id="kbdAreaBox">
<legend>
<button id="kbdButton" class="legendButton" title="CPC Keyboard">Keyboard</button>
<span id="kbdMove" class="kbdMove">Move</span>
<span id="kbdLayoutArea">
<select id="kbdLayoutSelect" title="Select Keyboard Layout">
<option value="alphanum" title="AlphaNum">AlphaNum</option>
<option value="alpha" title="Alpha">Alpha</option>
<option value="num" title="Numpad">Num</option>
</select>
</span>
</legend>
<div id="kbdArea" class="area kbdArea displayNone" tabindex="0">
<div id="kbdAlpha" class="area">
</div>
<div id="kbdNum" class="area">
</div>
</div>
</fieldset>
<fieldset class="flexBox clearLeft">
<legend>
<button id="inp2Button" class="legendButton" title="Alternative way of input">Input</button>
</legend>
<div id="inp2Area" class="area clearLeft displayNone">
<div class="area">
<textarea id="inp2Text" placeholder="input" rows="2" cols="40" spellcheck="false" autocomplete="off" autocapitalize="off"></textarea>
<button id="enterButton" title="Send">Send</button>
</div>
<div class="area clearLeft">
<input type="file" id="fileInput" name="files[]" multiple>
</div>
<div class="area" id="dropZone" title="drop here or on canvas">
Drop files here
</div>
</div>
</fieldset>
<fieldset class="flexBox">
<legend>
<button id="resultButton" class="legendButton" title="Show/Hide BASIC Console">Console</button>
</legend>
<div id="resultArea" class="area displayNone">
<textarea id="resultText" placeholder="" rows="15" cols="80" spellcheck="false" autocomplete="off" autocapitalize="off"></textarea>
</div>
</fieldset>
<fieldset class="flexBox">
<legend>
<button id="variableButton" class="legendButton" title="Show/Hide Variables">Variables</button>
</legend>
<div id="variableArea" class="area displayNone">
<div class="field">
<select id="varSelect" title="Select variable">
</select>
</div>
<div class="clearLeft">
<textarea id="varText" placeholder="value" rows="12" cols="40" spellcheck="false" autocomplete="off" autocapitalize="off"></textarea>
</div>
</div>
</fieldset>
<fieldset class="flexBox">
<legend>
<button id="outputButton" class="legendButton" title="Show/Hide JavaScript">JavaScript</button>
</legend>
<div id="outputArea" class="area displayNone">
<button id="runButton" title="Run JavaScript">Run</button>
<br>
<textarea id="outputText" placeholder="Use input field, press 'Run'" rows="15" cols="80" spellcheck="false" autocomplete="off" autocapitalize="off"></textarea>
</div>
</fieldset>
<fieldset class="flexBox clearLeft" id="consoleBox" hidden>
<legend>
<button id="consoleButton" class="legendButton" title="Show/Hide Console log">Console log</button>
</legend>
<div id="consoleArea" class="area">
<textarea id="consoleText" rows="15" cols="80"></textarea>
</div>
</fieldset>
<a id="screenshotLink"></a>
<script>
var cpcConfig = { databaseDirs: "../apps,storage" };
</script>
<script src="cpcbasicts.js"></script>
</body>
</html>