~starkingdoms/starkingdoms

ref: dc6d00a9d5c88de48b03c949f6e9cd359662fd59 starkingdoms/web/index.html -rw-r--r-- 351 bytes
dc6d00a9 — core initial commit 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html lang="en-US">
    <head>
        <meta charset="utf-8" />
        <title>wasm testing</title>
    </head>

    <body>
        <script type="module">
            import init, { greet } from "../client/pkg";

            init().then(() => {
                greet("WebAssembly");
            })
        </script>
    </body>
</html>