aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/appendICNotice.ts
diff options
context:
space:
mode:
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);
+}