forked from Open-STEM/XRPCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
334 lines (294 loc) · 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
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Roboloco XRP Code Editor</title>
<link rel="stylesheet" href="uikit-3.16.22/css/uikit.css?version=1.0.5.L" />
<link rel="stylesheet" href="js/xterm/css/xterm.css?version=1.0.5.L"/>
<link rel="stylesheet" href="golden-layout/css/goldenlayout-base.css?version=1.0.5.L">
<link rel="stylesheet" href="golden-layout/css/themes/goldenlayout-dark-theme.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/main-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/fs-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/dir_chooser-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/shell-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/editor-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="css/dark/changelog-dark.css?version=1.0.5.L">
<link rel="stylesheet" href="js/treejs/treejs.css?version=1.0.5.L" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="images/favicon.png">
<link rel="stylesheet" href="css/custom/custom-styling.css?">
</head>
<body>
<div id="IDChangelog" class="changelog">
<button id="IDChangelogExitBtn" class="changelog_exit_btn" uk-icon="icon: close"></button>
<div id="IDChangelogText" class="changelog_text"></div>
</div>
<div id="IDSaveAs"></div>
<div id="IDPageWrapper" class="page_wrapper">
<div id="IDPageHeader" class="header uk-text-center uk-width-1-1 uk-height-1-1">
<div>
<button
id="IDStopBTN"
title="Stop XRP"
style="display: none"
class="uk-button uk-button-danger uk-align-right uk-height-1-1
uk-text-small uk-text-nowrap action-button">
STOP ⏹
</button>
</div>
<div>
<button
id="IDRunBTN"
title="Run XRP"
style="display: none"
class="uk-button uk-align-right uk-height-1-1 uk-text-small
uk-text-nowrap action-button run-button">
RUN ▶
</button>
</div>
<button
id="IDConnectThumbyBTN"
title="Connect XRP to page manually, or automatically if connected before"
alt="Connect XRP button"
class="uk-button uk-align-right uk-height-1-1 uk-text-small
uk-text-nowrap connect-xrp"
uk-icon="shrink"
dir="rtl">
Connect XRP
</button>
<div class="header_button_space uk-margin-medium-left uk-height-1-1 uk-width-1-3">
<div class="uk-button-group uk-height-1-1 uk-text-left">
<img id="logo" class="xrp_logo" src="images/xrpstickerbot.png" alt="XRP Logo" title="Hello world, I'm XRP!" uk-img>
<!-- <button
id="IDConnectThumbyBTN"
title="Connect XRP to page manually, or automatically if connected before"
alt="Connect XRP button"
class="uk-button uk-text-small uk-width-1-4 uk-height-1-1 uk-text-nowrap"
uk-icon="shrink"
dir="rtl">
Connect XRP
</button> -->
<div class="editor_header_toolbar">
<!-- FILE Menu-->
<button
id="IDFileBTN"
class = "uk-button-xmenu uk-button-primary uk-height-1-1 uk-text-small uk-text-nowrap view-options"
title = "File operations for PC and XRP" >
File▾
</button>
<div id="IDFile" uk-dropdown = "mode: click; offset: 0; delay-hide: 200">
<ul id="IDFileDrop" class="uk-nav uk-dropdown-nav uk-dark">
<li><button
id="IDFileAdd"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Add a new Blockly or Python file">
New File
</button></li>
<!-- <li><button
id="pesto"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Adds pestolink file">
PESTOLINK PESTOLINK PESTOLINK PESTOLINK PESTOLINK PESTOLINK
</button></li> -->
<li><button
id = "IDFileUpload"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Uploads files to the XRP">
Upload to XRP
</button></li>
<li><button
id = "IDFileExport"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Export editor contents to file on PC">
Export to PC
</button></li>
<li class = "uk-nav-divider"></li>
<li><button
id = "IDFileSave"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Save editor contents to file on XRP (ctrl-s)">
Save to XRP
</button></li>
<li><button
id = "IDFileSaveAs"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Save editor contents to file on XRP under a specific path">
Save As to XRP
</button></li>
</ul>
</div>
<!-- VIEW Menu-->
<button
id="IDViewBTN"
class = "uk-button-xmenu uk-button-primary uk-height-1-1 uk-text-small uk-text-nowrap view-options"
title = "Operations of currently selected file">
View▾
</button>
<div id="IDView" uk-dropdown = "mode: click; offset: 0; delay-hide: 200">
<!-- VIEW Menu Blockly-->
<ul id="blockly_dropdown" class="uk-nav uk-dropdown-nav uk-dark" style="display:block">
<li><button
id = "IDViewVM"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "View the Python code generated from this Blockly">
View Python
</button></li>
<li><button
id = "IDViewCM"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Convert this blocks program to a Python program">
Convert To Python
</button></li>
</ul>
<!-- VIEW Menu ACE-->
<ul id="micropython_dropdown" class="uk-nav uk-dropdown-nav uk-dark" style="display:none">
<li><button
id = "IDViewIncF"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Increase editor font size">
Increase Font
</button></li>
<li><button
id = "IDViewDecF"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Decrease editor font size">
Decrease Font
</button></li>
<!--
<li><button
id = "IDViewResetF"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Reset font to default">
Reset Font Size
</button></li>
-->
<li><button
id = "IDViewAutoComplete"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "When turned off, basic autocomplete can be accessed using left-ctrl + space. Affects all editors">
Turn live autocomplete off
</button></li>
</ul>
</div>
<!-- HELP Menu-->
<button id="IDHelpBTN" class = "uk-button-xmenu uk-button-primary uk-height-1-1 uk-text-small uk-text-nowrap view-options">Help▾</button>
<div id="IDHelpDrop" uk-dropdown = "mode: click; offset: 0; delay-hide: 200">
<ul id="IDHelp" class="uk-nav uk-dropdown-nav uk-dark">
<li><button id="IDUserGuide" class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1">
User Guide
</button></li>
<li><button id = "IDAPI" class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1">
API
</button></li>
<li><button id="MailHelp" class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1">
Email a Roboloco Member
</button></li>
</ul>
</div>
<button id="Nonsense" class = "uk-button-xmenu uk-button-primary uk-height-1-1 uk-text-small uk-text-nowrap view-options" style="opacity: 0;">Shenanigans▾</button>
<div id="NonsenseDrop" uk-dropdown = "mode: click; offset: 0; delay-hide: 200">
<ul id="IDHelp" class="uk-nav uk-dropdown-nav uk-dark">
<li><button
id="Nuke"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Fission Mailed">
Pay Taxes
</button></li>
<li><button
id="Rick"
class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1"
title = "Never gonna give you up">
Rick
</button></li>
<li><button id="DLC" class = "uk-button-xmenu uk-button-secondary-xmenu uk-button-small uk-width-1-1">
DLC
</button></li>
</ul>
</div>
<img src = "rick.gif" height = "55" width = "55" id="rick1" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick2" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick3" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick4" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick5" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick6" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick7" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick8" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick9" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick10" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick11" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick12" hidden="true">
<img src = "rick.gif" height = "55" width = "55" id="rick13" hidden="true">
</div>
<!--
<button
title="Adds a code editor panel"
alt="Add a new file button"
id="IDAddEditorBTN"
class="uk-button uk-text-small uk-width-1-1 uk-margin-medium-left uk-height-1-1 uk-text-nowrap"
uk-icon="file-edit" dir="rtl">
New File
</button>
<button
title="Opens link in new tab"
alt="Link to open User Guide"
onclick="window.open('https://xrpusersguide.readthedocs.io/en/latest/course/introduction.html', '_blank');"
class="uk-button uk-text-small uk-width-1-1 uk-margin-medium-left uk-height-1-1 uk-text-nowrap"
uk-icon="info" dir="rtl">
User Guide
</button>
<button
title="Opens link in new tab"
alt="Link to open XRP API homepage"
onclick="window.open('https://open-stem.github.io/XRP_MicroPython/', '_blank');"
class="uk-button uk-text-small uk-width-1-1 uk-margin-medium-left uk-height-1-1 uk-text-nowrap"
uk-icon="home" dir="rtl">
XRP API
</button>
-->
</div>
<!-- BELOW LOGO -->
<!--<div id="editor_header_toolbar" class="editor_header_toolbar"></div> -->
</div>
</div>
<div id="IDLayoutContainer" class="layout_container"></div>
</div>
<div id="IDProgressBarParent" uk-modal bg-close="false">
<div class="uk-modal-dialog uk-modal-body progress-bar-parent">
<h4 id="IdProgress_TitleText"></h4>
<div id="IDProgressBar" class="progress_bar"></div>
<div id="IDProgressBar_Text"></div>
</div>
</div>
<div id="view-python-code" uk-modal>
<div class="uk-modal-dialog uk-modal-body python-code">
<button id="view-python-button" title="Close dialog" class="uk-modal-close-default" type="button" uk-close></button>
<div id="view-python-ace" style="padding-top: 3px; height: 100%; width: 100%;"></div>
</div>
</div>
<!-- https://stackoverflow.com/questions/61286599/how-to-force-browser-to-load-new-content -->
<script src="uikit-3.16.22/js/uikit.min.js"></script>
<script src="uikit-3.16.22/js/uikit-icons.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>
<script src="js/blockly-10.0.0/blockly.min.js"></script>
<script src="js/blockly-10.0.0/python_compressed.js"></script>
<script src="js/treejs/tree.js?version=1.0.5.L"></script>
<script src="js/xterm/lib/xterm.js?version=1.0.5.L"></script>
<script src="js/xterm-addon-fit/lib/xterm-addon-fit.js?version=1.0.5.L"></script>
<script src="js/marked/marked.min.js"></script>
<script src="js/ace/ace.js?version=1.0.5.L" type="text/javascript" charset="utf-8"></script>
<script src="js/ace/ext-language_tools.js?version=1.0.5.L"></script>
<script src="js/xrp_blocks.js"></script>
<script src="js/xrp_blocks_python.js"></script>
<script src="js/xrp_blockly_toolbox.js"></script>
<script src="js/editor_wrapper.js?version=1.0.5.L"></script>
<script src="js/filesystem_wrapper.js?version=1.0.5.L"></script>
<script src="js/dir_chooser.js?version=1.0.5.L"></script>
<script src="js/active_terminal_wrapper.js?version=1.0.5.L"></script>
<script src="js/repl.js?version=1.0.5.L"></script>
<script type="module" src="golden-layout/bundle/esm/golden-layout.js?version=1.0.5.L"></script>
<script type="module" src="js/main.js?version=1.0.5.L"></script>
</body>
</html>