Inititial commit
This commit is contained in:
31
index.html
Normal file
31
index.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user