~starkingdoms/starkingdoms

ref: 1292c16faa29f5dae2c087e68da2b1ed436ca0c7 starkingdoms/crates/unified/index.html -rw-r--r-- 663 bytes
1292c16f — core feat: add orbital info to config 18 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>