mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-12-02 03:32:28 +00:00
26 lines
817 B
HTML
26 lines
817 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Note the usage of `type=module` here as this is an ES6 module -->
|
||
|
<script type="module">
|
||
|
// Use ES module import syntax to import functionality from the module
|
||
|
// that we have compiled.
|
||
|
//
|
||
|
// Note that the `default` import is an initialization function which
|
||
|
// will "boot" the module and make it ready to use. Currently browsers
|
||
|
// don't support natively imported WebAssembly as an ES module, but
|
||
|
// eventually the manual initialization won't be required!
|
||
|
import init from './pkg/embassy_wasm_example.js';
|
||
|
await init();
|
||
|
</script>
|
||
|
<h1>Log</h1>
|
||
|
<div>
|
||
|
<ul id="log">
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|