Add boilerplate to index
This commit is contained in:
parent
dd0490ee13
commit
364d155f9d
48
index.html
48
index.html
@ -4,38 +4,30 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>leafblade Minecraft Server</title>
|
<title>leafblade Minecraft Server</title>
|
||||||
|
|
||||||
<meta charset="UTF-8" />
|
<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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
this is the base site
|
this is the base site
|
||||||
|
|
||||||
<a href="/newclient">Log in</a>
|
<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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user