From 68db9abc7a02c78a0f170003c32d1fcd796eb212 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 20 Jul 2022 10:58:42 -0400 Subject: 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 --- scripts/gui/chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/gui/chat.js') 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){ -- cgit v1.2.3