mirror of
https://github.com/SpikeHD/MojoFrontend.git
synced 2024-11-22 01:05:33 +00:00
begin kick menu
This commit is contained in:
parent
fa9ab93880
commit
e03ebae797
@ -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
6
scripts/players.js
Normal 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
6
styles/players.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#playerContent div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 20%;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user