mirror of
https://github.com/fluencelabs/marine.git
synced 2025-03-15 05:50:49 +00:00
19 lines
418 B
HTML
19 lines
418 B
HTML
<!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>
|