-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.html
308 lines (260 loc) · 12.8 KB
/
media.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!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>Media</title>
<link rel="stylesheet" type="text/css" href="styles/mediastyle.css">
<link rel="stylesheet" type="text/css" href="styles/lightbox.min.css">
<script src="js files/lightbox-plus-jquery.min.js"></script>
</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 class="container">
<div class="body">
<h1>
Mardi-Gras Gallery
</h1>
<div class="gallery">
<a href="imgmedia/1-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/1-smal.jpg"></a>
<a href="imgmedia/2-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/2-small.jpg"></a>
<a href="imgmedia/3-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/3-smal.jpg"></a>
<a href="imgmedia/4-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/4.small.jpg"></a>
<a href="imgmedia/5-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/5-smal.jpg"></a>
<a href="imgmedia/6-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/6-small.jpg"></a>
<a href="imgmedia/7-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/7-smal.jpg"></a>
<a href="imgmedia/8-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/8-smal.jpg"></a>
<a href="imgmedia/9-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/9-smal.jpg"></a>
<a href="imgmedia/10-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/10-smal.jpg"></a>
<a href="imgmedia/11-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/11-smal.jpg"></a>
<a href="imgmedia/12-large.jpg" data-lightbox="mygallery" data-title="mardi gras love"><img
src="imgmedia/12-smal.jpg"></a>
</div>
<div class="video1">
Video Gallery</div>
<div class="video">
<iframe class="vid" id="vid1" src="https://www.youtube.com/embed/PcjLTrUDF3w?start=1"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<iframe class="vid" src="https://www.youtube.com/embed/MkxQN7twP0o" title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture "
allowfullscreen></iframe>
<iframe class="vid" src="https://www.youtube.com/embed/cT5vnPybf3Y?start=1" title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<iframe class="vid" src="https://www.youtube.com/embed/EkIZwXbSh-Y" title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<iframe class="vid" src="https://www.youtube.com/embed/c_HXuVvRUos" title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<iframe width="100%" height="315" src="https://www.youtube.com/embed/x5VJe_XIuhM"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<div class="text">New orleans Video gallery</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<iframe width="100%" height="315" src="https://www.youtube.com/embed/8i--vdiozL0"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<div class="text">New orleans Video gallery</div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<iframe width="100%" height="315" src="https://www.youtube.com/embed/FLoTD8XFwuQ"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<div class="text">New orleans Video gallery</div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</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')
})
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);
//videoslider
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {
slideIndex = 1
}
if (n < 1) {
slideIndex = slides.length
}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
}
</script>
</body>
</html>