-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathother2.js
50 lines (37 loc) · 1.1 KB
/
other2.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
/* BTN FUNCTION FOR CONFERENCE */
const ctargetDiv = document.getElementById("cshow");
const cbtn = document.getElementById("clink");
cbtn.onclick = function () {
if (ctargetDiv.style.display == "none") {
ctargetDiv2.style.display = "none";
ctargetDiv3.style.display = "none";
ctargetDiv.style.display = "block";
}
else {
ctargetDiv.style.display = "none";
}
};
const ctargetDiv2 = document.getElementById("cshow2");
const cbtn2 = document.getElementById("clink2");
cbtn2.onclick = function () {
if (ctargetDiv2.style.display == "none") {
ctargetDiv.style.display = "none";
ctargetDiv3.style.display = "none";
ctargetDiv2.style.display = "block";
}
else {
ctargetDiv2.style.display = "none";
}
};
const ctargetDiv3 = document.getElementById("cshow3");
const cbtn3 = document.getElementById("clink3");
cbtn3.onclick = function () {
if (ctargetDiv3.style.display == "none") {
ctargetDiv.style.display = "none";
ctargetDiv2.style.display = "none";
ctargetDiv3.style.display = "block";
}
else {
ctargetDiv3.style.display = "none";
}
};