split javascript file into multiple
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// Creates an element with an optional class name and text content.
|
||||
export function el(tag, className, text) {
|
||||
const element = document.createElement(tag);
|
||||
if (className) element.className = className;
|
||||
if (text !== undefined) element.textContent = text;
|
||||
return element;
|
||||
}
|
||||
Reference in New Issue
Block a user