Spaces:
Running
Running
<script lang="ts"> | |
// Svelte | |
import { onMount } from "svelte"; | |
// Variables | |
let displayGame: boolean = false; | |
onMount(() => { | |
displayGame = true; | |
}); | |
</script> | |
<h1>Welcome to SvelteKit</h1> | |
<p> | |
Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation | |
</p> | |
{#if displayGame} | |
<iframe | |
src="game/index.html" | |
frameborder="0" | |
title="Spaceship Drift" | |
height="512" | |
width="512" | |
/> | |
{/if} | |