aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/appendICNotice.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2026-04-06 16:22:55 +0200
committerGitHub <noreply@github.com>2026-04-06 16:22:55 +0200
commit815f56add06b92a48b964cb1343f70c86ea36435 (patch)
tree99ef56a333dbb419ccadfcaac2cbbc94a8d3df1d /webAO/client/appendICNotice.ts
parent8c8a4a478a233764b7ca31bd39ebfdd2954a2a46 (diff)
parent6f407b54c3251b90463bc508852b031d72b0c673 (diff)
Merge pull request #298 from AttorneyOnline/reconnect
Add reconnect UI
Diffstat (limited to 'webAO/client/appendICNotice.ts')
-rw-r--r--webAO/client/appendICNotice.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client/appendICNotice.ts b/webAO/client/appendICNotice.ts
new file mode 100644
index 0000000..29065db
--- /dev/null
+++ b/webAO/client/appendICNotice.ts
@@ -0,0 +1,10 @@
+/**
+ * Appends a notice (hrtext divider) to the IC log.
+ * @param {string} msg the notice text
+ */
+export function appendICNotice(msg: string) {
+ const el = document.createElement("div");
+ el.className = "hrtext";
+ el.textContent = msg;
+ document.getElementById("client_log")!.appendChild(el);
+}