mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2025-04-19 09:13:02 +00:00
22 lines
669 B
HTML
22 lines
669 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" 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> |