-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
153 lines (151 loc) · 6.49 KB
/
script.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
function onDay(index)
{
var days = document.querySelectorAll(".day");
var daysContents = document.querySelectorAll(".day > .content");
var daysNums = document.querySelectorAll(".day > .num");
days[index].style.color="#5ffce7";
// days[index].style.backgroundColor="#2d27fb60";
daysContents[index].style.backgroundColor="#2d27fb60";
// daysContents[index].style.height="100%";
daysContents[index].style.borderColor="#5ffce7";
daysNums[index].style.backgroundColor="#2d27fb60";
daysNums[index].style.borderColor="#5ffce7";
}
function offDay(index)
{
var days = document.querySelectorAll(".day");
var daysContents = document.querySelectorAll(".day > .content");
var daysNums = document.querySelectorAll(".day > .num");
days[index].style.color="white";
// days[index].style.backgroundColor="transparent";
daysContents[index].style.backgroundColor="transparent";
// daysContents[index].style.height="0%";
daysContents[index].style.borderColor="white";
daysNums[index].style.backgroundColor="transparent";
daysNums[index].style.borderColor="white";
}
function onAbout()
{
var articleTitle = document.querySelector("#about > .title");
var articleContent = document.querySelector("#about > .content");
var titleBorder = document.querySelector("#about > .title > .flexBorder");
var contentBorder = document.querySelector("#about > .content > .flexBorder");
articleTitle.style.color = "#5ffce7";
// articleTitle[index].style.borderBottom = "2px solid #5ffce7";
articleContent.style.backgroundColor = "#27a6fb60";
articleContent.style.boxShadow = "5px 5px 10px #022546c0";
// articleContent[index].style.borderBottom = "2px solid #5ffce7";
articleContent.style.borderLeftColor = "#5ffce7";
contentBorder.style.width = "100%";
contentBorder.style.borderBottomColor = "#5ffce7";
titleBorder.style.height = "20px";
titleBorder.style.width = "100%";
titleBorder.style.borderRightColor = "#5ffce7";
titleBorder.style.borderBottomColor = "#5ffce7";
}
function offAbout()
{
var articleTitle = document.querySelector("#about > .title");
var articleContent = document.querySelector("#about > .content");
var titleBorder = document.querySelector("#about > .title > .flexBorder");
var contentBorder = document.querySelector("#about > .content > .flexBorder");
articleTitle.style.color = "white";
// articleTitle[index].style.borderBottom = "2px solid white";
articleContent.style.backgroundColor = "transparent";
articleContent.style.boxShadow = "none";
// articleContent[index].style.borderBottom = "none";
articleContent.style.borderLeftColor = "white";
contentBorder.style.width = "0%";
contentBorder.style.borderBottomColor = "transparent";
titleBorder.style.height = "0px";
titleBorder.style.width = "0%";
titleBorder.style.borderRightColor = "transparent";
titleBorder.style.borderBottomColor = "transparent";
}
function onFaq()
{
var articleTitle = document.querySelector("#faq > .title");
var articleContent = document.querySelector("#faq > .content");
var titleBorder = document.querySelector("#faq > .title > .flexBorder");
var contentBorder = document.querySelector("#faq > .content > .flexBorder");
articleTitle.style.color = "#5ffce7";
// articleTitle[index].style.borderBottom = "2px solid #5ffce7";
articleContent.style.backgroundColor = "#e227fb60";
articleContent.style.boxShadow = "5px 5px 10px #022546c0";
// articleContent[index].style.borderBottom = "2px solid #5ffce7";
articleContent.style.borderLeftColor = "#5ffce7";
contentBorder.style.width = "100%";
contentBorder.style.borderBottomColor = "#5ffce7";
titleBorder.style.height = "20px";
titleBorder.style.width = "100%";
titleBorder.style.borderRightColor = "#5ffce7";
titleBorder.style.borderBottomColor = "#5ffce7";
}
function offFaq()
{
var articleTitle = document.querySelector("#faq > .title");
var articleContent = document.querySelector("#faq > .content");
var titleBorder = document.querySelector("#faq > .title > .flexBorder");
var contentBorder = document.querySelector("#faq > .content > .flexBorder");
articleTitle.style.color = "white";
// articleTitle[index].style.borderBottom = "2px solid white";
articleContent.style.backgroundColor = "transparent";
articleContent.style.boxShadow = "none";
// articleContent[index].style.borderBottom = "none";
articleContent.style.borderLeftColor = "white";
contentBorder.style.width = "0%";
contentBorder.style.borderBottomColor = "transparent";
titleBorder.style.height = "0px";
titleBorder.style.width = "0%";
titleBorder.style.borderRightColor = "transparent";
titleBorder.style.borderBottomColor = "transparent";
}
var count = 0;
function nextOne()
{
var workshop = document.getElementsByClassName("workshop");
var workshopTrackers = document.getElementsByClassName("miniBar");
if(count < 3)
{
count++;
workshop[count - 1].style.width = "0px";
workshop[count - 1].style.opacity = "0";
workshopTrackers[count - 1].style.backgroundColor = "#ffffff1f";
workshop[count].style.width = "400px";
workshop[count].style.opacity = "1";
workshopTrackers[count].style.backgroundColor = "#5ffcef";
} else
{
count = 0;
workshop[3].style.width = "0px";
workshop[3].style.opacity = "0";
workshopTrackers[3].style.backgroundColor = "#ffffff1f";
workshop[count].style.width = "400px";
workshop[count].style.opacity = "1";
workshopTrackers[count].style.backgroundColor = "#5ffcef";
}
}
function preOne()
{
var workshop = document.getElementsByClassName("workshop");
var workshopTrackers = document.getElementsByClassName("miniBar");
if(count > 0)
{
workshop[count - 1].style.width = "400px";
workshop[count - 1].style.opacity = "1";
workshopTrackers[count - 1].style.backgroundColor = "#5ffcef";
workshop[count].style.width = "0px";
workshop[count].style.opacity = "0";
workshopTrackers[count].style.backgroundColor = "#ffffff1f";
count--;
} else
{
workshop[3].style.width = "400px";
workshop[3].style.opacity = "1";
workshopTrackers[3].style.backgroundColor = "#5ffcef";
workshop[count].style.width = "0px";
workshop[count].style.opacity = "0";
workshopTrackers[count].style.backgroundColor = "#ffffff1f";
count=3;
}
}