Add boilerplate to index
This commit is contained in:
parent
dd0490ee13
commit
364d155f9d
42
index.html
42
index.html
@ -5,37 +5,29 @@
|
||||
<title>leafblade Minecraft Server</title>
|
||||
|
||||
<meta charset="UTF-8"/>
|
||||
|
||||
<style type="text/css">
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#map {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width:768px) {
|
||||
#overlay { width: 100% }
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
this is the base site
|
||||
|
||||
<a href="/newclient">Log in</a>
|
||||
|
||||
<br>
|
||||
|
||||
<input id="some_input" type="text" placeholder="dunno"/>
|
||||
<button id="btn_dunno">idk</button>
|
||||
|
||||
<script>
|
||||
document.getElementById("btn_dunno").onclick = async function (e) {
|
||||
let text = document.getElementById("some_input").value;
|
||||
let data = {"sessionid": text};
|
||||
|
||||
await fetch('api/join_session', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
})
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user