-
Notifications
You must be signed in to change notification settings - Fork 1
/
dropdown.js
102 lines (102 loc) · 4.43 KB
/
dropdown.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
let checkList1 = document.getElementById("list1");
checkList1.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList1.classList.contains("visible"))
checkList1.classList.remove("visible");
else checkList1.classList.add("visible");
};
let checkList2 = document.getElementById("list2");
checkList2.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList2.classList.contains("visible"))
checkList2.classList.remove("visible");
else checkList2.classList.add("visible");
};
var checkList3 = document.getElementById("list3");
checkList3.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList3.classList.contains("visible"))
checkList3.classList.remove("visible");
else checkList3.classList.add("visible");
};
var checkList4 = document.getElementById("list4");
checkList4.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList4.classList.contains("visible"))
checkList4.classList.remove("visible");
else checkList4.classList.add("visible");
};
var checkList5 = document.getElementById("list5");
checkList5.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList5.classList.contains("visible"))
checkList5.classList.remove("visible");
else checkList5.classList.add("visible");
};
var checkList6 = document.getElementById("list6");
checkList6.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList6.classList.contains("visible"))
checkList6.classList.remove("visible");
else checkList6.classList.add("visible");
};
var checkList7 = document.getElementById("list7");
checkList7.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList7.classList.contains("visible"))
checkList7.classList.remove("visible");
else checkList7.classList.add("visible");
};
var checkList8 = document.getElementById("list8");
checkList8.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList8.classList.contains("visible"))
checkList8.classList.remove("visible");
else checkList8.classList.add("visible");
};
var checkList9 = document.getElementById("list9");
checkList9.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList9.classList.contains("visible"))
checkList9.classList.remove("visible");
else checkList9.classList.add("visible");
};
var checkList10 = document.getElementById("list10");
checkList10.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList10.classList.contains("visible"))
checkList10.classList.remove("visible");
else checkList10.classList.add("visible");
};
var checkList11 = document.getElementById("list11");
checkList11.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList11.classList.contains("visible"))
checkList11.classList.remove("visible");
else checkList11.classList.add("visible");
};
var checkList12 = document.getElementById("list12");
checkList12.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList12.classList.contains("visible"))
checkList12.classList.remove("visible");
else checkList12.classList.add("visible");
};
var checkList13 = document.getElementById("list13");
checkList13.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList13.classList.contains("visible"))
checkList13.classList.remove("visible");
else checkList13.classList.add("visible");
};
var checkList14 = document.getElementById("list14");
checkList14.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList14.classList.contains("visible"))
checkList14.classList.remove("visible");
else checkList14.classList.add("visible");
};
var checkList15 = document.getElementById("list15");
checkList15.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList15.classList.contains("visible"))
checkList15.classList.remove("visible");
else checkList15.classList.add("visible");
};
var checkList16 = document.getElementById("list16");
checkList16.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList16.classList.contains("visible"))
checkList16.classList.remove("visible");
else checkList16.classList.add("visible");
};
var checkList17 = document.getElementById("list17");
checkList17.getElementsByClassName("anchor")[0].onclick = function (evt) {
if (checkList17.classList.contains("visible"))
checkList17.classList.remove("visible");
else checkList17.classList.add("visible");
};