-
Notifications
You must be signed in to change notification settings - Fork 1
/
gallery.html
54 lines (54 loc) · 1.54 KB
/
gallery.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
---
layout: esport
bannerClass: banner-club
---
<div class = "slideshow-container">
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/JC.jpg" alt="image1" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/event1.2.jpg" alt="image2" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/event1.jpg" alt="image3" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/event2.2.jpg" alt="image4" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/event2.3.jpg" alt="image5" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/prizes.jpg" alt="image6" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/prizes 2.jpg" alt="image7" />
</div>
<div class="slide fade">
<img src="{{ site.baseurl }}/img/slide/event2.4.jpg" alt="image8" />
</div>
<a class="prev" onclick="nextSlides()">❮</a>
<a class="next" onclick="prevSlides()">❯</a>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function nextSlides() {
slideIndex++;
showSlides(slideIndex);
}
function prevSlides(){
slideIndex--;
showSlides(slideIndex);
}
function showSlides(index) {
var i;
var slides = document.getElementsByClassName("slide");
if (index > slides.length) {slideIndex = 1}
if (index < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex-1].style.display = "block";
}
</script>