~starkingdoms/starkingdoms

ref: b07b08dc56f85bd4f62f5873a1b96d506b321bb9 starkingdoms/crates/unified/index.html -rw-r--r-- 663 bytes
b07b08dcghostly_zsh fix: trying to fix gravity 17 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
  <head>
    <meta content="text/html; charset=utf8" http-equiv="content-type" />
    <title>starkingdoms</title>
  </head>
  <body>
    <div id="menu">
    <label for="url">input server url</label>
    <input id="url" type="text" />
    <button id="play">play!</button>
    </div>

    <script type="module">
      import init, { play } from './web/starkingdoms.js';
      async function run() {
        await init();

        let url = document.getElementById('url').value;
        document.getElementById('menu').remove();

        play(url);
      }

      document.getElementById('play').addEventListener('click', run);
    </script>
  </body>
</html>