diff options
Diffstat (limited to 'users/kranzes/wasm-hello-world/src/index.html')
-rw-r--r-- | users/kranzes/wasm-hello-world/src/index.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/users/kranzes/wasm-hello-world/src/index.html b/users/kranzes/wasm-hello-world/src/index.html new file mode 100644 index 000000000000..d6366c8ee8b1 --- /dev/null +++ b/users/kranzes/wasm-hello-world/src/index.html @@ -0,0 +1,19 @@ +<html> + <head> + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/> + </head> + <body> + <script type="module"> + import init, { hello_world } from './wasm_hello_world.js'; + + async function run() { + await init(); + + hello_world(); + } + + run(); + </script> + </body> +</html> + |