Update 'frontend.js'
This commit is contained in:
parent
cd89c6aad5
commit
3d7c53388d
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ function createParagraph(elementID, text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBody() {
|
function createBody() {
|
||||||
createElement("body", "body")
|
const element = document.createElement("body");
|
||||||
|
element.id = "body";
|
||||||
|
document.appendChild(element);
|
||||||
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createButton(elementID, text, attributes = {}) {
|
function createButton(elementID, text, attributes = {}) {
|
||||||
|
|
Loading…
Reference in a new issue