TEMPORARY: add testing example
This commit is contained in:
parent
7dabad4d71
commit
77cd3adb01
5 changed files with 42 additions and 5 deletions
20
test.html
Normal file
20
test.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="module">
|
||||
import { default as init } from './window.js';
|
||||
|
||||
async function run() {
|
||||
console.log("Loading");
|
||||
await init('./window_bg.wasm');
|
||||
console.log("Loaded");
|
||||
}
|
||||
|
||||
run();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<canvas id="test_canvas"></canvas>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue