|
1 | 1 | <script lang="ts">
|
2 |
| - export const flavorQuotes = [ |
3 |
| - `Uh oh!`, |
4 |
| - `Time to fire up the ol' debugger!`, |
5 |
| - `Your item displays are sad 🥺`, |
6 |
| - `Skill Issue.`, |
7 |
| - `Should'a seen that one comming...`, |
8 |
| - `Snaviewavie did an oopsie poopsie x3`, |
9 |
| - `We to a little trolling.`, |
10 |
| - `execute run execute run execute run execute run say This is fine.`, |
11 |
| - `This is why we can't have nice things. :(`, |
12 |
| - `Have you tried turning it off and on again?`, |
13 |
| - `What if I put my command block next to yours? Haha just kidding... Unless?`, |
14 |
| - `If at first you don't succeed, try, try again!`, |
15 |
| - // We do a little trolling in binary. |
16 |
| - `B:01010111 01100101 00100000 01100100 01101111 00100000 01100001 00100000 01101100 01101001 01110100 01110100 01101100 01100101 00100000 01110100 01110010 01101111 01101100 01101100 01101001 01101110 01100111`, |
17 |
| - `I've decided to stop working for today. Try again tomorrow!`, |
18 |
| - `Every time you see this error message, a developer vanishes in a puff of binary.`, |
19 |
| - `"Flavor Text"? I've never tasted text before...`, |
20 |
| - `( ͡° ͜ʖ ͡°) nice 404 page you got there.`, |
21 |
| - `Some day you'll learn. But until then, I control the cheese.`, |
22 |
| - `Please deposit 5 coins!`, |
23 |
| - `Failed to find global 'pandemic'.`, |
24 |
| - `I'm sorry, Dave. I'm afraid I can't do that.`, |
25 |
| - `<a href="https://xkcd.com/221/"><img src="https://imgs.xkcd.com/comics/random_number.png" alt="https://xkcd.com/221/"/></a>` |
26 |
| - ] |
| 2 | + import { page } from '$app/stores' |
27 | 3 |
|
28 |
| - function getRandomFlavorQuote() { |
29 |
| - return flavorQuotes[Math.floor(Math.random() * flavorQuotes.length)] |
30 |
| - } |
| 4 | + const flavorQuote = $page.data.flavorQuote as string |
31 | 5 | </script>
|
32 | 6 |
|
33 | 7 | <div class="page">
|
|
43 | 17 | </p>
|
44 | 18 | </div>
|
45 | 19 | </div>
|
46 |
| - <q class="quote"><span>{@html getRandomFlavorQuote()}</span></q> |
| 20 | + <q class="quote"><span>{@html flavorQuote}</span></q> |
47 | 21 | </div>
|
48 | 22 | </div>
|
49 | 23 |
|
|
0 commit comments