add minimum
This commit is contained in:
commit
4129229b83
2 changed files with 27 additions and 0 deletions
14
index.html
Normal file
14
index.html
Normal 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
13
js/main.js
Normal 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);
|
||||
};
|
Reference in a new issue