Display searched journey on drafting board

This commit is contained in:
2025-06-18 19:42:23 +02:00
parent 597884f5dd
commit 8e3c440d70
3 changed files with 135 additions and 0 deletions

15
web/dom.js Normal file
View File

@@ -0,0 +1,15 @@
export function EL(type, properties) {
let el = document.createElement(type);
if ("class" in properties) {
for (let c of properties["class"]) {
el.classList.add(c);
}
}
if ("style" in properties) {
Object.assign(el.style, properties.style);
}
return el;
}