From d2e8803301c5460db8519586bbe46406f49d8153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=BDingor?= Date: Tue, 1 Oct 2024 23:22:56 +0200 Subject: [PATCH] Spooktober Also deleted project files --- .../cp2077-malorian-explosion_chart.blend | 3 --- ProjectFiles/malorian-explosion_chart.mp4 | 3 --- ProjectFiles/malorian-explosion_chart.webm | 3 --- src/routes/HeroBackground.svelte | 24 +++++++++++-------- 4 files changed, 14 insertions(+), 19 deletions(-) delete mode 100644 ProjectFiles/cp2077-malorian-explosion_chart.blend delete mode 100644 ProjectFiles/malorian-explosion_chart.mp4 delete mode 100644 ProjectFiles/malorian-explosion_chart.webm diff --git a/ProjectFiles/cp2077-malorian-explosion_chart.blend b/ProjectFiles/cp2077-malorian-explosion_chart.blend deleted file mode 100644 index 261aedc..0000000 --- a/ProjectFiles/cp2077-malorian-explosion_chart.blend +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f662860eb12acd0a89a57e5f445dfc70895075afb319077c63dffbb695abc77 -size 1426967 diff --git a/ProjectFiles/malorian-explosion_chart.mp4 b/ProjectFiles/malorian-explosion_chart.mp4 deleted file mode 100644 index 2eddecd..0000000 --- a/ProjectFiles/malorian-explosion_chart.mp4 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:522b8bd3230d53c56b33271de2e3a978d48391106da6aa507020202a9a0d4f26 -size 11677741 diff --git a/ProjectFiles/malorian-explosion_chart.webm b/ProjectFiles/malorian-explosion_chart.webm deleted file mode 100644 index 2c628a9..0000000 --- a/ProjectFiles/malorian-explosion_chart.webm +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b4f53818d96bad669a1d1f5b5132a0269873bb1ab5dccb9948dcaa7ad4912dc9 -size 6403938 diff --git a/src/routes/HeroBackground.svelte b/src/routes/HeroBackground.svelte index ea4dff1..2de7c76 100644 --- a/src/routes/HeroBackground.svelte +++ b/src/routes/HeroBackground.svelte @@ -11,6 +11,18 @@ let bgLoaded = false; let autoplayDisabled = false; + const month = new Date().getMonth() + 1; + const src = [ + { + webm: "https://files.moonded.com/RedModding/malorian-explosion_chart.webm", + mp4: "https://files.moonded.com/RedModding/malorian-explosion_chart.mp4", + }, + { + webm: "https://static.zhincore.eu/cp/cyberpumpkin.webm", + mp4: "https://static.zhincore.eu/cp/cyberpumpkin.mp4", + }, + ][+(month == 10)]; + onMount(() => { // Cancel autoplay video.pause(); @@ -47,16 +59,8 @@ poster={malorian} > - - + +