From e147e7b89f33c29ca11ad04aca7650e5cd15a20d Mon Sep 17 00:00:00 2001 From: saicharankandukuri Date: Sun, 17 Sep 2023 17:35:41 +0530 Subject: [PATCH 1/2] initialise emoji variable with a random emoji --- src/lib/randomEmoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/randomEmoji.ts b/src/lib/randomEmoji.ts index cc423d4..3c10d84 100644 --- a/src/lib/randomEmoji.ts +++ b/src/lib/randomEmoji.ts @@ -824,7 +824,7 @@ var emojis = [ let waitTime = 80; let emojiWait = 0; -let prevEmoji = ''; +let prevEmoji = emojis[Math.floor(Math.random() * emojis.length)]; function returnRandomEmoji() { if (emojiWait >= waitTime) { emojiWait = 0; From 5da12aaec5d5e1413ad241a1b1698075d8436f6a Mon Sep 17 00:00:00 2001 From: saicharankandukuri Date: Sun, 17 Sep 2023 17:44:07 +0530 Subject: [PATCH 2/2] Add a small background --- src/routes/+page.svelte | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c164f0e..d6ca18e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -13,7 +13,6 @@ function counter(intervel, max, step) { let interval = setInterval(() => { count = count + step > max ? max : count + step; - console.log(count + ' ' + interval); finalText = count.toString() + ' ' + returnRandomEmoji(); if (count >= max) { clearInterval(interval); @@ -27,14 +26,16 @@
-
- +
+ UDROID Downloads -

{finalText}

+

{finalText}

+