Add boilerplate to index

This commit is contained in:
Kai Vogelgesang 2020-04-17 02:39:49 +02:00
parent dd0490ee13
commit 364d155f9d

View File

@ -5,37 +5,29 @@
<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>