Skip to content

Commit

Permalink
fix(ceremony): play glitch background on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 27, 2024
1 parent 3e6ccaa commit f0df9e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ceremony/ceremony.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ _: {
export VITE_SUPABASE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im90ZmFhbWR4bWdua2pxc29zeHllIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjEzMjA5NDMsImV4cCI6MjAzNjg5Njk0M30.q91NJPFFHKJXnbhbpUYwsB0NmimtD7pGPx6PkbB_A3w"
npm install
npm run dev
npm run dev -- --host
'';
};
};
Expand Down
8 changes: 8 additions & 0 deletions ceremony/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ watch(
contributor.setUserId(user.session?.user.id)
}
)
$effect(() => {
if (!showBootSequence) {
// @ts-ignore
document.getElementById("glitch-video").play()
}
})
let showBootSequence = $state(true)
let bootSequenceVideoElement = $state<HTMLVideoElement | null>(null)
Expand Down Expand Up @@ -72,6 +79,7 @@ const hideBootSequenceVideo = () => (showBootSequence = false)
</video>
{:else}
<video
id="glitch-video"
loop
muted
autoplay
Expand Down

0 comments on commit f0df9e4

Please sign in to comment.