diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-04-06 16:22:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-06 16:22:55 +0200 |
| commit | 815f56add06b92a48b964cb1343f70c86ea36435 (patch) | |
| tree | 99ef56a333dbb419ccadfcaac2cbbc94a8d3df1d /webAO/client/appendICNotice.ts | |
| parent | 8c8a4a478a233764b7ca31bd39ebfdd2954a2a46 (diff) | |
| parent | 6f407b54c3251b90463bc508852b031d72b0c673 (diff) | |
Merge pull request #298 from AttorneyOnline/reconnect
Add reconnect UI
Diffstat (limited to 'webAO/client/appendICNotice.ts')
| -rw-r--r-- | webAO/client/appendICNotice.ts | 10 |
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); +} |
