-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvictory%3Fforward.html
462 lines (376 loc) · 19.5 KB
/
victory%3Fforward.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
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
461
462
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Galactic Puzzle Hunt</title>
<meta name="viewport" content="width=device-width, initial-scale=0.5">
<meta property="og:title" content="Galactic Puzzle Hunt 2022">
<meta property="og:description" content="Pencils down! The Galactic Aptitude Test has come to an end. Your scores are now final.">
<meta property="og:image" content="https://2021.galacticpuzzlehunt.com/static/images/banner.png">
<meta property="twitter:card" content="summary_large_image">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Recursive:slnt,CASL,CRSV,MONO@-3,0.5,1,1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/css/skeleton.css">
<link rel="stylesheet" href="/static/css/base.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.19/jquery.touchSwipe.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.formset/1.2.2/jquery.formset.min.js"></script>
<script src="/jsi18n/"></script>
<script src="/static/js/sorttable.js"></script>
<script src="/static/js/tray.js"></script>
<script src="/static/js/notify.js"></script>
<script src="/static/js/time.js"></script>
<link rel="icon" sizes="16x16 32x32 48x48 64x64" href="/static/images/favicon.ico" type="image/vnd.microsoft.icon">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-92192633-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-92192633-1');
</script>
</head>
<body>
<div id="background-glitch-wrapper" class="background-glitch">
<div class="glitch-1"></div>
<div class="glitch-2"></div>
<div class="glitch-3"></div>
</div>
<input id="shortcuts" type="checkbox">
<nav>
<span class="tray">
<span id="tray-timer"></span>
<div class="top-tabs">
<a href="/">
Home
</a>
<a href="/story">
Story
</a>
<a href="/puzzles">
Puzzles
</a>
<a href="/teams">
Teams
</a>
<a href="/errata">
Updates
</a>
<a id="nav-music" href="#">
<label for="music" title="Music" style="margin-bottom: 0; font-weight: normal; cursor: pointer;">Music</label>
</a>
<input id="music" type="checkbox">
<div class="shortcuts music">
<audio id="music-audio" controls src="/static/puzzle_resources/worlds-end-concert/music-audio.mp3">
There should be a music player here.
</audio>
</div>
</div>
<div class="top-left-actions">
</div>
</span>
<div class="top-right-actions">
<label for="shortcuts" title="Simulator">Simulator </label>
</div>
</nav>
<div class="shortcuts">
<form id="progress-simulator">
<div>Current round:</div>
<button class="btn" type="submit" name="round" value="forward">⬆️</button>
<button class="btn" type="submit" name="round" value="spring">🌸</button>
<button class="btn" type="submit" name="round" value="summer">☀️</button>
<button class="btn" type="submit" name="round" value="autumn">🍂</button>
<button class="btn" type="submit" name="round" value="winter">☃️</button>
<button class="btn" type="submit" name="round" value="concert">🎤</button>
<button class="btn" type="submit" name="round" value="none">None</button>
<div>Endgame:</div>
<button class="btn" type="submit" name="endgame" value="true">Unlock</button>
<button class="btn" type="submit" name="endgame" value="false">Reset</button>
<div>Reset:</div>
<button class="btn" type="submit" name="reset" value="reset">Reset</button>
</form>
</div>
<div id="loop-reset">
<form>
<svg viewBox="-30 160 720 320">
<defs>
<path id="loop-end-path" d="m 370,240 c 38.29044,0 74.26676,18.33512 96.83716,49.26624 l -76.8369,30.73478 V 270 L 300,330 261.03858,309.74192 c 19.60706,-42.51188 62.14674,-69.74008 108.9623,-69.74306 z m 106.15758,64.22738 c 6.65282,12.65518 10.9906,26.39738 12.80876,40.57862 l -38.96532,5.19538 z"/>
</defs>
<foreignObject width="720" height="480" clip-path="url(#loop-end-clip)" class="loop-shade">
<aside class="loop-shade" xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%;"></aside>
</foreignObject>
<clipPath id="loop-end-clip"><use href="#loop-end-path"/></clipPath>
<use href="#loop-end-path"/>
<path d="M 490,400 600,330 450,350 490,280 390,320 V 270 L 300,330 50,200 170,380 50,400"/>
</svg>
<div>THE END</div>
<p>You can reset once per minute.</p>
<table>
<tr id="loop-reset-btn-row-reset">
<td><button class="btn" disabled>Reset</button></td>
<td>Start over from the beginning of the exam.</td>
</tr>
<tr id="loop-reset-btn-row-restore">
<td><button class="btn" disabled>Jump</button></td>
<td>Start over, but resubmit your previous answers to bring you back to this point.</td>
</tr>
<tr>
<td><a class="btn" href="javascript:toggleReset(false)">Stay</a></td>
<td>Look at this page a bit longer. Make sure to save your work.</td>
</tr>
</table>
</form>
</div>
<script>
let glitchTriggerFuncs = [];
let glitchTriggerReceived = false;
let glitchTriggerExReceived = false;
let glitchPageLoaded = false;
function processGlitchFuncs(ex) {
glitchTriggerFuncs.forEach((func) => {
func(ex);
});
}
function doGlitch(ex) {
glitchTriggerReceived = true;
if (ex) {
glitchTriggerExReceived = true;
}
if (glitchPageLoaded) {
processGlitchFuncs(ex);
}
}
window.addEventListener('load', () => {
glitchPageLoaded = true;
if (glitchTriggerExReceived) {
processGlitchFuncs(true);
}
else if (glitchTriggerReceived) {
processGlitchFuncs(false);
}
}, false);
function registerOnGlitchHook(func) {
if (glitchTriggerExReceived) {
func(true);
}
else if (glitchTriggerReceived) {
func(false);
}
glitchTriggerFuncs.push(func);
}
</script>
<div class="content">
<h1>Congratulations!</h1>
<main style="text-align: center">
<style>
.hero {
width: 360px;
height: 360px;
fill: none;
stroke: currentColor;
stroke-width: 8;
margin-bottom: 2rem;
}
.color { stroke: #f9f8f5; }
#season .color { stroke: var(--secondary-content-color); }
#concert .color { stroke: #f9f8f5; }
#endgame .color { stroke: #fffff0; }
</style>
<div id="meta_meta_alt">
<svg class="hero" viewBox="-20 -16 840 672" style="width: 450px; height: 360px; stroke-width: 15">
<path d="m654.94 60a95 95 0 0 0-78.938 42.234 280 280 0 0 1 94.762 146.45 95 95 0 0 0 79.234-93.682 95 95 0 0 0-95-95 95 95 0 0 0-0.05859 0z"/>
<path d="M 30 5 L 5 50 L 50 35 L 50.638672 32.447266 L 70 25 L 55 15 L 47.105469 20.525391 L 45 10 L 30 5 z L 5 50 L 45 10 L 30 5 z M 5 50 L 70 25 L 55 15 L 5 50 z" style="transform: translate(30px, 540px); stroke-width: 5"/>
<circle class="color" cx="400" cy="320" r="280"/>
<path class="color" d="m121.38 347.76c-75.763 46.581-113.84 87.652-104.66 112.88 17.778 48.851 204.32 25.804 416.64-51.477 101.96-37.111 196.36-82.022 262.42-124.85 66.061-42.829 98.376-80.07 89.838-103.53-6.108-16.782-32.84-25.665-77.076-25.611-22.067 0.0269-48.152 2.2779-77.475 6.6856"/>
</svg>
<p>Huh… <b>USE PAPER</b>? That just might work. As you learned many years ago, papers are effective at getting rid of rocks. And exam essays are effective at getting rid of commas. Er, asterisks? Whatever that thing in the sky is. And then… well, then you might finally get a chance to find your own happy ending.</p>
<p>In any case, between the test booklets from 2022 and the blueprints from 2021, you ought to have plenty of material to spare. No more papering over the cracks: you’re ready to solve this once and for all.</p>
<p>Congratulations! You’ve finished <b>Galactic Puzzle Hunt</b> <span style="font-weight: 300">2022</span> (for real)!</p>
</div>
<div id="meta_meta">
<svg class="hero" viewBox="-20 -16 840 672" style="width: 450px; height: 360px; stroke-width: 15">
<path d="m654.94 60a95 95 0 0 0-78.938 42.234 280 280 0 0 1 94.762 146.45 95 95 0 0 0 79.234-93.682 95 95 0 0 0-95-95 95 95 0 0 0-0.05859 0z"/>
<path d="m50 2c-6-0-14 10-20 13-6 3 2-12-3-12s-10 5-14 10c-4 5-15 28-4 39 11 11 30-1 36-6s10-12 10-18-11 5-14 1 17-22 11-26c-1-1-2-1-2-1zm-28 23a13 13 0 0 1 0 0 13 13 0 0 1 13 13 13 13 0 0 1-13 13 13 13 0 0 1-13-13 13 13 0 0 1 13-13z" style="fill: currentColor; transform: translate(30px, 540px); stroke-width: 5"/>
<circle class="color" cx="400" cy="320" r="280"/>
<path class="color" d="m121.38 347.76c-75.763 46.581-113.84 87.652-104.66 112.88 17.778 48.851 204.32 25.804 416.64-51.477 101.96-37.111 196.36-82.022 262.42-124.85 66.061-42.829 98.376-80.07 89.838-103.53-6.108-16.782-32.84-25.665-77.076-25.611-22.067 0.0269-48.152 2.2779-77.475 6.6856"/>
</svg>
<p>That’s it! <b>WHACK TO THE FUTURE</b>. While you don’t have enough power to destroy the asteroid, you do have enough to deflect it to a later time. I’m sure that you’ll be able to deal with it then. Procrastination has never steered you wrong before. The asteroid is no longer your problem, it’s future-you’s problem. Galaxy saved, you go back to finishing your exam. Eh, do you really need to? You can always retake it on the next testing date…</p>
<p>Congratulations! You’ve finished <b>Galactic Puzzle Hunt</b> <span style="font-weight: 300">2022</span> (for real)!</p>
</div>
<div id="concert">
<svg class="hero" viewBox="0 0 360 360">
<path class="color" d="M60 180 A60 60 0 0 1 108 276 A120 120 0 0 1 60 180z M300 180 A60 60 0 0 0 252 276"/>
<path d="M84 108 L135 135 A120 120 0 0 1 225 135 L276 108 A120 120 0 0 0 84 108z"/>
<path d="M150 180 A60 60 0 0 0 180 210 60 60 0 0 0 210 180"/>
<path class="color" d="M30 180 A150 150 0 1 1 330 180 150 150 0 1 1 30 180"/>
</svg>
<p>Congratulations, you’ve obtained <b>AIR HORNS</b>. You can now express your displeasure towards all the bad drivers who don’t signal when changing chronological hyperlanes.</p>
<p>But you’ll need more than one device to stop the asteroid.</p>
</div>
<div id="seasons">
<svg class="hero" viewBox="0 0 360 360">
<path class="color" d="M90 300 L90 330 A20 20 0 0 0 110 350 L250 350 A20 20 0 0 0 270 330"/>
<path d="M120 340 L240 340"/>
<path d="M84 108 A120 120 0 0 0 252 276"/>
<path class="color" d="M30 180 A150 150 0 1 1 330 180 150 150 0 1 1 30 180"/>
</svg>
<p>Congratulations, you’ve obtained a <b>THYME SCALE</b>. This kitchen device for measuring seasonings also doubles as an instrument critical for astrotemporal navigation.</p>
<p>But you’ll need more than one device to stop the asteroid.</p>
</div>
<div id="forward">
<svg class="hero" viewBox="0 0 360 360">
<path class="color" d="M36 222 L10 350 86 350 A65 65 0 0 0 138 324 M324 222 L350 350 274 350"/>
<path d="M138 324 L130 350 230 350 222 324"/>
<path d="M84 108 A120 120 0 0 1 276 108 204 204 0 0 0 84 108z"/>
<path class="color" d="M30 180 A150 150 0 1 1 330 180 150 150 0 1 1 30 180"/>
</svg>
<p>Congratulations, you’ve obtained a <b>SHUTTLECLOCK</b>. This vehicle will help you weave around the warps in the fabric of spacetime.</p>
<p>But you’ll need more than one device to stop the asteroid.</p>
</div>
<div id="intro_alt">
<a href="https://2021.galacticpuzzlehunt.com/story">
<svg class="hero" viewBox="0 0 360 360">
<path class="color" d="M30 180 A150 150 0 1 1 330 180 150 150 0 1 1 30 180"/>
<foreignObject width="100%" height="100%">
<img src="/static/images/wormhole.png" style="width: 330px; margin: 15px">
</foreignObject>
</svg>
</a>
<p>Of course! You needed a <b>GAP YEAR</b> in 2021 to… huh, you can’t remember. Prepare for this exam? Travel the world? Look for your glasses? Well, there’s definitely a gap in your memory there.</p>
<p>As you ponder what you did last summer, you notice the space in front of you start to distort. A swirling rift suddenly opens a few meters ahead. Well, this is certainly more interesting than standardized testing. You step inside and find yourself in…</p>
</div>
<div id="intro">
<svg class="hero" viewBox="0 0 360 360">
<path class="color" d="M60 270 L50 350 118 350 A20 20 0 0 0 138 330 L138 324 M300 270 L310 350 242 350"/>
<path id="hands" style="stroke-linejoin: bevel"/>
<path class="color" d="M30 180 A150 150 0 1 1 330 180 150 150 0 1 1 30 180"/>
</svg>
<script>
function moveHands() {
const s = new Date().getSeconds() / 60;
const m = (new Date().getMinutes() + s) / 60;
$('#hands').attr('d', [
'M',
180 + 120 * Math.sin(s * 2 * Math.PI),
180 - 120 * Math.cos(s * 2 * Math.PI),
'L', 180, 180,
180 + 90 * Math.sin(m * 2 * Math.PI),
180 - 90 * Math.cos(m * 2 * Math.PI),
].join(' '));
}
setInterval(moveHands, 500);
moveHands();
</script>
<p>Yes! Exactly what you need to pass the test is <b>MORE TIME</b>! <span class="glitch" data-text="One hour">One hour</span> is not nearly long enough for this difficult exam. You sit back and put your hands in your lap. Time passes. Then it passes some more. Time continues passing. Everything is going smoothly.</p>
<p>Congratulations! You’ve <span class="glitch" data-text="finished">finished</span> Galactic Puzzle Hunt 2022!</p>
<p id="please-wait">Please wait a short moment while we compute your scores.</p>
<form id="check-results-form">
<button type="submit" class="btn" disabled>Check your results<span id="timer"></span></button>
</form>
<script>
const resetTime = Date.now() + 10 * 1000;
function checkButton() {
const left = (resetTime - Date.now()) / 1000;
if (left > 0) {
$('#timer').text(' (' + Math.floor(left / 60) + ':' + Math.floor(left % 60 / 10) + Math.floor(left % 10) + ')');
} else {
$('#timer').text('');
$('#please-wait').css('visibility', 'hidden');
$('form button.btn').removeAttr('disabled');
clearInterval(buttonTimer);
}
};
const buttonTimer = setInterval(checkButton, 500);
checkButton();
document.getElementById("check-results-form").addEventListener("submit", (e) => {
e.preventDefault();
window.location = "/resetting";
});
</script>
</div>
<script>
const slugs = ["intro_alt", "intro", "forward", "seasons", "concert", "meta_meta_alt", "meta_meta"];
slugs.forEach(slug => document.getElementById(slug).style.display = "none");
const matches = new RegExp(`(?:\\?|3F)(${slugs.join("|")})`).exec(document.URL);
if (matches && matches[1]) {
document.getElementById(matches[1]).style.display = "block";
}
</script>
</main>
</div>
<script>
document.getElementById('nav-music').style.display = 'none';
document.getElementById("progress-simulator").addEventListener("submit", (e) => {
if (e.submitter.name === "reset") {
toggleReset(true);
doGlitch(false);
document.getElementById("shortcuts").checked = false;
e.preventDefault();
} else {
localStorage.setItem(e.submitter.name, e.submitter.value);
}
});
addStyles();
function toggleReset(which) {
$('#loop-reset').toggleClass('loop-resetting', which);
}
function addStyles() {
const changeFavicon = (url) => {
const e = Array.from(document.getElementsByTagName("link"))
.filter(e => e.rel === "icon")[0];
e.href = url;
}
const addSheet = (url) => {
const e = document.createElement("link");
e.rel = "stylesheet";
e.href = url;
document.getElementsByTagName("head")[0].appendChild(e);
}
const seasons = ["spring", "summer", "autumn", "winter"];
let current_main_round = localStorage.getItem("round");
const endgame_unlocked = localStorage.getItem("endgame") === "true";
const matches = new RegExp(`(?:\\?|3F)(${seasons.join("|")})`).exec(document.URL);
if (matches && matches[1]) {
current_main_round = matches[1];
}
if (endgame_unlocked) {
addSheet("/static/css/endgame.css");
changeFavicon("/static/images/favicon-endgame.ico");
const nodes = document.getElementsByClassName("energy-nodes-info");
console.log(nodes);
if (nodes.length > 0) {
nodes[0].style.display = "block";
}
} else if (current_main_round === "concert") {
addSheet("/static/css/concert.css");
changeFavicon("/static/images/favicon-concert.ico");
// also add the concert music
document.getElementById('nav-music').style.display = 'inline-block';
const audio = document.getElementById("music-audio");
if (audio) {
audio.addEventListener('play', () => {
audio.volume = localStorage.getItem('music-audio-volume') ?? 0.5;
});
audio.addEventListener('volumechange', () => {
localStorage.setItem('music-audio-volume', audio.volume);
});
}
} else if (seasons.includes(current_main_round)) {
addSheet("/static/css/season.css");
addSheet(`/static/css/${current_main_round}.css`);
changeFavicon(`/static/images/favicon-${current_main_round}.ico`);
} else {
addSheet("/static/css/blue.css");
changeFavicon("/static/images/favicon-blue.ico");
}
}
registerOnGlitchHook((ex) => {
document.getElementById('background-glitch-wrapper').style.display = 'initial';
});
</script>
</body>
</html>