mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2025-07-01 07:56:43 +00:00
Use config.yml + you can now hit enter to search
This commit is contained in:
25
src/main/resources/httpd/punishments.html
Normal file
25
src/main/resources/httpd/punishments.html
Normal 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>
|
@ -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>
|
Reference in New Issue
Block a user