From daf20b5139333a00bbe572c55117c076369111f4 Mon Sep 17 00:00:00 2001 From: OllyNicholass Date: Sun, 11 Feb 2024 18:34:12 +0000 Subject: [PATCH] feat(#23): reduce volume and limit to 5s --- src/routes/estimation/[roomId]/+page.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/routes/estimation/[roomId]/+page.svelte b/src/routes/estimation/[roomId]/+page.svelte index 446dce5..1121097 100644 --- a/src/routes/estimation/[roomId]/+page.svelte +++ b/src/routes/estimation/[roomId]/+page.svelte @@ -102,8 +102,8 @@ '/sounds/explosion2.mp3' ], volume: { - min: 4, - max: 8 + min: 1, + max: 2 } } } @@ -195,6 +195,11 @@ } else if (message.type === 'estimation-closed') { estimateGroups = message.groupedEstimates; showFireworks = areEstimatesSame(estimateGroups); + if (showFireworks) { + setTimeout(() => { + showFireworks = false; + }, 5000); + } showRestartButton = true; showEstimates = true; disableEstimates = true;