-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
executable file
·181 lines (158 loc) · 6.46 KB
/
main.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
const closeInfoTop = document.querySelector('.ndinfoTopImg')
const infoTop = document.querySelector('.infoTop')
closeInfoTop.addEventListener("click", function() {
infoTop.style.display = "none"
})
const navResponsiveBtn = document.querySelector('#menu')
const onClickNavResponsiveBtn = document.querySelector('.onClickNavResponsiveBtn')
const closeNav = document.querySelector('#closeNav')
let close = 0
navResponsiveBtn.addEventListener("click", function() {
if (close === 0) {
onClickNavResponsiveBtn.style.display = "block"
closeNav.style.display = "block"
navResponsiveBtn.style.display = "none"
close = 1
}
})
closeNav.addEventListener("click", function() {
if (close === 1) {
onClickNavResponsiveBtn.style.display = "none"
closeNav.style.display = "none"
navResponsiveBtn.style.display = "block"
close = 0
}
})
const page2No1 = document.querySelector("#moreInfoinPage2No1")
const page2No2 = document.querySelector("#moreInfoinPage2No2")
const page2No3 = document.querySelector("#moreInfoinPage2No3")
const page2No4 = document.querySelector("#moreInfoinPage2No4")
const page2No5 = document.querySelector("#moreInfoinPage2No5")
const btnPage2No1 = document.querySelector(".infoBtnPage2no1")
const btnPage2No2 = document.querySelector(".infoBtnPage2no2")
const btnPage2No3 = document.querySelector(".infoBtnPage2no3")
const btnPage2No4 = document.querySelector(".infoBtnPage2no4")
const btnPage2No5 = document.querySelector(".infoBtnPage2no5")
const btnBottomPage2No1 = document.querySelector("#btnPage2No1")
const btnBottomPage2No2 = document.querySelector("#btnPage2No2")
const btnBottomPage2No3 = document.querySelector("#btnPage2No3")
const btnBottomPage2No4 = document.querySelector("#btnPage2No4")
const btnBottomPage2No5 = document.querySelector("#btnPage2No5")
btnPage2No1.addEventListener("click", function() {
page2No1.style.display = "flex"
page2No2.style.display = "none"
page2No3.style.display = "none"
page2No4.style.display = "none"
page2No5.style.display = "none"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#F5F3F3"
btnPage2No3.style.border = "0.5px solid #000"
btnPage2No4.style.background = "#F5F3F3"
btnPage2No4.style.border = "0.5px solid #000"
btnPage2No5.style.background = "#F5F3F3"
btnPage2No5.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No1.style.background = "#FBDDE0"
btnPage2No1.style.border = "none"
btnBottomPage2No1.style.display = "flex"
btnBottomPage2No2.style.display = "none"
btnBottomPage2No3.style.display = "none"
btnBottomPage2No4.style.display = "none"
btnBottomPage2No5.style.display = "none"
})
btnPage2No2.addEventListener("click", function() {
page2No1.style.display = "none"
page2No2.style.display = "flex"
page2No3.style.display = "none"
page2No4.style.display = "none"
page2No5.style.display = "none"
btnPage2No1.style.background = "#F5F3F3"
btnPage2No1.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#F5F3F3"
btnPage2No3.style.border = "0.5px solid #000"
btnPage2No4.style.background = "#F5F3F3"
btnPage2No4.style.border = "0.5px solid #000"
btnPage2No5.style.background = "#F5F3F3"
btnPage2No5.style.border = "0.5px solid #000"
btnPage2No1.style.background = "#F5F3F3"
btnPage2No1.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#FBDDE0"
btnPage2No2.style.border = "none"
btnBottomPage2No1.style.display = "none"
btnBottomPage2No2.style.display = "flex"
btnBottomPage2No3.style.display = "none"
btnBottomPage2No4.style.display = "none"
btnBottomPage2No5.style.display = "none"
})
btnPage2No3.addEventListener("click", function() {
page2No1.style.display = "none"
page2No2.style.display = "none"
page2No3.style.display = "flex"
page2No4.style.display = "none"
page2No5.style.display = "none"
btnPage2No1.style.background = "#F5F3F3"
btnPage2No1.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No4.style.background = "#F5F3F3"
btnPage2No4.style.border = "0.5px solid #000"
btnPage2No5.style.background = "#F5F3F3"
btnPage2No5.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#FBDDE0"
btnPage2No3.style.border = "none"
btnBottomPage2No1.style.display = "none"
btnBottomPage2No2.style.display = "none"
btnBottomPage2No3.style.display = "flex"
btnBottomPage2No4.style.display = "none"
btnBottomPage2No5.style.display = "none"
})
btnPage2No4.addEventListener("click", function() {
page2No1.style.display = "none"
page2No2.style.display = "none"
page2No3.style.display = "none"
page2No4.style.display = "flex"
page2No5.style.display = "none"
btnPage2No1.style.background = "#F5F3F3"
btnPage2No1.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#F5F3F3"
btnPage2No3.style.border = "0.5px solid #000"
btnPage2No5.style.background = "#F5F3F3"
btnPage2No5.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#F5F3F3"
btnPage2No3.style.border = "0.5px solid #000"
btnPage2No4.style.background = "#FBDDE0"
btnPage2No4.style.border = "none"
btnBottomPage2No1.style.display = "none"
btnBottomPage2No2.style.display = "none"
btnBottomPage2No3.style.display = "none"
btnBottomPage2No4.style.display = "flex"
btnBottomPage2No5.style.display = "none"
})
btnPage2No5.addEventListener("click", function() {
page2No1.style.display = "none"
page2No2.style.display = "none"
page2No3.style.display = "none"
page2No4.style.display = "none"
page2No5.style.display = "flex"
btnPage2No1.style.background = "#F5F3F3"
btnPage2No1.style.border = "0.5px solid #000"
btnPage2No2.style.background = "#F5F3F3"
btnPage2No2.style.border = "0.5px solid #000"
btnPage2No3.style.background = "#F5F3F3"
btnPage2No3.style.border = "0.5px solid #000"
btnPage2No4.style.background = "#F5F3F3"
btnPage2No4.style.border = "0.5px solid #000"
btnPage2No5.style.background = "#FBDDE0"
btnPage2No5.style.border = "none"
btnBottomPage2No1.style.display = "none"
btnBottomPage2No2.style.display = "none"
btnBottomPage2No3.style.display = "none"
btnBottomPage2No4.style.display = "none"
btnBottomPage2No5.style.display = "flex"
})