-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathother.js
73 lines (60 loc) · 1.71 KB
/
other.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
const targetDiv = document.getElementById("mshow");
const btn = document.getElementById("mlink");
/*btn.onclick = function () {
if (targetDiv.style.display !== "none") {
targetDiv.style.display = "none";
}
else {
targetDiv.style.display = "block";
}
};*/
btn.onclick = function () {
if (targetDiv.style.display == "none") {
targetDiv2.style.display = "none";
targetDiv3.style.display = "none";
targetDiv4.style.display = "none";
targetDiv.style.display = "block";
}
else {
targetDiv.style.display = "none";
}
};
const targetDiv2 = document.getElementById("mshow2");
const btn2 = document.getElementById("mlink2");
btn2.onclick = function () {
if (targetDiv2.style.display == "none") {
targetDiv.style.display = "none";
targetDiv3.style.display = "none";
targetDiv4.style.display = "none";
targetDiv2.style.display = "block";
}
else {
targetDiv2.style.display = "none";
}
};
const targetDiv3 = document.getElementById("mshow3");
const btn3 = document.getElementById("mlink3");
btn3.onclick = function () {
if (targetDiv3.style.display == "none") {
targetDiv.style.display = "none";
targetDiv2.style.display = "none";
targetDiv4.style.display = "none";
targetDiv3.style.display = "block";
}
else {
targetDiv3.style.display = "none";
}
};
const targetDiv4 = document.getElementById("mshow4");
const btn4 = document.getElementById("mlink4");
btn4.onclick = function () {
if (targetDiv4.style.display == "none") {
targetDiv.style.display = "none";
targetDiv2.style.display = "none";
targetDiv3.style.display = "none";
targetDiv4.style.display = "block";
}
else {
targetDiv4.style.display = "none";
}
};