-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq.html
221 lines (180 loc) · 6.61 KB
/
faq.html
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ</title>
<link rel="stylesheet" type="text/css" href="styles/faqstyle.css">
</head>
</head>
<body>
<div class="header">
<img id="logoresponsive" src="imghome/logo.png" alt="logo">
<nav class="navbar">
<a href="#" class="toggle-button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<div class="navlinks">
<ul>
<li><a class="a" href="home.html">Home</a>
</li>
<li><a class="a" href="about.html">About </a></li>
<li><a class="a" href="media.html">Media</a></li>
<li><a class="a" href="faq.html">FAQ</a></li>
<li><a class="a" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<div id="countdown-container">Days Till mardi gras
<div id="countdown">
<span id="days">0d</span> : <span id="hours">0h</span> :
<span id="minutes">0m</span> : <span id="seconds">0s</span>
</div>
</div>
</div>
<div>
<h1>
Mardi Gras
</h1>
</div>
<div class="h2">
<h2>FAQ</h2>
<h3>frequently asked questions</h3>
</div>
<div class="accordionlist">
<button class="accordion">NEXT MARDI GRAS DATE?</button>
<div class="panel">
<p><br>Tuesday, 1 March<br>
Shrove Tuesday 2022.<br><br></p>
</div>
<button class="accordion">Why is it called Fat Tuesday?
</button>
<div class="panel">
<p><br> Mardi Gras means "Fat Tuesday" in French, and is the celebratory carnival that leads up to the
beginning
of
Lent. The name "Fat Tuesday" refers to the practice of consuming all of the food forbidden while fasting
during Lent, which begins on Ash Wednesday.<br><br></p>
</div>
<button class="accordion">Where Mardi Gras Celebrated??</button>
<div class="panel">
<p<br><br>The holiday of Mardi Gras is celebrated in all of Louisiana, including the city of New Orleans.
Celebrations are concentrated for about two weeks before and through Shrove Tuesday, the day before Ash
Wednesday (the start of lent in the Western Christian tradition).<br><br></p>
</div>
</div>
<footer class="footer-distributed">
<div class="footer-left">
<h3><img src="imghome/logo.png" width="180px" height="140px"></h3>
<p class="footer-links">
<a href="home.html" class="link-1">Home</a>
<a href="#">Back To Top</a>
</p>
<p class="footer-company-name">AREF-GABAN © 2021</p>
</div>
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p>Israel<br>Haifa province /Turan</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>+972548308253</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="[email protected]">[email protected]</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<span>About the company</span>
mardi gras is our project to make a new site for our company and i hope the site will meat the =requrments of the project.
</p>
<div class="footer-icons">
<a href="https://www.facebook.com/MardiGrasNewOrleans/"><img src="imgcontact/fac.png" alt=""></a>
<a href="https://twitter.com/search?q=%23MardiGras%2C&lang=en"><img src="imgcontact/twit.png" alt=""></a>
<a href="https://www.instagram.com/mardigrasneworleans/?hl=en"><img src="imgcontact/inst.png" alt=""></a>
</div>
</div>
</footer>
<script>
const toggleButton = document.getElementsByClassName('toggle-button')[0]
const navLinks = document.getElementsByClassName('navlinks')[0]
toggleButton.addEventListener('click', () => {
navLinks.classList.toggle('active')
})
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
pause = () => {
clearInterval(myTimer);
}
resume = () => {
clearInterval(myTimer);
myTimer = setInterval(function () { plusSlides(slideIndex) }, 4000);
}
let days = 202; //starting number of days
let hours = 0; // starting number of hours
let minutes = 2; // starting number of minutes
let seconds = 5; // starting number of seconds
// converts all to seconds
let totalSeconds =
days * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds;
//temporary seconds holder
let tempSeconds = totalSeconds;
// calculates number of days, hours, minutes and seconds from a given number of seconds
const convert = (value, inSeconds) => {
if (value > inSeconds) {
let x = value % inSeconds;
tempSeconds = x;
return (value - x) / inSeconds;
} else {
return 0;
}
};
//sets seconds
const setSeconds = (s) => {
document.querySelector("#seconds").textContent = s + "s";
};
//sets minutes
const setMinutes = (m) => {
document.querySelector("#minutes").textContent = m + "m";
};
//sets hours
const setHours = (h) => {
document.querySelector("#hours").textContent = h + "h";
};
//sets Days
const setDays = (d) => {
document.querySelector("#days").textContent = d + "d";
};
// Update the count down every 1 second
var x = setInterval(() => {
//clears countdown when all seconds are counted
if (totalSeconds <= 0) {
clearInterval(x);
}
setDays(convert(tempSeconds, 24 * 60 * 60));
setHours(convert(tempSeconds, 60 * 60));
setMinutes(convert(tempSeconds, 60));
setSeconds(tempSeconds == 60 ? 59 : tempSeconds);
totalSeconds--;
tempSeconds = totalSeconds;
}, 1000);
</script>
</body>
</html>