roc/examples/platform-switching/web-assembly-platform/index.html
2022-10-17 15:22:20 +02:00

12 lines
315 B
HTML

<html>
<body>
<div id="output"></div>
<script src="./host.js"></script>
<script>
const elem = document.getElementById("output");
roc_web_platform_run("./rocLovesWebAssembly.wasm", (string_from_roc) => {
elem.textContent = string_from_roc;
});
</script>
</body>
</html>