aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-log.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-11 23:37:28 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-11 23:37:28 +0200
commit22bdc082a3fb26144f861732a971e091718a215f (patch)
treef6724e9983441c1d59068f0dba8d40e9eb3b7064 /src/js/arching-kaos-log.js
parent075ef0c6213585094266cceaaac6a281afa1099e (diff)
downloadarching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.tar.gz
arching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.tar.bz2
arching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.zip
Refactoring using ak-generator
Diffstat (limited to 'src/js/arching-kaos-log.js')
-rw-r--r--src/js/arching-kaos-log.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/js/arching-kaos-log.js b/src/js/arching-kaos-log.js
index 67a9d37..1f79994 100644
--- a/src/js/arching-kaos-log.js
+++ b/src/js/arching-kaos-log.js
@@ -7,11 +7,12 @@
*/
function archingKaosLog(message){
- var sta = document.createElement("div");
var lts = new Date(Date.now());
- var fmsg = lts.toISOString() + " " + message;
- sta.innerText = fmsg
- currentLogMessageElement.innerHTML = fmsg;
- logsAreaElement.appendChild(sta);
+ var sta = {
+ element:"div",
+ innerText: lts.toISOString() + " " + message
+ };
+ currentLogMessageElement.innerText = sta.innerText;
+ makeElement(sta, logsAreaElement);
}
// @license-end