Skip to content

Commit 2ba350b

Browse files
dom traversal
Signed-off-by: Arnav Gupta <[email protected]>
1 parent f388288 commit 2ba350b

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

Lecture06/dom-traversal/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<h1>My Page</h1>
11+
<h2>A List</h2>
12+
<ul>
13+
<li>one</li>
14+
<li>
15+
two
16+
<ul>
17+
<li>two point one</li>
18+
<li>two point two</li>
19+
</ul>
20+
</li>
21+
<li>three</li>
22+
</ul>
23+
</body>
24+
</html>

Lecture06/fizzbuzz/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<script defer src="script.js"></script>
9+
</head>
10+
<body>
11+
12+
<input id="n">
13+
<button id="print">Print</button>
14+
15+
<ul id="list">
16+
<li>0</li>
17+
</ul>
18+
</body>
19+
</html>

Lecture06/fizzbuzz/script.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
let list = document.getElementById('list')
2+
let n = document.getElementById('n')
3+
let print = document.getElementById('print')
4+
5+
print.onclick = function () {
6+
7+
}
8+

Lecture06/todolist/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<script src="script.js"></script>
9+
</head>
10+
<body>
11+
12+
<input id="task">
13+
<button id="add">ADD</buttton>
14+
15+
<ul id="tasklist">
16+
17+
</ul>
18+
19+
20+
</body>
21+
</html>

Lecture06/todolist/script.js

Whitespace-only changes.

0 commit comments

Comments
 (0)