From 34307f4aaa889b9767269a535336801f05ebfaf7 Mon Sep 17 00:00:00 2001 From: VDawg Date: Thu, 16 Nov 2023 15:18:23 +0100 Subject: [PATCH] small clean up --- src/routes/PreviewRiceSlice.svelte | 7 +------ src/routes/wall_of_fame/Contest.svelte | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/routes/PreviewRiceSlice.svelte b/src/routes/PreviewRiceSlice.svelte index 3e6b78c..5506304 100755 --- a/src/routes/PreviewRiceSlice.svelte +++ b/src/routes/PreviewRiceSlice.svelte @@ -22,12 +22,7 @@ } onMount(() => { - // Nessecary as browsers might block autoplay. The timeout is nessecary as the video is always paused at the very start, even with autoplay on - const timeout = setTimeout(() => { - isPaused = videoElement.paused - }, 10) - - return () => clearTimeout(timeout) + videoElement.play().catch(() => {}) }) diff --git a/src/routes/wall_of_fame/Contest.svelte b/src/routes/wall_of_fame/Contest.svelte index d9cb91a..db2d259 100755 --- a/src/routes/wall_of_fame/Contest.svelte +++ b/src/routes/wall_of_fame/Contest.svelte @@ -77,7 +77,6 @@ } } .mask { - /* overflow: hidden; */ top: 0px; left: 50%; width: 400%; @@ -90,7 +89,6 @@ transform-origin: top; } .background { - /* scale: 0.8 0.8; */ --c1: color-mix(in hsl shorter hue, var(--color), hsl(0, 100%, 0%) 10%); --c2: color-mix(in hsl shorter hue, var(--color), hsl(0, 100%, 0%) 15%); --c3: color-mix(in hsl shorter hue, var(--color), hsl(0, 100%, 0%) 20%);