<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>