Skip to content

Commit

Permalink
Spooktober
Browse files Browse the repository at this point in the history
Also deleted project files
  • Loading branch information
Zhincore committed Oct 1, 2024
1 parent 139253d commit d2e8803
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
3 changes: 0 additions & 3 deletions ProjectFiles/cp2077-malorian-explosion_chart.blend

This file was deleted.

3 changes: 0 additions & 3 deletions ProjectFiles/malorian-explosion_chart.mp4

This file was deleted.

3 changes: 0 additions & 3 deletions ProjectFiles/malorian-explosion_chart.webm

This file was deleted.

24 changes: 14 additions & 10 deletions src/routes/HeroBackground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -47,16 +59,8 @@
poster={malorian}
>
<!-- <source media="(min-width: 1024px)" src={malorianHEVC} type="video/hevc; codecs=hevc" /> -->
<source
media="(min-width: 1024px)"
src="https://files.moonded.com/RedModding/malorian-explosion_chart.webm"
type="video/webm; codecs=av1"
/>
<source
media="(min-width: 1024px)"
src="https://files.moonded.com/RedModding/malorian-explosion_chart.mp4"
type="video/mp4; codecs=avc1.640028"
/>
<source media="(min-width: 1024px)" src={src.webm} type="video/webm; codecs=av1" />
<source media="(min-width: 1024px)" src={src.mp4} type="video/mp4; codecs=avc1.640028" />
<Image src={malorian} />
</video>

Expand Down

0 comments on commit d2e8803

Please sign in to comment.