diff --git a/src/App.vue b/src/App.vue index 91250c6..41bd051 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,6 +40,7 @@ const promptToast = ref('') const showPromptToast = ref(false) const showIntro = ref(false) const introWatched = ref(false) +const introStarted = ref(false) const introVideoRef = ref(null) const menuVideoRef = ref(null) const showTopBar = ref(true) @@ -87,6 +88,15 @@ function onIntroEnded() { showIntro.value = false } +function onIntroClick() { + if (!introStarted.value) { + introStarted.value = true + introVideoRef.value?.play().catch(() => {}) + } else if (introWatched.value) { + skipIntro() + } +} + function skipIntro() { saveSystem.markWatched('__intro__') showIntro.value = false @@ -292,9 +302,10 @@ init()
{{ t('ui.loading') }}