21 lines
399 B
HTML
21 lines
399 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
const imports = {
|
|
guppy: {
|
|
print: (arg) => console.log (arg)
|
|
}
|
|
}
|
|
|
|
fetch("u.wasm")
|
|
.then((response) => response.arrayBuffer())
|
|
.then((bytes) => WebAssembly.instantiate(bytes, imports))
|
|
.then((results) => {
|
|
results.instance.exports.main ();
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|