Update 'frontend.js'
This commit is contained in:
parent
3e243a9246
commit
52c8984926
1 changed files with 3 additions and 2 deletions
|
@ -21,14 +21,15 @@ function createDiv(elementID) {
|
|||
function createParagraph(elementID, text) {
|
||||
let elem = createElement("p", elementID);
|
||||
elem.innerText = `${text}`
|
||||
return elem
|
||||
}
|
||||
|
||||
function createButton(elementID, text) {
|
||||
createElement("button", elementID, { innerText: text });
|
||||
return createElement("button", elementID, { innerText: text });
|
||||
}
|
||||
|
||||
function createImage(elementID, src) {
|
||||
createElement("img", elementID, { src: src });
|
||||
return createElement("img", elementID, { src: src });
|
||||
}
|
||||
|
||||
// Get URL parameters
|
||||
|
|
Loading…
Reference in a new issue