From e03ebae7972e350d6a2db0b885f73dac37f8d2c4 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Tue, 3 May 2022 03:26:36 -0700 Subject: [PATCH] begin kick menu --- pages/players.html | 11 +++++++++-- scripts/players.js | 6 ++++++ styles/players.css | 6 ++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 scripts/players.js create mode 100644 styles/players.css diff --git a/pages/players.html b/pages/players.html index 928458d..adb2e2c 100644 --- a/pages/players.html +++ b/pages/players.html @@ -2,8 +2,15 @@ + + + -
- This is the players page! +
+
+ Kick user: + + +
\ No newline at end of file diff --git a/scripts/players.js b/scripts/players.js new file mode 100644 index 0000000..8b9aec2 --- /dev/null +++ b/scripts/players.js @@ -0,0 +1,6 @@ +function kickUser() { + const user = document.getElementById('kickInput').value; + const payload = `/kick ${user}`; + + sendCommand(payload); +} \ No newline at end of file diff --git a/styles/players.css b/styles/players.css new file mode 100644 index 0000000..7b46ddb --- /dev/null +++ b/styles/players.css @@ -0,0 +1,6 @@ +#playerContent div { + display: flex; + flex-direction: row; + justify-content: space-between; + width: 20%; +} \ No newline at end of file