-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (52 loc) · 1.91 KB
/
Copy pathindex.html
File metadata and controls
60 lines (52 loc) · 1.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Python + pygame, in your browser</title>
<meta name="description" content="Write and run Python with pygame directly in the browser. Nothing to install, nothing uploaded to a server.">
<link rel="stylesheet" href="/src/styles.css">
</head>
<body class="booting">
<header id="toolbar">
<h1>Python <span>+ pygame</span></h1>
<label class="field">
<span class="sr-only">Example</span>
<select id="examples" aria-label="Load an example"></select>
</label>
<button id="run" class="primary" disabled>Run <kbd>Ctrl</kbd>+<kbd>↵</kbd></button>
<button id="stop" disabled>Stop</button>
<button id="share">Copy share link</button>
<span id="status" role="status" aria-live="polite">Starting Python…</span>
</header>
<main>
<section class="pane" id="editor-pane">
<div class="pane-head" id="tabs-head">
<div id="tabs" role="tablist" aria-label="Project files"></div>
<button id="add-file" class="link" title="Add a new .py file">+ file</button>
</div>
<div id="editor"></div>
</section>
<section class="pane" id="output-pane">
<div class="pane-head">
Output
<button id="clear-console" class="link">clear</button>
</div>
<div id="stage">
<!-- SDL requires this element's id to be exactly "canvas". -->
<canvas id="canvas" width="480" height="360" tabindex="0"
aria-label="Program display"></canvas>
</div>
<div id="console" aria-live="polite"></div>
</section>
</main>
<div id="boot-overlay">
<div class="boot-box">
<div class="spinner" aria-hidden="true"></div>
<p id="boot-text">Downloading Python…</p>
<p class="boot-note">First visit downloads about 8 MB. It is cached afterwards.</p>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>