add minimum

This commit is contained in:
Mylloon 2022-11-21 09:50:37 +01:00
commit 4129229b83
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 27 additions and 0 deletions

14
index.html Normal file
View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<main></main>
<script src="./js/main.js"></script>
</body>
</html>

13
js/main.js Normal file
View file

@ -0,0 +1,13 @@
window.addEventListener("load", () => main());
const main = () => {
const videoTree = {
1: "",
};
const mainElement = document.getElementsByTagName("main").item(0);
const newElement = document.createElement("p");
newElement.textContent = "Hello world!";
mainElement.appendChild(newElement);
};