forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image_gallery.html
executable file
·66 lines (53 loc) · 2.65 KB
/
image_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
55
56
57
58
59
60
61
62
63
64
65
66
<!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">
<title>My Gallery - My life - My way</title>
<link rel="stylesheet" href="css/lightgallery.css">
<link rel="stylesheet" href="css/lightgallery_2.css">
</head>
<body>
<div class="cont">
<div class="page-head">
<!-- <h1>My Image Gallery</span></h1> -->
<br/>
<a href="#" class="btn btn-primary btn-lg">Virginia-Washington DC-Niagara Falls-New York, USA (July 2019 - August 2019)</a></div>
<div class="demo-gallery">
<ul id="lightgallery1">
</ul>
<a href="#" class="btn btn-primary btn-lg">Barcelona, Spain (28-31 August, 2018)</a></div>
<div class="demo-gallery">
<ul id="lightgallery2">
</ul>
<a href="#" class="btn btn-primary btn-lg">London-Cardiff-Scotland, UK </a></div>
<div class="demo-gallery">
<ul id="lightgallery3">
</ul>
<span class="small">Click on any of the images to view in full size</span>
</div>
</div>
<script type="text/javascript">
for (var i = 1; i < 24; i++) {
document.getElementById("lightgallery2").innerHTML += "<li data-src='img/asonam/" + i + ".jpg'><a href=''><img class='img-responsive' src='img/asonam/" + i + ".jpg'><div class='demo-gallery-poster'><img src='https://sachinchoolur.github.io/lightgallery.js/static/img/zoom.png'></div></a></li>";
}
for (var i = 1; i < 43; i++) {
document.getElementById("lightgallery1").innerHTML += "<li data-src='img/usa/" + i + ".jpg'><a href=''><img class='img-responsive' src='img/usa/" + i + ".jpg'><div class='demo-gallery-poster'><img src='https://sachinchoolur.github.io/lightgallery.js/static/img/zoom.png'></div></a></li>";
}
for (var i = 1; i < 30; i++) {
document.getElementById("lightgallery3").innerHTML += "<li data-src='img/uk/" + i + ".jpg'><a href=''><img class='img-responsive' src='img/uk/" + i + ".jpg'><div class='demo-gallery-poster'><img src='https://sachinchoolur.github.io/lightgallery.js/static/img/zoom.png'></div></a></li>";
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/lightgallery.js"></script>
<!-- lightgallery plugins -->
<script src="js/lg-thumbnail.js"></script>
<script src="js/lg-fullscreen.js"></script>
<script>
lightGallery(document.getElementById('lightgallery1'))
lightGallery(document.getElementById('lightgallery2'))
lightGallery(document.getElementById('lightgallery3'))
</script>
</body>
</html>