Add file viewer branding options

This commit is contained in:
2022-02-07 12:00:22 +01:00
parent 1de3bb49c5
commit af82d45c6e
20 changed files with 477 additions and 103 deletions

View File

@@ -0,0 +1,31 @@
<script>
let sequence = [
"ArrowUp",
"ArrowUp",
"ArrowDown",
"ArrowDown",
"ArrowLeft",
"ArrowRight",
"ArrowLeft",
"ArrowRight",
"b",
"a",
]
let index = 0
const keypress = e => {
if (e.key === sequence[index]) {
index++
} else {
index = 0
}
if (index === sequence.length) {
index = 0
let audio = new Audio("/res/misc/amogus.opus")
audio.play()
}
}
</script>
<svelte:window on:keydown={keypress} />