slint/examples/memory/index.html
Simon Hausmann 2398d00e6f Apply the wasm init simplifcation from the tutorial
The await wrapper is not needed
2020-12-09 13:52:20 +01:00

26 lines
No EOL
706 B
HTML

<html>
<!--
This is a static html file used to display the wasm build.
In order to generate the build
- uncomment the #wasm# lines in Cargo.toml
- Run `wasm-pack build --release --target web` in this directory.
-->
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
<p>This is the SixtyFPS Memory Game compiled to WebAssembly.</p>
<canvas id="canvas"></canvas>
<p>
<a href="https://github.com/sixtyfpsui/sixtyfps/blob/master/examples/memory/main.rs">
View Source Code on GitHub</a>
</p>
<script type="module">
import init from "./pkg/memory.js";
init();
</script>
</body>
</html>