-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
61 lines (60 loc) · 1.18 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const ol = document.getElementById("menu");
const links = [
{
label: "Week1 notes",
url: "week1/index.html"
},
{
label: "Week2 notes",
url: "week2/index.html"
},
{
label: "Week3 notes",
url: "week3/index.html"
},
{
label: "Week4 notes",
url: "week4/index.html"
},
{
label: "Week5 notes",
url: "week5/index.html"
},
{
label: "Week6 notes",
url: "week6/index.html"
},
{
label: "Week7 notes",
url: "week7/index.html"
},
{
label: "Week8 notes",
url: "week8/index.html"
},
{
label: "Week9 notes",
url: "week9/index.html"
},
{
label: "Week10 notes",
url: "week10/index.html"
},
{
label: "Week11 notes",
url: "week11/index.html"
},
{
label: "Final Project",
url: "project/index.html"
}
];
links.forEach((link) => {
let anchor = document.createElement("a");
let li = document.createElement("li");
let text = document.createTextNode(link.label);
anchor.href = link.url;
anchor.appendChild(text);
li.appendChild(anchor);
ol.appendChild(li);
});