aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-26 19:02:08 +0200
committersD <stoned@derpymail.org>2020-04-26 19:02:08 +0200
commit3ff463832f4ffb9accaf4da6629ff48599557a54 (patch)
tree287b73808ba75b2856202b48136dd1b7b7a6e616 /webAO/client.js
parent51597ec5a592a7f013537e4bd638e27ea0ecced6 (diff)
use class instead of id for log name
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index e3fb830..6f99725 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2274,7 +2274,7 @@ window.ReconnectButton = ReconnectButton;
function appendICLog(msg, name = "", time = new Date()) {
const entry = document.createElement("p");
const nameField = document.createElement("span");
- nameField.id = "iclog_name";
+ nameField.className = "iclog_name";
nameField.appendChild(document.createTextNode(name));
entry.appendChild(nameField);
entry.appendChild(document.createTextNode(msg));
@@ -2282,7 +2282,7 @@ function appendICLog(msg, name = "", time = new Date()) {
// Only put a timestamp if the minute has changed.
if (lastICMessageTime.getMinutes() !== time.getMinutes()) {
const timeStamp = document.createElement("span");
- timeStamp.id = "iclog_time";
+ timeStamp.className = "iclog_time";
timeStamp.innerText = time.toLocaleTimeString(undefined, {
hour: "numeric",
minute: "2-digit"