Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Sep 27, 2024
1 parent ad795a5 commit 5799afe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ceremony/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { checkAuth } from "$lib/state/session.svelte.ts"
import Terminal from "$lib/components/Terminal/index.svelte"
import { start } from "$lib/client"
import Timer from "$lib/components/Terminal/Timer.svelte"
import { onMount } from "svelte";
import { getAverageTimes } from "$lib/supabase";
import { onMount } from "svelte"
import { getAverageTimes } from "$lib/supabase"
let { children } = $props()
Expand Down Expand Up @@ -38,17 +38,17 @@ watch(
}
)
let enabledVideo = $state<'INTRO' | 'MAIN' | 'OUTRO'>('INTRO')
let enabledVideo = $state<"INTRO" | "MAIN" | "OUTRO">("INTRO")
let introVideoElement = $state<HTMLVideoElement | null>(null)
onMount(() => introVideoElement?.play())
const hideIntroVideo = () => enabledVideo = 'MAIN'
const hideIntroVideo = () => (enabledVideo = "MAIN")
let outroVideoElement = $state<HTMLVideoElement | null>(null)
let deleteOutroVideo = () => outroVideoElement = null
let deleteOutroVideo = () => (outroVideoElement = null)
</script>

{#if enabledVideo === 'INTRO'}
Expand Down

0 comments on commit 5799afe

Please sign in to comment.