-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
393 lines (391 loc) · 25.8 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Python Comic</title>
<link rel="stylesheet" href="style.css"/>
<link rel="stylesheet" href="introjs.min.css"/>
<script src="jquery-3.6.4.min.js"></script>
<script src="qs-tools.js"></script>
<script src="comic.js"></script>
</head>
<body>
<main class="comic">
<header class="title">
<h1 id="title" data-step="1" data-intro="Click on the title to edit.">Python Comic</h1>
<h2 id="author" data-step="2" data-intro="Same goes for the author name!">Anonymous Author</h2>
<span id="editor-help"><button onclick="javascript:introJs().start();">Help</button><button id="direct-button" data-step="9"
data-intro="Finally, click here to get the URL of your comic. Share it!">Get Direct Link</button> <a href="#" id="direct-link"></a></span>
<span id="twitter-button"></span>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</header>
<article class="strip">
<div class="frame" id="frame1" data-step="3" data-intro="Each comic frame is controlled by the form underneath it." data-position="right">
<section id="pane1" class="">
<header id="header1" class="textual header"></header>
<img id="bg1" src="" class="bg_image"/>
<iframe id="if1" src="" height="320" width="320" class="microbit">
</iframe>
<pre id="code1" class="pre_code"><code class="textual source_code"></code></pre>
<div class="bubble-top left">
<p class="textual"></p>
</div>
<div class="bubble-top right">
<p class="textual"></p>
</div>
<div class="bubble-bottom left">
<p class="textual"></p>
</div>
<div class="bubble-bottom right">
<p class="textual"></p>
</div>
</section>
<form id="form1">
<p data-step="4"
data-intro="Toggle a frame header, then click it to edit."
data-position="top">
<label for="form-heading">Heading:</label>
<input id="form-heading" type="checkbox"/></p>
<p><label for="form-background">Background:</label>
<select id="form-background" data-step="5"
data-intro="Select a pre-defined background. Alternatively, choose to use a custom image (select 'Image'), embed a micro:bit simulator (select 'Micro:bit' and click the micro:bit-omatic link to generate a URL) or even add example code (select 'Example Code' then click the frame to edit your code)."
data-position="top">
<option value="none">None</option>
<optgroup label="Custom Backgrounds">
<option value="random">Random</option>
<option value="custom">Image (enter URL below)</option>
<option value="microbit">Micro:bit (enter URL below)</option>
<option value="code">Example Code (edit in the pane)</option>
</optgroup>
<optgroup label="Preset Backgrounds">
<option value="arm1_chip.gif">ARM1 Chip</option>
<option value="bauhaus.jpg">Bauhaus</option>
<option value="bbc_basic.gif">BBC Basic</option>
<option value="bbc_micro.jpg">BBC Micro</option>
<option value="bbc_microbit_back.jpg">BBC micro:bit back</option>
<option value="bbc_microbit_front.jpg">BBC micro:bit front</option>
<option value="bbc_microbit_logo.jpg">BBC micro:bit logo</option>
<option value="bbc_owl.jpg">BBC Owl</option>
<option value="beach.jpg">Beach</option>
<option value="belfast.jpg">Belfast</option>
<option value="bluebells.jpg">Bluebells</option>
<option value="cardiff.jpg">Cardiff</option>
<option value="circuit.jpg">Circuit</option>
<option value="cloudy_lake.jpg">Cloudy Lake</option>
<option value="colossus.jpg">Colossus</option>
<option value="computer_class.jpg">Computer Class</option>
<option value="country_lane.jpg">Country Lane</option>
<option value="death_star.jpg">Death Star</option>
<option value="doradus.jpg">Doradus</option>
<option value="dunes.jpg">Dunes</option>
<option value="edinburgh.jpg">Edinburgh</option>
<option value="field.jpg">Field</option>
<option value="fish.jpg">Fish</option>
<option value="forest_lake.jpg">Forest Lake</option>
<option value="forest_stream.jpg">Forest Stream</option>
<option value="guido.jpg">Guido van Rossum</option>
<option value="london.jpg">London</option>
<option value="mars.jpg">Mars</option>
<option value="monument_valley.jpg">Monument Valley</option>
<option value="moon.jpg">Moon</option>
<option value="mountain_river.jpg">Mountain River</option>
<option value="office.jpg">Office</option>
<option value="old_computer.jpg">Old Computer</option>
<option value="pattern01.jpg">Pattern 01</option>
<option value="pattern02.jpg">Pattern 02</option>
<option value="pattern03.jpg">Pattern 03</option>
<option value="pattern04.jpg">Pattern 04</option>
<option value="pattern05.jpg">Pattern 05</option>
<option value="pattern06.jpg">Pattern 06</option>
<option value="pattern07.jpg">Pattern 07</option>
<option value="pattern08.jpg">Pattern 08</option>
<option value="pattern09.jpg">Pattern 09</option>
<option value="pattern10.jpg">Pattern 10</option>
<option value="pattern11.jpg">Pattern 11</option>
<option value="pattern12.jpg">Pattern 12</option>
<option value="pattern13.jpg">Pattern 13</option>
<option value="pattern14.jpg">Pattern 14</option>
<option value="pattern15.jpg">Pattern 15</option>
<option value="pattern16.jpg">Pattern 16</option>
<option value="pattern17.jpg">Pattern 17</option>
<option value="pattern18.jpg">Pattern 18</option>
<option value="pattern19.jpg">Pattern 19</option>
<option value="pattern20.jpg">Pattern 20</option>
<option value="pattern21.jpg">Pattern 21</option>
<option value="phosphor_sea.jpg">Phosphor Sea</option>
<option value="pong.jpg">Pong</option>
<option value="python_powered.jpg">Python Powered</option>
<option value="raspberry_pi.jpg">Raspberry Pi</option>
<option value="seaside.jpg">Seaside</option>
<option value="servers.jpg">Servers</option>
<option value="skulls.jpg">Skulls</option>
<option value="snow.jpg">Snow</option>
<option value="solar_system.jpg">Solar System</option>
<option value="sunset.jpg">Sunset</option>
<option value="winter_sun.jpg">Winter Sun</option>
</optgroup>
</select></p>
<p><input id="form-image-url" type="text" class="custom-image" disabled="disabled" data-step="6" data-intro="Add the URL to your custom image here." data-position="top"/><a href="/microbit.html" class="mb-link" target="_blank">micro:bit-o-matic</a></p>
<p><label for="form-snakes">Snakes:</label>
<select id="form-snakes" data-step="7"
data-intro="The comic features two characters, the yellow and blue Python snakes. Use this to control who gets displayed." data-position="top">
<option value="none">None</option>
<option value="both">Both</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
</select></p>
<p data-step="8"
data-intro="Toggle speech bubbles, then click to edit."
data-position="top">
<label for="form-tl">Speech bubbles:</label><br/>
<input type="checkbox" value="lt" id="form-lt">Top Left</input>
<input type="checkbox" value="rt" id="form-rt">Top Right</input><br/>
<input type="checkbox" value="lb" id="form-lb">Bottom Left</input>
<input type="checkbox" value="rb" id="form-rb">Bottom Right</input></p>
<p><button type="reset" id="reset-button">Reset</button></p>
</form>
</div>
<div class="frame" id="frame2">
<section id="pane2" class="">
<header id="header2" class="textual header"></header>
<img id="bg2" src="" class="bg_image"/>
<iframe id="if2" src="" height="320" width="320" class="microbit">
</iframe>
<pre id="code2" class="pre_code"><code class="textual source_code"></code></pre>
<div class="bubble-top left">
<p class="textual"></p>
</div>
<div class="bubble-top right">
<p class="textual"></p>
</div>
<div class="bubble-bottom left">
<p class="textual"></p>
</div>
<div class="bubble-bottom right">
<p class="textual"></p>
</div>
</section>
<form id="form2">
<p><label for="form-heading">Heading:</label>
<input id="form-heading" type="checkbox"/></p>
<p><label for="form-background">Background:</label>
<select id="form-background">
<option value="none">None</option>
<optgroup label="Custom Backgrounds">
<option value="random">Random</option>
<option value="custom">Image (enter URL below)</option>
<option value="microbit">Micro:bit (enter URL below)</option>
<option value="code">Example Code (edit in the pane)</option>
</optgroup>
<optgroup label="Preset Backgrounds">
<option value="arm1_chip.gif">ARM1 Chip</option>
<option value="bauhaus.jpg">Bauhaus</option>
<option value="bbc_basic.gif">BBC Basic</option>
<option value="bbc_micro.jpg">BBC Micro</option>
<option value="bbc_microbit_back.jpg">BBC micro:bit back</option>
<option value="bbc_microbit_front.jpg">BBC micro:bit front</option>
<option value="bbc_microbit_logo.jpg">BBC micro:bit logo</option>
<option value="bbc_owl.jpg">BBC Owl</option>
<option value="beach.jpg">Beach</option>
<option value="belfast.jpg">Belfast</option>
<option value="bluebells.jpg">Bluebells</option>
<option value="cardiff.jpg">Cardiff</option>
<option value="circuit.jpg">Circuit</option>
<option value="cloudy_lake.jpg">Cloudy Lake</option>
<option value="colossus.jpg">Colossus</option>
<option value="computer_class.jpg">Computer Class</option>
<option value="country_lane.jpg">Country Lane</option>
<option value="death_star.jpg">Death Star</option>
<option value="doradus.jpg">Doradus</option>
<option value="dunes.jpg">Dunes</option>
<option value="edinburgh.jpg">Edinburgh</option>
<option value="field.jpg">Field</option>
<option value="fish.jpg">Fish</option>
<option value="forest_lake.jpg">Forest Lake</option>
<option value="forest_stream.jpg">Forest Stream</option>
<option value="guido.jpg">Guido van Rossum</option>
<option value="london.jpg">London</option>
<option value="mars.jpg">Mars</option>
<option value="monument_valley.jpg">Monument Valley</option>
<option value="moon.jpg">Moon</option>
<option value="mountain_river.jpg">Mountain River</option>
<option value="office.jpg">Office</option>
<option value="old_computer.jpg">Old Computer</option>
<option value="pattern01.jpg">Pattern 01</option>
<option value="pattern02.jpg">Pattern 02</option>
<option value="pattern03.jpg">Pattern 03</option>
<option value="pattern04.jpg">Pattern 04</option>
<option value="pattern05.jpg">Pattern 05</option>
<option value="pattern06.jpg">Pattern 06</option>
<option value="pattern07.jpg">Pattern 07</option>
<option value="pattern08.jpg">Pattern 08</option>
<option value="pattern09.jpg">Pattern 09</option>
<option value="pattern10.jpg">Pattern 10</option>
<option value="pattern11.jpg">Pattern 11</option>
<option value="pattern12.jpg">Pattern 12</option>
<option value="pattern13.jpg">Pattern 13</option>
<option value="pattern14.jpg">Pattern 14</option>
<option value="pattern15.jpg">Pattern 15</option>
<option value="pattern16.jpg">Pattern 16</option>
<option value="pattern17.jpg">Pattern 17</option>
<option value="pattern18.jpg">Pattern 18</option>
<option value="pattern19.jpg">Pattern 19</option>
<option value="pattern20.jpg">Pattern 20</option>
<option value="pattern21.jpg">Pattern 21</option>
<option value="phosphor_sea.jpg">Phosphor Sea</option>
<option value="pong.jpg">Pong</option>
<option value="python_powered.jpg">Python Powered</option>
<option value="raspberry_pi.jpg">Raspberry Pi</option>
<option value="seaside.jpg">Seaside</option>
<option value="servers.jpg">Servers</option>
<option value="skulls.jpg">Skulls</option>
<option value="snow.jpg">Snow</option>
<option value="solar_system.jpg">Solar System</option>
<option value="sunset.jpg">Sunset</option>
<option value="winter_sun.jpg">Winter Sun</option>
</optgroup>
</select></p>
<p><input id="form-image-url" type="text" class="custom-image" disabled="disabled"/><a href="/microbit.html" class="mb-link" target="_blank">micro:bit-o-matic</a></p>
<p><label for="form-snakes">Snakes:</label>
<select id="form-snakes">
<option value="none">None</option>
<option value="both">Both</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
</select></p>
<p><label for="form-tl">Speech bubbles:</label><br/>
<input type="checkbox" value="lt" id="form-lt">Top Left</input>
<input type="checkbox" value="rt" id="form-rt">Top Right</input><br/>
<input type="checkbox" value="lb" id="form-lb">Bottom Left</input>
<input type="checkbox" value="rb" id="form-rb">Bottom Right</input></p>
<p><button type="reset" id="reset-button">Reset</button></p>
</form>
</div>
<div class="frame" id="frame3">
<section id="pane3" class="">
<header id="header3" class="textual header"></header>
<img id="bg3" src="" class="bg_image"/>
<iframe id="if3" src="" height="320" width="320" class="microbit">
</iframe>
<pre id="code3" class="pre_code"><code class="textual source_code"></code></pre>
<div class="bubble-top left">
<p class="textual"></p>
</div>
<div class="bubble-top right">
<p class="textual"></p>
</div>
<div class="bubble-bottom left">
<p class="textual"></p>
</div>
<div class="bubble-bottom right">
<p class="textual"></p>
</div>
</section>
<form id="form3">
<p><label for="form-heading">Heading:</label>
<input id="form-heading" type="checkbox"/></p>
<p><label for="form-background">Background:</label>
<select id="form-background">
<option value="none">None</option>
<optgroup label="Custom Backgrounds">
<option value="random">Random</option>
<option value="custom">Image (enter URL below)</option>
<option value="microbit">Micro:bit (enter URL below)</option>
<option value="code">Example Code (edit in the pane)</option>
</optgroup>
<optgroup label="Preset Backgrounds">
<option value="arm1_chip.gif">ARM1 Chip</option>
<option value="bauhaus.jpg">Bauhaus</option>
<option value="bbc_basic.gif">BBC Basic</option>
<option value="bbc_micro.jpg">BBC Micro</option>
<option value="bbc_microbit_back.jpg">BBC micro:bit back</option>
<option value="bbc_microbit_front.jpg">BBC micro:bit front</option>
<option value="bbc_microbit_logo.jpg">BBC micro:bit logo</option>
<option value="bbc_owl.jpg">BBC Owl</option>
<option value="beach.jpg">Beach</option>
<option value="belfast.jpg">Belfast</option>
<option value="bluebells.jpg">Bluebells</option>
<option value="cardiff.jpg">Cardiff</option>
<option value="circuit.jpg">Circuit</option>
<option value="cloudy_lake.jpg">Cloudy Lake</option>
<option value="colossus.jpg">Colossus</option>
<option value="computer_class.jpg">Computer Class</option>
<option value="country_lane.jpg">Country Lane</option>
<option value="death_star.jpg">Death Star</option>
<option value="doradus.jpg">Doradus</option>
<option value="dunes.jpg">Dunes</option>
<option value="edinburgh.jpg">Edinburgh</option>
<option value="field.jpg">Field</option>
<option value="fish.jpg">Fish</option>
<option value="forest_lake.jpg">Forest Lake</option>
<option value="forest_stream.jpg">Forest Stream</option>
<option value="guido.jpg">Guido van Rossum</option>
<option value="london.jpg">London</option>
<option value="mars.jpg">Mars</option>
<option value="monument_valley.jpg">Monument Valley</option>
<option value="moon.jpg">Moon</option>
<option value="mountain_river.jpg">Mountain River</option>
<option value="office.jpg">Office</option>
<option value="old_computer.jpg">Old Computer</option>
<option value="pattern01.jpg">Pattern 01</option>
<option value="pattern02.jpg">Pattern 02</option>
<option value="pattern03.jpg">Pattern 03</option>
<option value="pattern04.jpg">Pattern 04</option>
<option value="pattern05.jpg">Pattern 05</option>
<option value="pattern06.jpg">Pattern 06</option>
<option value="pattern07.jpg">Pattern 07</option>
<option value="pattern08.jpg">Pattern 08</option>
<option value="pattern09.jpg">Pattern 09</option>
<option value="pattern10.jpg">Pattern 10</option>
<option value="pattern11.jpg">Pattern 11</option>
<option value="pattern12.jpg">Pattern 12</option>
<option value="pattern13.jpg">Pattern 13</option>
<option value="pattern14.jpg">Pattern 14</option>
<option value="pattern15.jpg">Pattern 15</option>
<option value="pattern16.jpg">Pattern 16</option>
<option value="pattern17.jpg">Pattern 17</option>
<option value="pattern18.jpg">Pattern 18</option>
<option value="pattern19.jpg">Pattern 19</option>
<option value="pattern20.jpg">Pattern 20</option>
<option value="pattern21.jpg">Pattern 21</option>
<option value="phosphor_sea.jpg">Phosphor Sea</option>
<option value="pong.jpg">Pong</option>
<option value="python_powered.jpg">Python Powered</option>
<option value="raspberry_pi.jpg">Raspberry Pi</option>
<option value="seaside.jpg">Seaside</option>
<option value="servers.jpg">Servers</option>
<option value="skulls.jpg">Skulls</option>
<option value="snow.jpg">Snow</option>
<option value="solar_system.jpg">Solar System</option>
<option value="sunset.jpg">Sunset</option>
<option value="winter_sun.jpg">Winter Sun</option>
</optgroup>
</select></p>
<p><input id="form-image-url" type="text" class="custom-image" disabled="disabled"/><a href="/microbit.html" class="mb-link" target="_blank">micro:bit-o-matic</a></p>
<p><label for="form-snakes">Snakes:</label>
<select id="form-snakes">
<option value="none">None</option>
<option value="both">Both</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
</select></p>
<p><label for="form-tl">Speech bubbles:</label><br/>
<input type="checkbox" value="lt" id="form-lt">Top Left</input>
<input type="checkbox" value="rt" id="form-rt">Top Right</input><br/>
<input type="checkbox" value="lb" id="form-lb">Bottom Left</input>
<input type="checkbox" value="rb" id="form-rb">Bottom Right</input></p>
<p><button type="reset" id="reset-button">Reset</button></p>
</form>
</div>
</article>
<footer class="smallprint">
<p>Generated by Python Comics.
<a href="http://pycomic.github.io/" id="home-link">MAKE YOUR OWN</a>
</p>
</footer>
</main>
<script src="intro.min.js"></script>
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; return t; }(document, "script", "twitter-wjs"));</script>
</body>
</html>