diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3cebd44..9d6ef75 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -22,9 +22,9 @@ let showConfetti: boolean = false; function onProgressConfetti(progress: number){ - // console.log(progress > 0.225); + console.log(progress); - showConfetti = progress > 0.225; + showConfetti = !mobile && progress > 0.225 || mobile && progress > 0.32; } @@ -60,9 +60,11 @@
-
+
{#if showConfetti} - +
+ +
{/if}