forked from google/santa-tracker-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
332 lines (311 loc) · 29.5 KB
/
Copy pathindex.html
File metadata and controls
332 lines (311 loc) · 29.5 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
<!DOCTYPE html>
<!--
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,600,800|Lobster" />
<link href="codeboogie-scene.css" rel="stylesheet" />
</head>
<body>
<div id="module-codeboogie">
<svg>
<symbol id="result-failure" viewBox="0 0 470.8 406"><style>.failure-st0{opacity:.2;fill:#332e2e;enable-background:new}.failure-st1{fill:none;stroke:#d82a2a;stroke-width:19.1665;stroke-linecap:round;stroke-miterlimit:10}.failure-st2{fill:#fadcbc}.failure-st3{fill:#fff}.failure-st4{fill:#332e2e}.failure-st5{fill:#f9ce1d}.failure-st7{fill:#ef3b39}.failure-st9{fill:#774d2e}.failure-st10,.failure-st12,.failure-st13{fill:none;stroke:#ef3b39;stroke-width:19.1665;stroke-linecap:round;stroke-miterlimit:10}.failure-st12,.failure-st13{stroke:#1d893c}.failure-st13{stroke:#31a657}.failure-st15{fill:#31a657}.failure-st17{fill:#bf8f68}.failure-st18{fill:none;stroke:#332e2e;stroke-width:2.5;stroke-miterlimit:10}</style><ellipse class="failure-st0" cx="335.1" cy="395.4" rx="85.6" ry="10.7"/><ellipse class="failure-st0" cx="136.8" cy="395.4" rx="85.6" ry="10.7"/><g><g><g><path class="failure-st1" d="M128.5 181.1c-43.5-17.4-70.1-53.7-93.2-7.5"/><g><circle class="failure-st2" cx="26.7" cy="192.1" r="20.4"/></g><g><g><path class="failure-st3" d="M15.5 175l31.4 14.5c4.9 2.2 10.5.1 12.7-4.7 2.2-4.9.1-10.5-4.7-12.7l-31.4-14.5c-4.9-2.2-10.5-.1-12.7 4.7-2.2 4.7 0 10.5 4.7 12.7z"/></g></g></g><g><path class="failure-st1" d="M136.1 337.7c26.9-52.2-2.7-85.6-26.7-85.7"/><g><path class="failure-st4" d="M181.2 387.8c-4.3 9.2-15.2 13.1-24.5 9.1l-43.1-18.2c-2.4-1.1-3.5-3.8-2.6-6.3l16.2-38.6 17.7 7.5-5.3 12.7c-3 7.3.3 15.7 7.7 18.8 9.4 4 20.4-.5 24.3-9.9 9.7 4.2 14.1 15.4 9.6 24.9z"/><g><path class="failure-st5" d="M144.1 356c1-2.5-.1-5.3-2.6-6.3l-6.6-2.8c-2.5-1-5.3.1-6.3 2.6s.1 5.3 2.6 6.3l6.6 2.8c2.5.9 5.3-.2 6.3-2.6z"/></g></g></g><g><path fill="#32a558" d="M94.7 256l33 5.8-2.1-86.5z"/><path class="failure-st7" d="M127.2 165.8c-22.2-3.8-43.3 11-47.2 33.3l-5.8 33.8c-3.8 22.3 11.1 43.4 33.3 47.3 22.3 3.8 43.4-11.1 47.3-33.3l5.8-33.8c3.7-22.3-11.1-43.4-33.4-47.3z"/><path d="M154.7 246.8l5.8-33.8c3.8-22.3-11.1-43.4-33.3-47.3-2.6-.5-5.1-.6-7.7-.6 13 8.7 20.4 24.5 17.6 40.9l-5.8 33.8c-3.4 19.6-20.3 33.6-39.5 33.9 4.6 3.1 10 5.3 15.8 6.3 22.1 4 43.2-11 47.1-33.2z" fill="#d82a2a"/></g><g><path transform="rotate(-80.206 116.1548 229.7415)" class="failure-st4" d="M105.9 188.9h20.4v81.7h-20.4z"/><path transform="rotate(-80.206 134.4027 232.8885)" class="failure-st5" d="M124.2 222.7h20.4v20.4h-20.4z"/></g><g><g><g><path class="failure-st9" d="M92.1 137.8c4.7 3.7 5.4 10.5 1.6 15.1-3.8 4.7-10.5 5.4-15.1 1.6l13.5-16.7z"/><path class="failure-st9" d="M89.7 147.3c5.9-.6 11.2 3.6 11.8 9.5S98 168 92.1 168.6l-2.4-21.3z"/></g><g><path class="failure-st9" d="M157.4 130.5c-3.7 4.7-2.9 11.4 1.6 15.1s11.4 2.9 15.1-1.6l-16.7-13.5z"/><path class="failure-st9" d="M161.8 139.3c-5.9.6-10.1 5.9-9.5 11.8.6 5.9 5.9 10.1 11.8 9.5l-2.3-21.3z"/></g></g><g><g><circle class="failure-st3" cx="87.6" cy="20.6" r="14.2"/><path class="failure-st7" d="M156.2 99.1L92 34.2l-13.6 90.2z"/></g><g><path class="failure-st3" d="M160.6 118.5c-4.9 1.6-10.4-.1-13.5-4.5-7.4-10.4-20.4-14.7-32.5-10.7-12 3.9-20.1 15.1-19.9 27.8.1 6.6-5.2 12-11.9 12.1-6.6.1-12-5.2-12.1-11.9-.3-23.2 14.4-43.7 36.4-50.9 22.1-7.2 46 .7 59.5 19.6 3.8 5.4 2.6 12.9-2.8 16.7-1 .8-2.2 1.3-3.2 1.8z"/></g></g><g><path class="failure-st2" d="M174.9 95.8l-18.4 23.1c-1.7 2.1-2.6 5-2.3 7.9.6 5.9 6 10.2 11.9 9.6 2.9-.3 5.5-1.9 7.2-4 11.6-14.4 1.6-36.6 1.6-36.6zM90.5 126.2l-23.1-18.4s-4.8 23.8 9.6 35.4c2.1 1.7 5 2.6 7.9 2.3 5.9-.6 10.2-6 9.6-11.9-.4-3.2-1.9-5.7-4-7.4z"/></g><circle class="failure-st2" cx="124.3" cy="130.2" r="40.9"/><path class="failure-st9" d="M119.8 89.5c-7.4.8-14.1 3.6-19.7 7.7 2.2 3 6.1 4.8 10 4.4l-4 5c4.8 3.8 11.7 3 15.4-1.7l.7 6.4c6-.7 10.3-6.1 9.7-12.1l5 4c2.7-3.3 3.1-7.8 1.4-11.5-5.7-2-12-2.9-18.5-2.2z"/><g><g><path class="failure-st4" d="M114.8 119.4c.5 4.6-2.7 8.6-7.3 9.1s-8.6-2.7-9.1-7.3 2.7-8.6 7.3-9.1c4.5-.5 8.6 2.7 9.1 7.3zM147.7 115.8l-16.5 1.8c-.5-4.6 2.7-8.6 7.3-9.1 4.5-.5 8.6 2.7 9.2 7.3z"/></g><path class="failure-st3" d="M120 160.1c16.9.3 24.6-5.4 28.2-14.1 1.1-2.7 1.4-9.9-3.7-9.5-2.7.2-2.5 4.8-4.5 6.4-2.4 1.8-6 1.8-8.8 1.2-3.3-.7-6.6-1-9.6.6-11.7 6-5.7 15.3-1.6 15.4z"/></g></g><g><path class="failure-st10" d="M192.2 197.1c-10.6 35.1-55.3 13.5-86.2-14.4"/><g><circle class="failure-st2" cx="204.1" cy="180.5" r="20.4"/></g><g><g><path class="failure-st3" d="M214.1 212.8c3-4.3 2.1-10.3-2.3-13.4l-28.1-20.1c-4.3-3-10.3-2.1-13.4 2.3-3 4.3-2.1 10.3 2.3 13.4l28.2 20c4.3 3 10.3 2 13.3-2.2z"/></g></g></g><g><path class="failure-st10" d="M136.6 265.9c28.7-51.2-24.3-23.2-41.5-6.4"/><g><path class="failure-st4" d="M180 317.5c-4.6 9-15.7 12.5-24.8 8.3l-42.5-19.6c-2.4-1.2-3.4-4-2.3-6.4l17.5-38.1 17.4 8.1-5.7 12.5c-3.3 7.2-.2 15.7 7 19 9.3 4.3 20.4.2 24.6-9.1 9.6 4.6 13.6 16 8.8 25.3z"/><g><path class="failure-st5" d="M144 284.4c1.1-2.4.1-5.3-2.3-6.4l-6.5-3c-2.4-1.1-5.3-.1-6.4 2.3-1.1 2.4-.1 5.3 2.3 6.4l6.5 3c2.4 1.1 5.3.1 6.4-2.3z"/></g></g></g></g><path d="M99.4 132.5c.3 4.3-2.9 7.9-7.2 8.2-4.3.3-7.9-2.9-8.2-7.2-.3-4.3 6.7-14.6 6.7-14.6s8.4 9.4 8.7 13.6z" fill="#33dedd"/></g><g><g><path class="failure-st12" d="M381 271.2c-15.3 28.4-5 53.9-1.8 82.2"/></g><g><path class="failure-st13" d="M347.2 276.2c-11.6 15.2-12.8 55.9-8 75.8"/><g><path class="failure-st4" d="M297 362.6c.3 10.2 8.7 18.3 19 18.1 7.9-.2 14.2-6.8 14-14.7l-.3-13.8 19.2-.4 1 41.9c0 2.6-2.1 4.8-4.7 4.9l-46.8 1.1c-10.1.3-18.9-7.4-19.4-17.4-.7-10.5 7.6-19.4 18-19.7z"/><g><path class="failure-st5" d="M330.1 370.8l7.2-.2c2.6 0 4.8-2.2 4.7-4.9s-2.2-4.8-4.9-4.7l-7.2.2c-2.6 0-4.8 2.2-4.7 4.9.1 2.7 2.2 4.7 4.9 4.7z"/></g></g></g><g><g><path fill="#ee3c39" d="M344.3 264.2l33.6-.8-18.8-84.4z"/><path class="failure-st15" d="M358.8 169.4c-22.6.5-40.4 19.2-39.9 41.9l.8 34.2c.5 22.6 19.2 40.4 41.9 39.9 22.6-.5 40.4-19.2 39.9-41.9l-.8-34.2c-.5-22.6-19.2-40.5-41.9-39.9z"/><path d="M358.8 169.4c-4.1.1-8 .8-11.7 2.1 21.6.7 39.1 18.1 39.5 39.9l.8 34.2c.5 18.5-11.4 34.4-28.2 39.8.7 0 1.5.1 2.2 0 22.6-.5 40.4-19.2 39.9-41.9l-.8-34.2c-.3-22.6-19-40.5-41.7-39.9z" fill="#1d893c"/></g><g><path transform="rotate(-1.3315 360.4166 234.2326) scale(.99997)" class="failure-st4" d="M319.6 224.1h81.7v20.4h-81.7z"/><path transform="rotate(-1.3315 342.2849 234.5242) scale(.99997)" class="failure-st5" d="M332.1 224.4h20.4v20.4h-20.4z"/></g></g><g><g><g><ellipse transform="rotate(-19.926 347.7196 19.8568)" class="failure-st3" cx="347.7" cy="19.9" rx="14.2" ry="14.2"/><path class="failure-st15" d="M395.4 112.6l-46.6-78.5-35 84.3z"/></g><g><path class="failure-st3" d="M394.2 122.9c-5.1.4-10.1-2.5-12-7.6-4.6-11.8-16.3-19.1-28.9-18.2-12.7.9-23.2 9.8-26.1 22.2-1.5 6.4-7.9 10.4-14.4 8.9-6.4-1.5-10.4-7.9-8.9-14.4 5.3-22.6 24.5-38.9 47.7-40.6 23.2-1.7 44.5 11.8 52.9 33.4 2.4 6.1-.6 13.1-6.8 15.6-1.1.2-2.3.6-3.5.7z"/></g></g><g><path class="failure-st17" d="M408 103.1l-19.3 22.3c-1.8 2-2.8 4.8-2.6 7.8.4 5.9 5.6 10.4 11.6 10 3-.2 5.6-1.6 7.4-3.7 11.9-13.9 2.9-36.4 2.9-36.4zM322.3 130.1L300 110.8s-5.8 23.6 8.1 35.7c2 1.8 4.8 2.8 7.8 2.6 5.9-.4 10.4-5.6 10-11.6-.1-2.9-1.5-5.6-3.6-7.4z"/></g><g><path class="failure-st4" d="M356 135.4c1.9 26.6-18.1 49.8-44.8 51.7l-3.4-48.2 48.2-3.5z"/><path class="failure-st4" d="M356 135.4c1.9 26.6 25 46.7 51.7 44.8l-3.4-48.2-48.3 3.4z"/></g><path class="failure-st4" d="M307.8 138.8c-1.9-26.6 18.1-49.8 44.8-51.7 26.6-1.9 49.8 18.1 51.7 44.8l-96.5 6.9z"/><circle class="failure-st17" cx="356" cy="135.4" r="40.9"/><g><g><path class="failure-st18" d="M326.1 130.1c-.4-4.5 3.1-8.5 7.6-8.8 4.5-.2 8.5 3.1 8.8 7.6M359 127.8c-.4-4.5 3.1-8.5 7.6-8.8 4.6-.3 8.6 3.1 8.8 7.6"/></g><path class="failure-st3" d="M377.1 139c1 13.7-9.3 25.5-22.9 26.5-13.7 1-25.5-9.3-26.5-22.9l49.4-3.6z"/></g><path class="failure-st4" d="M366.4 95.9c-6.9-8.7-24.9-2.8-34.2 3-8.5 5.3-18.7 15.3-15.7 26.1 21.8 5.8 44.2-7.3 49.9-29.1z"/></g><g><path class="failure-st13" d="M330.8 196.5c-22 22.2-66.4 38.9-22.1-21.2"/><g><circle class="failure-st17" cx="321.6" cy="159.2" r="20.4"/></g><g><g><path class="failure-st3" d="M328.4 178.5l-27-21.6c-4.2-3.3-10.2-2.6-13.4 1.5-3.3 4.2-2.6 10.2 1.5 13.4l27 21.6c4.2 3.3 10.2 2.6 13.4-1.5 3.2-4 2.6-10-1.5-13.4z"/></g></g></g><g><path class="failure-st12" d="M396.2 202.1c39.1 31.6 32-.5-8.5-24.4"/><g><circle class="failure-st17" cx="372" cy="164.7" r="20.4"/></g><g><g><path class="failure-st3" d="M391.4 158.2l-22 26.7c-3.4 4.1-2.8 10.2 1.3 13.4 4.1 3.4 10.2 2.8 13.4-1.3l22-26.7c3.4-4.1 2.8-10.2-1.3-13.4-3.9-3.3-10.1-2.7-13.4 1.3z"/></g></g></g></g><g><path class="failure-st4" d="M336.8 364c.3 10.2 8.7 18.3 19 18.1 7.9-.2 14.2-6.8 14-14.7l-.3-13.8 19.2-.4 1 41.9c0 2.6-2.1 4.8-4.7 4.9l-46.8 1.1c-10.1.3-18.9-7.4-19.4-17.4-.6-10.5 7.6-19.4 18-19.7z"/><g><path class="failure-st5" d="M370 372.2l7.2-.2c2.6 0 4.8-2.2 4.7-4.9-.1-2.7-2.2-4.8-4.9-4.7l-7.2.2c-2.6 0-4.8 2.2-4.7 4.9s2.2 4.7 4.9 4.7z"/></g></g></symbol>
<symbol id="result-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 460.3 416.4"><style>.success-st1{fill:none;stroke:#1d893c;stroke-width:19.1665;stroke-linecap:round;stroke-miterlimit:10}.success-st2{fill:#332e2e}.success-st3{fill:#f9ce1d}.success-st4{fill:#bf8f68}.success-st5{fill:#fff}.success-st6{fill:none;stroke:#31a657;stroke-width:19.1665;stroke-linecap:round;stroke-miterlimit:10}.success-st8{fill:#31a657}.success-st11{fill:#ef3b39}.success-st12{fill:#d82a2a}.success-st13,.success-st14{fill:none;stroke:#d82a2a;stroke-width:19.1665;stroke-linecap:round;stroke-miterlimit:10}.success-st14{stroke:#ef3b39}.success-st15{fill:#fadcbc}.success-st16{fill:#774d2e}</style><ellipse cx="216.6" cy="396.6" rx="201.1" ry="19.9" opacity=".2" fill="#332e2e"/><g><g><g><path class="success-st1" d="M315.8 350.8c3-28.4 5.8-47.9-13.4-73.7"/><g><path class="success-st2" d="M376.3 380.7c-.5 10-9.2 17.7-19.3 17.5l-46.8-.8c-2.6-.1-4.7-2.3-4.7-4.9l.7-41.9 19.2.3-.2 13.8c-.2 7.9 6.2 14.5 14.1 14.6 10.3.2 18.7-8 18.9-18.2 10.4.2 18.7 9 18.1 19.6z"/><g><path class="success-st3" d="M330 364.8c.1-2.7-2.1-4.9-4.7-4.9l-7.2-.1c-2.7-.1-4.8 2-4.9 4.7s2.1 4.9 4.7 4.9l7.2.1c2.7 0 4.8-2 4.9-4.7z"/></g></g></g><g><path class="success-st1" d="M331.6 197.9c33.1 25.3 54.1 35.7 88.2 47.3"/><g><circle class="success-st4" cx="439.9" cy="248.8" r="20.4"/></g><g><g><path class="success-st5" d="M426.1 264l6.1-34.1c.9-5.3-2.6-10.2-7.7-11.1-5.3-.9-10.2 2.6-11.1 7.7l-6.1 34.1c-.9 5.3 2.6 10.2 7.7 11.1 5.2 1 10.3-2.5 11.1-7.7z"/></g></g></g><g><path class="success-st6" d="M275.1 271.9c-14.2 24.5-9.9 55.1-9.5 77.2"/><g><path class="success-st2" d="M223.2 359.4c.2 10.2 8.6 18.4 18.9 18.2 7.9-.1 14.3-6.7 14.1-14.6l-.2-13.8 19.2-.3.7 41.9c0 2.6-2.1 4.8-4.7 4.9l-46.8.8c-10.1.2-18.8-7.5-19.3-17.5-.6-10.6 7.7-19.4 18.1-19.6z"/><g><path class="success-st3" d="M256.3 367.8l7.2-.1c2.6 0 4.8-2.2 4.7-4.9s-2.2-4.8-4.9-4.7l-7.2.1c-2.6 0-4.8 2.2-4.7 4.9s2.2 4.7 4.9 4.7z"/></g></g></g><g><path class="success-st6" d="M300.4 179.9c-56.3 13.2-90.5-13.1-97.6-51.3"/><g><circle class="success-st4" cx="199" cy="108.4" r="20.4"/></g><g><g><path class="success-st5" d="M218 116l-34.1 6.3c-5.2 1-8.7 6-7.6 11.2 1 5.2 6 8.7 11.2 7.6l34.1-6.3c5.2-1 8.7-6 7.6-11.2-1-5.1-6-8.6-11.2-7.6z"/></g></g></g><g><g><path fill="#ee3c39" d="M278 262.3l33.4 4.2-6.3-86.3z"/><path class="success-st8" d="M306.3 170.7c-22.4-2.8-42.8 13.1-45.6 35.6l-4.2 33.9c-2.8 22.4 13.1 42.8 35.6 45.6 22.4 2.8 42.8-13.1 45.6-35.6l4.2-33.9c2.7-22.4-13.2-42.9-35.6-45.6z"/><path d="M306.3 170.7c-4-.5-8.1-.4-11.9.3 21.2 3.8 36 23.6 33.3 45.2l-4.2 33.9c-2.2 18.4-16.3 32.4-33.7 35.3.7.1 1.5.3 2.2.4 22.4 2.8 42.8-13.1 45.6-35.6l4.2-33.9c2.8-22.4-13.1-42.9-35.5-45.6z" fill="#1d893c"/></g><g><path transform="rotate(-82.946 298.3636 235.1306)" class="success-st2" d="M288.1 194.3h20.4V276h-20.4z"/><path transform="rotate(-82.946 297.3154 234.7641)" class="success-st3" d="M287.1 224.6h20.4V245h-20.4z"/></g></g><g><g><g><ellipse transform="rotate(-11.536 317.8035 16.1977)" class="success-st5" cx="317.8" cy="16.2" rx="14.2" ry="14.2"/><path class="success-st8" d="M351.4 114.9l-34.7-84.5-46.8 78.4z"/></g><g><path class="success-st5" d="M348.8 124.9c-5.1-.4-9.6-4-10.8-9.2-2.8-12.4-13.3-21.3-26-22.3s-24.3 6.3-29.1 18.2c-2.4 6.1-9.4 9.2-15.6 6.7-6.1-2.4-9.2-9.4-6.7-15.6 8.6-21.5 29.9-34.9 53.1-33.2 23.2 1.7 42.3 18.1 47.5 40.7 1.5 6.4-2.5 12.9-9 14.4-1 .2-2.3.4-3.4.3z"/></g></g><g><path class="success-st4" d="M365.3 107.3l-22.4 19.3c-2.1 1.8-3.5 4.4-3.7 7.4-.4 5.9 4 11.1 10 11.6 3 .2 5.8-.8 7.8-2.6 13.9-12.1 8.3-35.7 8.3-35.7zm-88.7 14.3l-19.3-22.4s-9.2 22.5 2.9 36.5c1.8 2.1 4.4 3.5 7.4 3.7 5.9.4 11.1-4 11.6-10 .2-2.9-.8-5.7-2.6-7.8z"/></g><g><path class="success-st2" d="M309.1 131.7c-2 26.6-25.2 46.6-51.8 44.6l3.6-48.2 48.2 3.6z"/><path class="success-st2" d="M309.1 131.7c-2 26.6 17.9 49.8 44.6 51.8l3.6-48.2-48.2-3.6z"/></g><path class="success-st2" d="M260.9 128c2-26.6 25.2-46.6 51.8-44.6 26.6 2 46.6 25.2 44.6 51.8l-96.4-7.2z"/><circle class="success-st4" cx="309.1" cy="131.7" r="40.9"/><g><g><path class="success-st2" d="M301.8 119.4c-.3 4.6-4.3 7.9-8.9 7.6-4.6-.3-7.9-4.3-7.6-8.9.3-4.6 4.3-7.9 8.9-7.6 4.5.4 7.9 4.3 7.6 8.9zm32.9 2.5c-.3 4.6-4.3 7.9-8.9 7.6s-7.9-4.3-7.6-8.9c.3-4.6 4.3-7.9 8.9-7.6 4.5.4 8 4.3 7.6 8.9z"/></g><path class="success-st5" d="M333.5 138.3c-1 13.7-12.9 23.9-26.6 22.9S283 148.3 284 134.7l49.5 3.6z"/></g><path class="success-st2" d="M325.2 94.1c-5.5-9.6-24.3-6.4-34.3-2-9.2 4-20.7 12.4-19.4 23.6 20.8 8.9 44.8-.8 53.7-21.6z"/></g></g><g><path class="success-st2" d="M207.7 379l-9.6-31.8c0-.1-.1-.2-.1-.3-3.8-7-12.5-9.6-19.5-5.9 0 0-16 7.3-10 21.5 0 .1.1.2.2.3l17.7 21.8h-.2c.9 2.9.7 7.4-.8 10.6-.5 1.1.2 2.3 1.4 2.4 4.7.2 9.6.1 13.7-2.1 2.3-1.3 11.7-6.6 7.2-16.5z"/><g><path class="success-st3" d="M194.4 368.2l-7.1 1c-2.6.3-5-1.5-5.4-4.1-.3-2.6 1.5-5 4.1-5.4l7.1-1c2.6-.3 5 1.5 5.4 4.1s-1.5 5.1-4.1 5.4z"/></g><g><path fill="#32a558" d="M137.1 314.5l33.4 2.5-10.5-85.9z"/><path class="success-st11" d="M160.7 221.5c-22.5-1.6-42.1 15.2-43.8 37.8l-2.5 34.2c-1.6 22.5 15.2 42.1 37.8 43.8 22.5 1.6 42.1-15.2 43.8-37.8l2.5-34.2c1.6-22.6-15.3-42.1-37.8-43.8z"/><path class="success-st12" d="M196 299.4l2.5-34.2c1.6-22.5-15.2-42.1-37.8-43.8-2.6-.2-5.2-.1-7.7.2 13.8 7.4 22.7 22.4 21.5 39l-2.5 34.2c-1.5 19.9-16.9 35.4-36 37.6 4.9 2.6 10.4 4.3 16.3 4.7 22.4 1.8 42-15.2 43.7-37.7z"/><path class="success-st12" d="M176.1 240.7c6 .5 11.7-.3 17.2-1.8-8-8.7-19.3-14.4-31.9-15.3-6-.5-11.7.3-17.2 1.8 8 8.6 19.2 14.4 31.9 15.3z"/></g><path class="success-st13" d="M169.7 328.1c.8 21.1-1.4 47.3 4.4 48.6s12.3-24.3 12.3-24.3"/><g><path class="success-st14" d="M140.7 322.7c-22.7-7.9-48.4-24.6-40.5 33.6"/><g><path class="success-st2" d="M58.3 368.2c.6 10.2 9.4 18 19.6 17.5 8-.4 14-7.3 13.5-15.1l-.7-13.8 19.2-1.1 2.3 41.8c.1 2.6-1.9 4.9-4.5 5.1L61 405.3c-10 .6-19-6.8-20-16.8-1.1-10.6 6.8-19.7 17.3-20.3z"/><g><path class="success-st3" d="M91.7 375.3l7.1-.4c2.6-.1 4.6-2.4 4.5-5.1-.1-2.6-2.4-4.6-5.1-4.5l-7.1.4c-2.6.1-4.6 2.4-4.5 5.1.1 2.6 2.4 4.6 5.1 4.5z"/></g></g></g><g><path transform="rotate(-85.831 155.914 286.2233)" class="success-st2" d="M145.7 245.4h20.4v81.7h-20.4z"/><path transform="rotate(-85.831 155.914 286.2233)" class="success-st3" d="M145.7 276h20.4v20.4h-20.4z"/></g><g><path class="success-st13" d="M183.3 242.4c25 33.3 42.4 49.1 72 69.4"/><g><circle class="success-st15" cx="273.6" cy="320.8" r="20.4"/></g><g><g><path class="success-st5" d="M256.3 331.6l15.1-31.1c2.3-4.8.3-10.5-4.4-12.8-4.8-2.3-10.5-.3-12.8 4.4l-15.1 31.1c-2.3 4.8-.3 10.5 4.4 12.8 4.7 2.4 10.5.4 12.8-4.4z"/></g></g></g><g><g><g><path class="success-st16" d="M129.2 191.7c4.3 4.1 4.4 10.9.3 15.2-4.2 4.3-10.9 4.4-15.2.3l14.9-15.5z"/><path class="success-st16" d="M126 201c5.9-.1 10.8 4.6 10.9 10.5.1 5.9-4.6 10.8-10.5 10.9L126 201z"/></g><g><path class="success-st16" d="M194.9 190.4c-4.1 4.3-3.9 11.1.3 15.2 4.2 4.2 11.1 3.9 15.2-.3l-15.5-14.9z"/><path class="success-st16" d="M198.4 199.5c-5.9.1-10.6 5-10.5 10.9.1 5.9 5 10.6 10.9 10.5l-.4-21.4z"/></g></g><g><g><circle class="success-st5" cx="188.6" cy="74.3" r="14.2"/><path class="success-st11" d="M207.3 176.8l-21.8-88.5-57.9 70.5z"/></g><g><path class="success-st5" d="M201.2 195.7c-5-1.1-8.9-5.4-9.3-10.7-1-12.7-10-23.1-22.5-25.8-12.4-2.8-25 2.7-31.4 13.7-3.3 5.7-10.7 7.7-16.4 4.4-5.7-3.3-7.7-10.7-4.4-16.4 11.6-20.1 34.7-30.2 57.4-25.1 22.6 5.1 39.2 24.1 41 47.3.5 6.6-4.4 12.4-11 12.9-1 0-2.3-.1-3.4-.3z"/></g></g><g><path class="success-st15" d="M215.5 157.4L195 178.8c-1.9 2-3 4.7-3 7.7.1 5.9 5.1 10.7 11 10.6 3 0 5.7-1.4 7.6-3.3 12.8-13.4 4.9-36.4 4.9-36.4zM128.6 180l-21.4-20.4s-7 23.3 6.4 36.1c2 1.9 4.7 3 7.7 3 5.9-.1 10.7-5.1 10.6-11-.1-3.1-1.3-5.8-3.3-7.7z"/></g><circle class="success-st15" cx="161.9" cy="187.1" r="40.9"/><path class="success-st16" d="M161.1 146.2c-7.5.1-14.4 2.4-20.4 5.9 1.9 3.2 5.6 5.3 9.6 5.3l-4.4 4.7c4.4 4.2 11.3 4.1 15.5-.3l.1 6.4c6-.2 10.9-5.2 10.8-11.2l4.7 4.4c3-3.1 3.8-7.5 2.5-11.3-5.6-2.6-11.8-4.1-18.4-3.9z"/><g><g><path class="success-st2" d="M153.4 175.5c0 4.6-3.5 8.3-8.1 8.4-4.6 0-8.3-3.5-8.4-8.1 0-4.6 3.5-8.3 8.1-8.4 4.6-.1 8.4 3.5 8.4 8.1zm33.1-.7c0 4.6-3.5 8.3-8.1 8.4-4.6 0-8.3-3.5-8.4-8.1 0-4.6 3.5-8.3 8.1-8.4 4.5 0 8.3 3.5 8.4 8.1z"/></g><path class="success-st5" d="M186.8 191.3c.3 13.7-10.5 25-24.2 25.2-13.7.3-25-10.5-25.2-24.2l49.4-1z"/></g></g><path class="success-st14" d="M138.4 237.8C104.9 262.5 76.7 271 40.6 265"/><g><circle class="success-st15" cx="20.4" cy="268.3" r="20.4"/></g><g><g><path class="success-st5" d="M52.8 280.6l-5.5-34.1c-.9-5.2-5.8-8.7-11-8-5.2.9-8.7 5.8-8 11l5.6 34.1c.9 5.2 5.8 8.7 11 8 5.1-.8 8.8-5.8 7.9-11z"/></g></g></g></g></symbol>
<symbol id="block-controls_repeat" viewbox="0 0 48 48"><g><path transform="translate(0 5)" fill="#00889a" d="M0 8a8 8 0 0 1 8-8h31a8 8 0 0 1 8 8v26a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8z"/><path fill="#00aac0" d="M0 8a8 8 0 0 1 8-8h31a8 8 0 0 1 8 8v26a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8z"/><image height="32" width="23" y="-20" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="img/block-repeat.svg" transform="translate(12 26)"/></g>
</symbol>
</svg>
<div class="codeboogie" id="actual-scene" hidden>
<div class="blockly">
<div class="blockly__trash">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" fill="#fff"/><path d="M0 0h24v24H0z" fill="none"/></svg>
</div>
</div>
<div hidden class="scene-underlay"></div>
<div hidden class="scene">
<div class="scene__play-tab">
<div class="scene__play-layer">
<button class="Button Button--round Button--play scene__play"></button>
</div>
</div>
<div class="scene__lights">
<div class="ceilingLight ceilingLight--left">
<div class="ceilingLight__beam ceilingLight__beam--white"></div>
<div class="ceilingLight__beam ceilingLight__beam--red"></div>
<div class="ceilingLight__beam ceilingLight__beam--green"></div>
</div>
<div class="ceilingLight ceilingLight--right">
<div class="ceilingLight__beam ceilingLight__beam--white"></div>
<div class="ceilingLight__beam ceilingLight__beam--red"></div>
<div class="ceilingLight__beam ceilingLight__beam--green"></div>
</div>
<div class="scene__tiles"></div>
</div>
<div class="scene__world">
<div class="scene__word-title"></div>
<div class="scene__characters">
<div class="scene__character scene__character--teacher"></div>
<div class="scene__character scene__character--player"></div>
</div>
<div class="scene__moves"></div>
</div>
</div>
<div class="result result--failure">
<div class="result__title"><i18n-msg msgid="codelab-oops">PLACEHOLDER_i18n</i18n-msg></div>
<div class="result__details"><i18n-msg msgid="codelab-result-generic-fail">PLACEHOLDER_i18n</i18n-msg></div>
<svg class="result__missing-block">
<use class="result__missing-block-image"></use>
</svg>
<svg class="result__graphic">
<use xlink:href="#result-failure" class="result__graphic-type"></use>
</svg>
<div class="result__buttons">
<button data-retry class="Button result__button result__button--retry"><i18n-msg msgid="codelab-try-again">PLACEHOLDER_i18n</i18n-msg></button>
</div>
</div>
<div class="result result--success">
<div class="result__title"><i18n-msg msgid="codeboogie-nice-moves">PLACEHOLDER_i18n</i18n-msg></div>
<div class="result__details"></div>
<svg class="result__missing-block">
<use class="result__missing-block-image"></use>
</svg>
<div class="result__code-label">This is what the blocks you put together look like in JavaScript:</div>
<textarea readonly class="result__code"></textarea>
<svg class="result__graphic">
<use xlink:href="#result-success" class="result__graphic-type"></use>
</svg>
<div class="result__buttons">
<button data-retry class="Button result__button result__button--retry"><i18n-msg msgid="codelab-try-again">PLACEHOLDER_i18n</i18n-msg></button>
<button data-share class="Button result__button result__button--share"><i18n-msg msgid="share-this">PLACEHOLDER_i18n</i18n-msg></button>
<button data-continue class="Button result__button result__button--continue"><i18n-msg msgid="codeboogie-next-dance">PLACEHOLDER_i18n</i18n-msg></button>
<div class="no-en"><a class="result__code-link">View code</a></div>
</div>
</div>
</div>
<div class="choose-mode overlay overlay--picker is-visible" id="gui">
<div class="choose-mode__dialog overlay-dialog">
<div class="overlay-title-wrapper">
<h2 class="overlay-title"><i18n-msg msgid="codeboogie-choose-game-mode">PLACEHOLDER_i18n</i18n-msg></h2>
</div>
<div class="grid">
<div class="grid__option" data-mode="teacher">
<div id="mode-teacher" class="choose-mode__image" aria-role="button">
<div class="choose-mode__bg choose-mode__bg--teacher"></div>
<h3 class="go">
<i18n-msg msgid="codeboogie-go">PLACEHOLDER_i18n</i18n-msg>
</h3>
</div>
<div class="choose-mode__info">
<h3 class="choose-mode__text choose-mode__text--teacher"><i18n-msg msgid="codeboogie-mode-dance-class">PLACEHOLDER_i18n</i18n-msg></h3>
<h4 class="choose-mode__description"><i18n-msg msgid="codeboogie-mode-dance-class-description">PLACEHOLDER_i18n</i18n-msg></h4>
</div>
</div>
<div class="grid__option" data-mode="freestyle">
<div id="mode-freestyle" class="choose-mode__image" aria-role="button">
<div class="choose-mode__bg choose-mode__bg--freestyle"></div>
<h3 class="go">
<i18n-msg msgid="codeboogie-go">PLACEHOLDER_i18n</i18n-msg>
</h3>
</div>
<div class="choose-mode-info">
<h3 class="choose-mode__text"><i18n-msg msgid="codeboogie-mode-freestyle">PLACEHOLDER_i18n</i18n-msg></h3>
<h4 class="choose-mode__description hide-noshare"><i18n-msg msgid="codeboogie-mode-freestyle-description">PLACEHOLDER_i18n</i18n-msg></h4>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../../node_modules/web-animations-js/web-animations-next.min.js"></script>
<script type="module">
import api from '../../src/scene/api.js';
import Game from './:closure.js';
api.preload.sounds('codeboogie_load_sounds');
api.preload.images(
'img/choose-mode/mode-class.svg',
'img/choose-mode/mode-freestyle.svg',
'img/stages/stage1.svg',
'img/stages/stage2.svg',
'img/stages/stage3.svg',
'img/blank.png',
'img/block-hip-shake.svg',
'img/block-jump.svg',
'img/block-point-left.svg',
'img/block-point-right.svg',
'img/block-repeat.svg',
'img/block-splits.svg',
'img/block-step-left.svg',
'img/block-step-right.svg',
'img/icons_hip-shake-white.svg',
'img/icons_jump-white.svg',
'img/icons_point-left-white.svg',
'img/icons_point-right-white.svg',
'img/icons_splits-white.svg',
'img/icons_step-left-white.svg',
'img/icons_step-right-white.svg',
'img/lights/ceiling-light--green.svg',
'img/lights/ceiling-light--red.svg',
'img/lights/ceiling-light.svg',
'img/lights/ceiling.svg',
'img/lights/disco_1.svg',
'img/lights/disco_2.svg',
'img/lights/disco_3.svg',
'img/lights/disco_4.svg',
'img/lights/disco_5.svg',
'img/lights/disco_6.svg',
'img/lights/disco_7.svg',
'img/lights/disco_8.svg',
'img/lights/disco_9.svg',
'img/loading.png',
'img/logo.svg',
'img/madewithcode.svg',
'img/media/handclosed.cur',
'img/media/handopen.cur',
'img/queue-hip-shake.svg',
'img/queue-jump.svg',
'img/queue-point-left.svg',
'img/queue-point-right.svg',
'img/queue-splits.svg',
'img/queue-step-left.svg',
'img/queue-step-right.svg',
'img/stages/stage1.svg',
'img/stages/stage2.svg',
'img/stages/stage3.svg',
'img/steps/green/clap_0.png',
'img/steps/green/clap_1.png',
'img/steps/green/fail_0.png',
'img/steps/green/fail_1.png',
'img/steps/green/floss_0.png',
'img/steps/green/floss_1.png',
'img/steps/green/floss_2.png',
'img/steps/green/floss_3.png',
'img/steps/green/hip_0.png',
'img/steps/green/hip_1.png',
'img/steps/green/hiphop_0.png',
'img/steps/green/hiphop_1.png',
'img/steps/green/hiphop_2.png',
'img/steps/green/hiphop_3.png',
'img/steps/green/idle_0.png',
'img/steps/green/jump_0.png',
'img/steps/green/jump_1.png',
'img/steps/green/pointLeft_0.png',
'img/steps/green/pointLeft_1.png',
'img/steps/green/pointRight_0.png',
'img/steps/green/pointRight_1.png',
'img/steps/green/pony_0.png',
'img/steps/green/pony_1.png',
'img/steps/green/pony_2.png',
'img/steps/green/pony_3.png',
'img/steps/green/splits_0.png',
'img/steps/green/splits_1.png',
'img/steps/green/splits_2.png',
'img/steps/green/splits_3.png',
'img/steps/green/stepLeft_0.png',
'img/steps/green/stepLeft_1.png',
'img/steps/green/stepRight_0.png',
'img/steps/green/stepRight_1.png',
'img/steps/green/watch_0.png',
'img/steps/green/watch_1.png',
'img/steps/red/clap_0.png',
'img/steps/red/clap_1.png',
'img/steps/red/fail_0.png',
'img/steps/red/fail_1.png',
'img/steps/red/floss_0.png',
'img/steps/red/floss_1.png',
'img/steps/red/floss_2.png',
'img/steps/red/floss_3.png',
'img/steps/red/hip_0.png',
'img/steps/red/hip_1.png',
'img/steps/red/hiphop_0.png',
'img/steps/red/hiphop_1.png',
'img/steps/red/hiphop_2.png',
'img/steps/red/hiphop_3.png',
'img/steps/red/idle_0.png',
'img/steps/red/jump_0.png',
'img/steps/red/jump_1.png',
'img/steps/red/pointLeft_0.png',
'img/steps/red/pointLeft_1.png',
'img/steps/red/pointRight_0.png',
'img/steps/red/pointRight_1.png',
'img/steps/red/pony_0.png',
'img/steps/red/pony_1.png',
'img/steps/red/pony_2.png',
'img/steps/red/pony_3.png',
'img/steps/red/splits_0.png',
'img/steps/red/splits_1.png',
'img/steps/red/splits_2.png',
'img/steps/red/splits_3.png',
'img/steps/red/stepLeft_0.png',
'img/steps/red/stepLeft_1.png',
'img/steps/red/stepRight_0.png',
'img/steps/red/stepRight_1.png',
'img/steps/red/watch_0.png',
'img/steps/red/watch_1.png',
);
const gameModule = document.getElementById('module-codeboogie');
const gui = document.getElementById('gui');
const rest = document.getElementById('actual-scene');
gui.addEventListener('animationend', () => {
if (gui.hasAttribute('is-closed')) {
gui.setAttribute('hidden', '');
}
});
const game = new Game(gameModule);
const start = (mode, param, removeGuiNow) => {
if (rest.hasAttribute('hidden')) {
rest.removeAttribute('hidden'); // used as marker to say we're ready
if (removeGuiNow || gui.hasAttribute('hidden')) {
gui.setAttribute('hidden', '');
} else {
gui.classList.remove('is-open')
gui.classList.add('is-closed');
// triggers animation
}
game.start();
}
game.restart(mode, param);
};
api.addEventListener('restart', (ev) => {
ev.preventDefault();
console.info('got restart');
});
api.config({
sound: ['cb_start'],
orientation: 'portrait',
});
api.ready(async (data) => {
const stages = ['studio', 'stage', 'disco'];
if (data && data.dance) {
start('custom', data.dance, true);
} else if (data && data.level) {
start('teacher', data.level || 1, true);
} else {
// Otherwise, wait for user input.
const modeTeacherButton = document.getElementById('mode-teacher');
const modeFreestyleButton = document.getElementById('mode-freestyle');
modeTeacherButton.addEventListener('click', (ev) => {
start('teacher');
api.play('cb_ingame_win');
});
modeFreestyleButton.addEventListener('click', (ev) => {
const choice = stages[~~(Math.random() * stages.length)];
start('freestyle', choice);
api.play('cb_ingame_win');
});
}
});
</script>
</body>
</html>