add hello world sample

This commit is contained in:
Volker Berlin 2019-12-28 11:54:12 +01:00
parent d63ecdc716
commit ff6de221f8

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script src="HelloWorld.wasm.js"></script>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch('HelloWorld.wasm'), wasmImports)
.then(obj => obj.instance.exports.main())
.catch((err) => document.write(err + '<p>Missing <a href="https://github.com/i-net-software/JWebAssembly/wiki/browser">Browser Support</a>') );
</script>
</body>
</html>