16 lines
363 B
HTML
16 lines
363 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en-US">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>hello-wasm example</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="module">
|
||
|
import init, { greet } from "./pkg/hello_wasm.js";
|
||
|
init().then(() => {
|
||
|
greet("WebAssembly");
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|