From 3150e2c372ab8c7c1da433b3ed3d985b3a0ea539 Mon Sep 17 00:00:00 2001 From: genki_angel Date: Tue, 18 Nov 2025 06:06:34 +0000 Subject: [PATCH] random quotes for billboard --- src/lib/components/billboard.svelte | 4 ++-- src/lib/functions/randomquote.ts | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/lib/functions/randomquote.ts diff --git a/src/lib/components/billboard.svelte b/src/lib/components/billboard.svelte index 9f0ab8f..a9c7b4b 100755 --- a/src/lib/components/billboard.svelte +++ b/src/lib/components/billboard.svelte @@ -1,12 +1,12 @@
-

meowwww

+

{randomQuote()}

diff --git a/src/lib/functions/randomquote.ts b/src/lib/functions/randomquote.ts new file mode 100644 index 0000000..d9884b2 --- /dev/null +++ b/src/lib/functions/randomquote.ts @@ -0,0 +1,21 @@ +const quotes: string[] = [ + "meowwwww", + "made with my tiny paws :3c", + "no bunnies were harmed in the making of this site", + "everyday is halloween!!!", + "proud bug parent", + "was zur hölle", + "katzenhasen sind echt!", + "are you lost?", + "i am within 100 metres of your current location...", + "all bite, no bark", + "halloween is just a week away", + "WOOF WOO- i mean meow meow =^w^=", + "let's go gambling!" +] + +export default function randomQuote() { + const index: number = Math.floor(Math.random() * quotes.length); + const quote: string = quotes[index] + return quote +} \ No newline at end of file