begin kick menu

This commit is contained in:
SpikeHD 2022-05-03 03:26:36 -07:00
parent fa9ab93880
commit e03ebae797
3 changed files with 21 additions and 2 deletions

View File

@ -2,8 +2,15 @@
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href="../styles/console.css" /> <link rel="stylesheet" type="text/css" href="../styles/console.css" />
<link rel="stylesheet" type="text/css" href="../styles/players.css" />
<script src="../scripts/console.js"></script>
<script src="../scripts/players.js"></script>
</head> </head>
</html> </html>
<div> <div id="playerContent">
This is the players page! <div id="kicker">
<span id="kickTitle">Kick user: </span>
<input type="text" id="kickInput" />
<button id="kickButton" onclick="kickUser()">Kick</button>
</div>
</div> </div>

6
scripts/players.js Normal file
View File

@ -0,0 +1,6 @@
function kickUser() {
const user = document.getElementById('kickInput').value;
const payload = `/kick ${user}`;
sendCommand(payload);
}

6
styles/players.css Normal file
View File

@ -0,0 +1,6 @@
#playerContent div {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 20%;
}