-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (48 loc) · 1.21 KB
/
index.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
const tabs = document.querySelectorAll("[data-tab-target]");
const tabContents = document.querySelectorAll("[data-tab-content]");
tabs.forEach((tab) => {
tab.addEventListener("click", () => {
const target = document.querySelector(tab.dataset.tabTarget);
tabContents.forEach((tabContent) => {
tabContent.classList.remove("active");
});
tabs.forEach((tab) => {
tab.classList.remove("active");
});
tab.classList.add("active");
target.classList.add("active");
});
});
var showHide;
function show_hide() {
if(showHide == 0) {
document.getElementById("postform3").style.display="none";
return showHide = 1;
}
else {
document.getElementById("postform3").style.display="inline";
return showHide = 0;
}
}
var showHide2;
function show_hide1() {
if(showHide2 == 0) {
document.getElementById("updateImage").style.display="none";
return showHide2 = 1;
}
else {
document.getElementById("updateImage").style.display="block";
return showHide2 = 0;
}
}
var showHide3;
function show_hide2() {
if(showHide3 == 0) {
document.getElementById("postform4").style.display="none";
return showHide3 = 1;
}
else {
document.getElementById("postform4").style.display="inline";
return showHide3 = 0;
}
}