WIP: grundstruktur
This commit is contained in:
parent
df5a05dfc5
commit
862d65c894
20
frontlog.js
Normal file
20
frontlog.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
let frontlogList = {};
|
||||||
|
let frontlog_mxel = document.body.dataset['frontlog']??3;
|
||||||
|
let frontlog = document.createElement('frontlog');
|
||||||
|
document.body.appendChild(frontlog);
|
||||||
|
|
||||||
|
let frontlogAdd = function(title,icon,msg,col, time) {
|
||||||
|
let elem = document.createElement('flogelem');
|
||||||
|
{
|
||||||
|
let elemid = 'fl_';
|
||||||
|
{
|
||||||
|
let ch = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
||||||
|
let chl = ch.length;
|
||||||
|
for ( let i = 0; i < length; i++ ) {
|
||||||
|
elemid += ch.charAt(Math.floor(Math.random() * chl));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elem.id = elemid;
|
||||||
|
}
|
||||||
|
elem.appendChild
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user