Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
460 lines (439 loc) · 25.8 KB
/
Copy pathindex.html
File metadata and controls
460 lines (439 loc) · 25.8 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
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#000000">
<meta name="color-scheme" content="dark light">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>PyPad — The Python Web IDE</title>
<link rel="icon" type="image/svg+xml"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23cc0000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M5 4h6a3 3 0 0 1 0 6H5zM5 4v13'/%3E%3C/svg%3E">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="index.css">
</head>
<body>
<!-- ═══════════════════════════════════════════════════════════════
SVG ICON SPRITE
═══════════════════════════════════════════════════════════════ -->
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
<defs>
<!-- attribute shorthand: stroke=current, no-fill, round/round, sw=1.4 -->
<symbol id="i-logo" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"
d="M5 4h6a3 3 0 0 1 0 6H5zM5 4v13" />
</symbol>
<symbol id="i-py" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M6 3.5h5a2.5 2.5 0 0 1 2.5 2.5v3.5H9A2.5 2.5 0 0 0 6.5 12v4.5" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M14 16.5H9a2.5 2.5 0 0 1-2.5-2.5v-3.5H11A2.5 2.5 0 0 0 13.5 8V3.5" />
<circle cx="8" cy="6" r=".7" fill="currentColor" />
<circle cx="12" cy="14" r=".7" fill="currentColor" />
</symbol>
<symbol id="i-run" viewBox="0 0 20 20">
<path fill="currentColor" d="M6 4.5l9 5.5-9 5.5z" />
</symbol>
<symbol id="i-stop" viewBox="0 0 20 20">
<rect x="5" y="5" width="10" height="10" rx="1.5" fill="currentColor" />
</symbol>
<symbol id="i-format" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M10 2.5 11.4 8.6 17 10l-5.6 1.4L10 17.5 8.6 11.4 3 10l5.6-1.4Z" />
<path fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"
d="M16.5 3.5 17 5l1.5.5L17 6l-.5 1.5L16 6 14.5 5.5 16 5z" opacity=".7" />
</symbol>
<symbol id="i-folder" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 6.5A1.5 1.5 0 0 1 4.5 5h3.2l1.5 1.6h6.3A1.5 1.5 0 0 1 17 8.1V14.5A1.5 1.5 0 0 1 15.5 16h-11A1.5 1.5 0 0 1 3 14.5z" />
</symbol>
<symbol id="i-folder-open" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 6.5A1.5 1.5 0 0 1 4.5 5h3.2l1.5 1.6h6.3A1.5 1.5 0 0 1 17 8.1V9H3z" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 9h14l-1.6 6A1.5 1.5 0 0 1 14 16H4.5A1.5 1.5 0 0 1 3 14.5z" />
</symbol>
<symbol id="i-doc" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M5 3.5h6l4 4V16.5a.5.5 0 0 1-.5.5h-9.5A.5.5 0 0 1 4.5 16.5V4A.5.5 0 0 1 5 3.5z" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="11 3.5 11 7.5 15 7.5" />
</symbol>
<symbol id="i-terminal" viewBox="0 0 20 20">
<rect x="2.5" y="4" width="15" height="12" rx="2" fill="none" stroke="currentColor" stroke-width="1.4" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="6 8.5 9 10.5 6 12.5" />
<line x1="10.5" y1="13" x2="14" y2="13" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-problems" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M10 3.5 17 16H3z" />
<line x1="10" y1="8.5" x2="10" y2="12" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
<circle cx="10" cy="14.2" r=".9" fill="currentColor" />
</symbol>
<symbol id="i-gitlab" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M10 17 3 11l1.5-5.5L7 11l3-7.5 3 7.5 2.5-5.5L17 11z" />
</symbol>
<symbol id="i-settings" viewBox="0 0 20 20">
<!-- sliders icon — three rails with knobs at different positions; visually
unambiguous as "preferences" and impossible to confuse with the sun. -->
<line x1="3" y1="5.5" x2="17" y2="5.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
<line x1="3" y1="10" x2="17" y2="10" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
<line x1="3" y1="14.5" x2="17" y2="14.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
<circle cx="13" cy="5.5" r="2" fill="currentColor"/>
<circle cx="7" cy="10" r="2" fill="currentColor"/>
<circle cx="14" cy="14.5" r="2" fill="currentColor"/>
</symbol>
<symbol id="i-sun" viewBox="0 0 20 20">
<circle cx="10" cy="10" r="3.4" fill="none" stroke="currentColor" stroke-width="1.4" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"
d="M10 2.5v1.8M10 15.7v1.8M2.5 10h1.8M15.7 10h1.8M4.6 4.6l1.3 1.3M14.1 14.1l1.3 1.3M15.4 4.6l-1.3 1.3M5.9 14.1l-1.3 1.3" />
</symbol>
<symbol id="i-moon" viewBox="0 0 20 20">
<path fill="currentColor"
d="M14.8 12.2A6.2 6.2 0 0 1 8 5.2a6 6 0 0 1 .8-3A7.5 7.5 0 1 0 17.5 13a6 6 0 0 1-2.7-.8z" />
</symbol>
<symbol id="i-save" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M4 4.5h9l3 3v9a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 4 16.5z" />
<rect x="6.5" y="4.5" width="6" height="4" fill="none" stroke="currentColor" stroke-width="1.2" />
<rect x="6.5" y="11.5" width="7" height="5.5" fill="none" stroke="currentColor" stroke-width="1.2" />
</symbol>
<symbol id="i-open" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 14.5V6.5A1.5 1.5 0 0 1 4.5 5H8l1.5 1.6h6A1.5 1.5 0 0 1 17 8.1" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 14.5 4.7 9h14L17 14.5A1.5 1.5 0 0 1 15.5 16h-11A1.5 1.5 0 0 1 3 14.5z" />
</symbol>
<symbol id="i-new" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M5 3.5h6l4 4V16.5a.5.5 0 0 1-.5.5h-9.5A.5.5 0 0 1 4.5 16.5V4A.5.5 0 0 1 5 3.5z" />
<line x1="10" y1="10" x2="10" y2="14.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<line x1="7.7" y1="12.25" x2="12.3" y2="12.25" stroke="currentColor" stroke-width="1.4"
stroke-linecap="round" />
</symbol>
<symbol id="i-commit" viewBox="0 0 20 20">
<circle cx="10" cy="13" r="2.8" fill="none" stroke="currentColor" stroke-width="1.4" />
<line x1="10" y1="10.2" x2="10" y2="3.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="7.5 6 10 3.5 12.5 6" />
</symbol>
<symbol id="i-branch" viewBox="0 0 20 20">
<circle cx="6" cy="5" r="1.6" fill="none" stroke="currentColor" stroke-width="1.4" />
<circle cx="14" cy="5" r="1.6" fill="none" stroke="currentColor" stroke-width="1.4" />
<circle cx="10" cy="15" r="1.6" fill="none" stroke="currentColor" stroke-width="1.4" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M6 6.5v3a3 3 0 0 0 3 3M14 6.5v3a3 3 0 0 1-3 3M10 13.5v-1" />
</symbol>
<symbol id="i-search" viewBox="0 0 20 20">
<circle cx="9" cy="9" r="4.2" fill="none" stroke="currentColor" stroke-width="1.4" />
<line x1="12.2" y1="12.2" x2="16" y2="16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-close" viewBox="0 0 20 20">
<line x1="5.5" y1="5.5" x2="14.5" y2="14.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<line x1="14.5" y1="5.5" x2="5.5" y2="14.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-trash" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M5 6h10M8 6V4h4v2M6 6.5l.8 10A1 1 0 0 0 7.8 17.5h4.4a1 1 0 0 0 1-1l.8-10" />
</symbol>
<symbol id="i-undo" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M4 9h8a4 4 0 0 1 0 8h-2" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="7 6 4 9 7 12" />
</symbol>
<symbol id="i-redo" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M16 9H8a4 4 0 0 0 0 8h2" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="13 6 16 9 13 12" />
</symbol>
<symbol id="i-tab" viewBox="0 0 20 20">
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="4 7 7 10 4 13" />
<line x1="8.5" y1="10" x2="15" y2="10" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<line x1="16" y1="6" x2="16" y2="14" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-backspace" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M7 5h8.5A1.5 1.5 0 0 1 17 6.5v7a1.5 1.5 0 0 1-1.5 1.5H7l-4-5z" />
<line x1="10" y1="8.5" x2="13.5" y2="11.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" />
<line x1="13.5" y1="8.5" x2="10" y2="11.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" />
</symbol>
<symbol id="i-return" viewBox="0 0 20 20">
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="16 5 16 10 6 10 9 7" />
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="6 10 9 13" />
</symbol>
<symbol id="i-shift" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M10 3 4 10h3v6.5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V10h3z" />
</symbol>
<symbol id="i-monitor" viewBox="0 0 20 20">
<rect x="2.5" y="3.5" width="15" height="10.5" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.4" />
<line x1="6.5" y1="17.2" x2="13.5" y2="17.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<line x1="10" y1="14" x2="10" y2="17.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-keyboard" viewBox="0 0 20 20">
<rect x="2.5" y="6" width="15" height="9" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.4" />
<line x1="5" y1="9" x2="5.3" y2="9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
<line x1="8" y1="9" x2="8.3" y2="9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
<line x1="11" y1="9" x2="11.3" y2="9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
<line x1="14" y1="9" x2="14.3" y2="9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
<line x1="6.5" y1="12.5" x2="13.5" y2="12.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-chevron-down" viewBox="0 0 20 20">
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="5 8 10 13 15 8" />
</symbol>
<symbol id="i-up" viewBox="0 0 20 20">
<polyline fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
points="5 12 10 7 15 12" />
</symbol>
<symbol id="i-pkg" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M10 3 3.5 6v8L10 17l6.5-3V6z" />
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3.5 6 10 9.5l6.5-3.5M10 9.5V17" />
</symbol>
<symbol id="i-clear" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"
d="M3 7h14M5 7l1 9.5A1 1 0 0 0 7 17.5h6A1 1 0 0 0 14 16.5L15 7M8 7V4h4v3" />
<line x1="8.5" y1="10" x2="9.5" y2="14" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<line x1="11.5" y1="10" x2="10.5" y2="14" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-power" viewBox="0 0 20 20">
<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M6 5.5a6 6 0 1 0 8 0" />
<line x1="10" y1="3" x2="10" y2="10" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
</symbol>
<symbol id="i-info" viewBox="0 0 20 20">
<circle cx="10" cy="10" r="6.5" fill="none" stroke="currentColor" stroke-width="1.4" />
<line x1="10" y1="9" x2="10" y2="13.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" />
<circle cx="10" cy="6.5" r=".9" fill="currentColor" />
</symbol>
</defs>
</svg>
<canvas id="field" aria-hidden="true"></canvas>
<div class="app" id="app">
<!-- ═══════════════════════════════════════════════════
TOPBAR
═══════════════════════════════════════════════════ -->
<header class="topbar">
<div class="brand">
<!-- <svg>
<use href="#i-logo" />
</svg> -->
<span class="word">Py<b>Pad</b></span>
</div>
<div class="file-pill" id="filePill" data-tip="Current file">
<svg>
<use href="#i-py" />
</svg>
<span class="fname" id="fileName">untitled.py</span>
<span class="dot"></span>
</div>
<span class="tb-spacer"></span>
<button class="icon-btn" id="btnRun" data-tip="Run · Ctrl+Enter"><svg>
<use href="#i-run" />
</svg></button>
<button class="icon-btn" id="btnFormat" data-tip="Format · Ctrl+Shift+F"><svg>
<use href="#i-format" />
</svg></button>
<button class="icon-btn" id="btnSave" data-tip="Save · Ctrl+S"><svg>
<use href="#i-save" />
</svg></button>
<button class="icon-btn" id="btnExplorer" data-tip="Explorer"><svg>
<use href="#i-folder" />
</svg></button>
<button class="icon-btn" id="btnOpenDir" data-tip="Open folder from disk"><svg>
<use href="#i-folder-open" />
</svg></button>
<button class="icon-btn" id="btnTerm" data-tip="Terminal · Ctrl+`"><svg>
<use href="#i-terminal" />
</svg></button>
<button class="icon-btn" id="btnProblems" data-tip="Problems"><svg>
<use href="#i-problems" />
</svg></button>
<button class="icon-btn" id="btnGitlab" data-tip="GitLab"><svg>
<use href="#i-gitlab" />
</svg>
<span class="badge-dot" id="glDot"></span>
</button>
<button class="icon-btn" id="btnSettings" data-tip="Settings"><svg>
<use href="#i-settings" />
</svg></button>
<button class="icon-btn" id="btnTheme" data-tip="Toggle theme"><svg id="themeIcon">
<use href="#i-sun" />
</svg></button>
</header>
<!-- ═══════════════════════════════════════════════════
WORKSPACE
═══════════════════════════════════════════════════ -->
<main class="workspace" id="workspace" data-side="closed" data-right="closed" data-bottom="closed">
<!-- SIDEBAR (Explorer) -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-inner">
<div class="side-section">
<div class="side-head">
<span class="label">Explorer</span>
<button class="mini-btn" data-tip="New file" onclick="newFile()"><svg>
<use href="#i-new" />
</svg></button>
<button class="mini-btn" data-tip="Open from GitLab" onclick="openGitlabPanel()"><svg>
<use href="#i-gitlab" />
</svg></button>
</div>
<div class="tree" id="fileTree">
<div class="tree-empty">
<div>No files open.</div>
<div style="margin-top:8px" class="hint">Create a new file or load a repo from GitLab.</div>
</div>
</div>
</div>
<div class="side-divider"></div>
<div class="side-section" style="padding-bottom:18px">
<div class="side-head"><span class="label">Runtime</span></div>
<div style="padding: 0 14px; font-size: 11px; color: var(--text-dim); line-height: 1.7;">
<div><span style="color: var(--dim)">Python</span> · <span id="rtVer" style="color: var(--blue)">…</span>
</div>
<div><span style="color: var(--dim)">Engine</span> · <span style="color: var(--purple)">Pyodide</span>
</div>
<div><span style="color: var(--dim)">Status</span> · <span id="rtState"
style="color: var(--amber)">cold</span></div>
</div>
</div>
</div>
</aside>
<!-- EDITOR -->
<section class="editor">
<div class="breadcrumb">
<svg>
<use href="#i-folder-open" />
</svg>
<span class="crumb" id="bcPath">local</span>
<span class="sep">›</span>
<span class="crumb active" id="bcFile">untitled.py</span>
<span class="right">
<span class="runtime-text" id="rtBreadcrumb">Pyodide cold</span>
</span>
</div>
<div class="code-host">
<div class="gutter" id="gutter"></div>
<div class="code-stack" id="codeStack">
<pre class="hl"><code id="hlCode"></code></pre>
<textarea id="src" class="src" spellcheck="false" autocorrect="off" autocapitalize="off" wrap="off"
autocomplete="off"></textarea>
<div class="placeholder" id="placeholder">
# new file — start typing.
# Ctrl+Enter to run · Ctrl+` for terminal · Ctrl+S to save</div>
</div>
</div>
</section>
<!-- RIGHT PANEL — supports multiple tabs identical to bottom -->
<aside class="right-panel" id="rightPanel">
<div class="right-panel-inner">
<div class="panel-head" id="rTabs" data-slot="right">
<div class="ph-spacer"></div>
<button class="ph-action" id="rDock" data-tip="Move active to bottom"><svg>
<use href="#i-chevron-down" />
</svg></button>
<button class="ph-action" id="rClose" data-tip="Close active"><svg>
<use href="#i-close" />
</svg></button>
</div>
<div class="panel-body" id="rightBody" data-slot="right"></div>
</div>
</aside>
<!-- BOTTOM PANEL -->
<section class="bottom-panel" id="bottomPanel">
<div class="panel-head" id="bTabs" data-slot="bottom">
<div class="ph-spacer"></div>
<button class="ph-action" id="bDock" data-tip="Move active to right"><svg>
<use href="#i-up" />
</svg></button>
<button class="ph-action" id="bClose" data-tip="Close active"><svg>
<use href="#i-close" />
</svg></button>
</div>
<div class="panel-body" id="bottomBody" data-slot="bottom"></div>
</section>
</main>
<!-- ═══════════════════════════════════════════════════
STATUS BAR
═══════════════════════════════════════════════════ -->
<footer class="statusbar">
<span class="si errors" id="stErrors"><svg>
<use href="#i-problems" />
</svg> 0</span>
<span class="si warnings" id="stWarnings"><svg>
<use href="#i-problems" />
</svg> 0</span>
<span class="si branch" id="stBranch"><svg>
<use href="#i-branch" />
</svg> local</span>
<span class="si python" id="stPython"><svg>
<use href="#i-py" />
</svg> Python</span>
<span class="si runtime loading" id="stRuntime"><span class="spin"
style="width:9px;height:9px;border-width:1.5px"></span> Pyodide loading…</span>
<span class="spacer"></span>
<span class="si" id="stPos">Ln 1, Col 1</span>
<span class="si">UTF-8</span>
<span class="si" id="stKbd" data-tip="Toggle on-screen keyboard"><svg>
<use href="#i-keyboard" />
</svg> Keyboard</span>
</footer>
</div>
<!-- ═══════════════════════════════════════════════════════════════
MOBILE KEYBOARD
═══════════════════════════════════════════════════════════════ -->
<button class="mkbd-retract" id="mkbdRetract" data-tip="Retract keyboard" aria-label="Retract keyboard">
<svg><use href="#i-chevron-down"/></svg>
</button>
<div class="mkbd" id="mkbd" aria-hidden="true">
<div class="mkbd-row">
<button class="mk tok" data-ins="def ">def</button>
<button class="mk tok" data-ins="class ">class</button>
<button class="mk tok" data-ins="return ">return</button>
<button class="mk tok" data-ins="import ">import</button>
<button class="mk tok" data-ins="from ">from</button>
<button class="mk tok" data-ins="if ">if</button>
<button class="mk tok" data-ins="for ">for</button>
<button class="mk tok" data-ins=" -> ">→</button>
</div>
<div class="mkbd-row" id="kRow1"></div>
<div class="mkbd-row" id="kRow2"></div>
<div class="mkbd-row" id="kRow3"></div>
<div class="mkbd-row">
<button class="mk act" data-act="tab" data-tip="Indent"><svg>
<use href="#i-tab" />
</svg></button>
<button class="mk act" data-act="symbols" id="kbSymToggle">123</button>
<button class="mk space" data-ins=" ">space</button>
<button class="mk act" data-act="paren">( )</button>
<button class="mk act" data-act="quote">" "</button>
<button class="mk act" data-act="enter"><svg>
<use href="#i-return" />
</svg></button>
</div>
</div>
<!-- ═══════════════════════════════════════════════════════════════
TOOLTIP / TOAST / SHEET HOSTS
═══════════════════════════════════════════════════════════════ -->
<div class="tip" id="tip" role="tooltip"></div>
<div class="toast-host" id="toastHost"></div>
<div class="sheet-overlay" id="sheetOverlay" onclick="maybeCloseSheet(event)">
<div class="sheet" id="sheetBody"></div>
</div>
<!-- ═══════════════════════════════════════════════════════════════
SCRIPTS
═══════════════════════════════════════════════════════════════ -->
<script src="index.js" defer></script>
</body>
</html>