rust-flappy-dragon/src/index.html

23 lines
898 B
HTML

<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<title>Flappy Dragon by lyte.dev</title>
</head>
<body>
<canvas id="canvas" width="640" height="480"></canvas>
<a href="//git.lyte.dev/lytedev/rust-flappy-dragon">Source Code</a>
<script src="./rust-game-1.js"></script>
<script>
window.addEventListener("load", async () => {
await wasm_bindgen("./rust-game-1_bg.wasm");
});
</script>
<style>
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body, html { background-color: #111; display: flex; min-height: 100vh; max-width: 100vw; justify-content: center; align-items: center; flex-direction: column; font-family: sans-serif; }
canvas { margin-bottom: 1em; max-height: 100vh; max-width: 100vw; }
a { color: #fff; margin-bottom: 1em; }
</style>
</body>
</html>