marine/web-runtime/index.html

19 lines
418 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hello-wasm example</title>
</head>
<body>
<script type="module" src="index.js">
import init, {greet, test_read_memory, test_write_memory} from "./pkg/marine_web_runtime.js";
init()
.then(() => {
greet("WebAssembly 2");
test_read_memory();
test_write_memory();
});
</script>
</body>
</html>