1
0
rust-wasm-snake/index.html

39 lines
621 B
HTML

<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake</title>
<style>
html {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#root {
border: solid;
}
.field {
text-decoration: none;
text-align: center;
width: 1.2rem;
height: 1.2rem;
line-height: 1.2rem;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module">
import init from "./pkg/rust_wasm_snake.js"
async function main() {
await init()
}
main()
</script>
</body>
</html>