Use config.yml + you can now hit enter to search

This commit is contained in:
2022-04-13 23:49:12 -05:00
parent 803710b674
commit c4ad009a34
6 changed files with 39 additions and 71 deletions

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<body>
<div style="text-align: center;">
<h2 style="font-family:Helvetica,serif">Enter the UUID or username of the player you want to lookup</h2>
<input type="text"
id="uuid"
autofocus
onkeydown="if (event.keyCode === 13)
document.getElementById('submit').click()"/>
<input type="button"
id="submit"
value="Submit"
onclick="redirect();"/>
<script>
function redirect() {
const url = document.getElementById('uuid').value;
window.location = "punishments/" + url
}
</script>
</div>
</body>
</html>

View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<body>
<div style="text-align: center;">
<h2 style="font-family:Helvetica">Enter the UUID or username of the player you want to check</h2>
<input id="test" type="text" autofocus>
<button type="button" onclick="redirect()">Submit</button>
<script>
function redirect() {
var url = document.getElementById('test').value
window.location = "punishments/" + url
}
</script>
</div>
</body>
</html>