summaryrefslogtreecommitdiff
path: root/scripts/gui/chat.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-20 10:58:42 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-20 10:58:42 -0400
commit68db9abc7a02c78a0f170003c32d1fcd796eb212 (patch)
tree602e9be8f4641991a9666315426a8ca10807c78c /scripts/gui/chat.js
parent5207f04d5b775bf4805d83c81aaad1cfcf3fe68a (diff)
Replace var with let + visual tweaks
- Replace var with let in most of my code - No longer bring cards to forfront of deck when hovering - Tweaks for dropdown selector input
Diffstat (limited to 'scripts/gui/chat.js')
-rw-r--r--scripts/gui/chat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gui/chat.js b/scripts/gui/chat.js
index 428403a..7cd1ae2 100644
--- a/scripts/gui/chat.js
+++ b/scripts/gui/chat.js
@@ -77,7 +77,7 @@ class Chat {
this.getActiveChannel().btn.setAttribute("active", false);
c.btn.setAttribute("active", true);
- var ct = this.root.getElementsByClassName("chat-text")[0];
+ let ct = this.root.getElementsByClassName("chat-text")[0];
ct.replaceWith(c.e);
c.e.scroll({
@@ -94,7 +94,7 @@ class Chat {
sendMessage ()
{
- var str = this.chatInput.value;
+ let str = this.chatInput.value;
if(str == "")
return;
this.chatInput.value = "";
@@ -110,7 +110,7 @@ class Chat {
let autoscroll = c.e.scrollTop == c.e.scrollTopMax;
- let csp = document.createElement("span")
+ let csp = document.createElement("span");
let tsp = document.createElement("span");
if(msg.server === true){