Module-HTTPD/src/main/resources/httpd/punishments.html

22 lines
679 B
HTML

Punishments
PUNISHMENTS
<h2>Enter the UUID or username of the player you want to lookup</h2>
<div class="input-group mb-3 w-75 p-3">
<input id="uuid" type="text" autocomplete="off" autofocus class="form-control">
<button class="btn btn-outline-primary" type="submit"
onclick="redirect();">Submit
</button>
</div>
<script>
function redirect() {
const url = document.getElementById('uuid').value;
window.location = "/api/punishments/" + url
}
</script>
<script>
document.getElementById('uuid').addEventListener('keypress', function (event) {
if (event.keyCode === 13) {
redirect();
}
});
</script>