Files
Werwolf/index.html
Christian Barth b4e2e4a52a Inititial commit
2018-04-29 01:25:38 +02:00

31 lines
832 B
HTML

<html>
<head>
<title>Werwolf Test page</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
function send(input, where)
{
jQuery.post("http://127.0.0.1:25566/"+where, input, function(data, textStatus, jqXHR ){console.log(data);});
}
$("document").ready(function(){
$("#send").click(send($("#in").val(),$("#where").val()));
});
</script>
</head>
<body>
<header>
</header>
<main>
<form>
<input id="in"/>
<input id="where"/>
<button id="send">SEND</button>
</form>
</main>
<footer>
</footer>
</body>
</html>