Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 19:44:30 +00:00
parent 3e243a9246
commit 52c8984926

View file

@ -21,14 +21,15 @@ function createDiv(elementID) {
function createParagraph(elementID, text) { function createParagraph(elementID, text) {
let elem = createElement("p", elementID); let elem = createElement("p", elementID);
elem.innerText = `${text}` elem.innerText = `${text}`
return elem
} }
function createButton(elementID, text) { function createButton(elementID, text) {
createElement("button", elementID, { innerText: text }); return createElement("button", elementID, { innerText: text });
} }
function createImage(elementID, src) { function createImage(elementID, src) {
createElement("img", elementID, { src: src }); return createElement("img", elementID, { src: src });
} }
// Get URL parameters // Get URL parameters