forked from biati-digital/glightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
352 lines (317 loc) · 18.5 KB
/
index.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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="demo/css/style.css">
<link rel="stylesheet" href="dist/css/glightbox.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title>GLightbox | A touchable pure Javascript lightbox</title>
</head>
<body>
<header class="main-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="header-inner">
<a href="#" class="logo" style="font-family: 'Lobster', cursive;">GLightbox</a>
<ul class="d-none d-md-block">
<li><a href="#examples">EXAMPLES</a></li>
<li><a href="#specifications">INFO</a></li>
<li><a href="#license">LICENSE</a></li>
<li><a href="https://github.com/biati-digital/glightbox/releases/download/2.0.4/glightbox-master.zip">DOWNLOAD</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<div class="intro">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="lead">
<h1 style="font-family: 'Lobster', cursive;">GLightbox.</h1>
<p class="tagline">Code name <strong>"Gie"</strong> A touchable Pure Javascript <br />lightbox with mobile and
video support.</p>
<div class="download">
<a class="mcbutton primary" href="https://github.com/biati-digital/glightbox/releases/download/2.0.4/glightbox-master.zip">
<i class="fa fa-download" aria-hidden="true"></i>
<span>Download</span>
</a>
<a class="mcbutton black" href="https://github.com/biati-digital/glightbox" target="_blank">
<i class="fa fa-github" aria-hidden="true"></i>
<span>View Source</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Simple images example -->
<section id="examples" class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3><i class="fa fa-camera-retro heading-icon" aria-hidden="true"></i>Simple Image Gallery</h3>
<ul class="box-container three-cols">
<li class="box">
<div class="inner">
<a href="demo/img/large/gm1.jpg" class="glightbox">
<img src="demo/img/small/gm1.jpg">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm2.jpg" class="glightbox">
<img src="demo/img/small/gm2.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm3.jpg" class="glightbox">
<img src="demo/img/small/gm3.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm4.jpg" class="glightbox">
<img src="demo/img/small/gm4.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm5.jpg" class="glightbox">
<img src="demo/img/small/gm5.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm6.jpg" class="glightbox">
<img src="demo/img/small/gm6.jpg" alt="image">
</a>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Images with description example -->
<section class="section pair">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3><i class="fa fa-address-card heading-icon" aria-hidden="true"></i>Images with Description</h3>
<p>You can add descriptions to your slides, the description position can be set globally for all slides or you
can set
a different position for each slide. options are: top, bottom, left or right. You can
adjust the style the way you want with basic CSS. <strong>The description can display html code</strong>.</p>
<ul class="box-container three-cols">
<li class="box">
<div class="inner">
<a href="demo/img/large/gm7.jpg" class="glightbox2" data-glightbox="title:Description Bottom; description: You can set the position of the description <a href="http://google.com">with a link to Google</a>">
<img src="demo/img/small/gm7.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm8.jpg" class="glightbox2" data-glightbox="title: Description Right; description: .custom-desc1; descPosition: right;">
<img src="demo/img/small/gm8.jpg" alt="image">
</a>
<div class="glightbox-desc custom-desc1">
<p>You can set the position of the description in different ways for example <strong style="text-decoration: underline;">top, bottom, left or right</strong></p>
<p>
<a href="http://google.com" target="_blank" style="text-decoration: underline; font-weight: bold;">Example Google link</a> ipsum vehicula eros ultrices lacinia Vestibulum ante ipsum primis in faucibus orci luctus
et ultrices posuere
cubilia Curae Duis quis ipsum vehicula eros ultrices lacinia. Vestibulum ante ipsum primis in faucibus
orci luctus et ultrices posuere</p>
</div>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/img/large/gm9.jpg" class="glightbox2" data-glightbox="title: Description Left; description: .custom-desc2; descPosition: left;">
<img src="demo/img/small/gm9.jpg" alt="image">
</a>
<div class="glightbox-desc custom-desc2">
<p>You can set the position of the description in different ways for example top, bottom, left or right</p>
<p>Duis quis ipsum vehicula eros ultrices lacinia. Vestibulum ante ipsum primis in faucibus orci luctus
et ultrices posuere
cubilia Curae</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Videos example -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3><i class="fa fa-video-camera heading-icon" aria-hidden="true"></i>Videos Gallery</h3>
<p>You can add videos with optional autoplay for <strong>Vimeo</strong>, <strong>Youtube</strong> and
<strong>self hosted videos</strong>. You can specify a
default width for the videos or set
different widths to each video in your gallery. The videos are 100% responsive and will play correctly on mobile devices.</p>
<ul class="box-container three-cols">
<li class="box">
<div class="inner">
<a href="https://vimeo.com/115041822" class="glightbox3">
<img src="demo/img/small/gm10.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="https://www.youtube-nocookie.com/embed/Ga6RYejo6Hk" class="glightbox3">
<img src="demo/img/small/gm11.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="./demo/pexels-video-1550080.mp4" class="glightbox3">
<img src="demo/img/small/gm12.jpg" alt="image">
</a>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Iframes and inline example -->
<section class="section pair">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3><i class="fa fa-window-restore heading-icon" aria-hidden="true"></i>Iframes and Inline Elements</h3>
<p>You can easily add iframes by simply entering the url, it could be a web page, a video, google maps, etc. also
you can display any div of your page by entering the ID in the href attribute.</p>
<ul class="box-container three-cols">
<li class="box">
<div class="inner">
<a href="#inline-example" class="glightbox4" data-glightbox="width: 700; height: auto;">
<img src="demo/img/small/gm14.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d12085.977306439116!2d-73.96648875371474!3d40.77314541916876!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c258bf08488f6b%3A0x618706a9142daa0d!2sUpper+East+Side%2C+Nueva+York%2C+EE.+UU.!5e0!3m2!1ses-419!2smx!4v1511830027642" class="glightbox4">
<img src="demo/img/small/gm15.jpg" alt="image">
</a>
</div>
</li>
<li class="box">
<div class="inner">
<a href="demo/BigBuckBunny_320x180.mp4" class="glightbox4">
<img src="demo/img/small/gm16.jpg" alt="image">
</a>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<section id="specifications" class="container section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="especifications">
<h3 class="text-center">Technical specifications</h3>
<p>GLightbox is built using es6 and transpiled with babel for older browsers and can be used with nodejs.</p>
<h4>Animations</h4>
<p>All the animations are created with CSS and only the transform and opacity properties are animated. You can overwrite the CSS of the animations or create your own.</p>
<h4>Features</h4>
<ul>
<li>Small - only 11KB Gzipped</li>
<li>Responsive - works with any screen size</li>
<li>Gallery Support - Create multiple galleries</li>
<li>Video Support - Youtube, Vimeo and self hosted videos with autoplay</li>
<li>Inline content support - display any inline content</li>
<li>Iframe support - need to embed an iframe? no problem</li>
<li>Keyboard Navigation - esc, arrows keys, tab and enter is all you need</li>
<li>Touch Navigation - mobile touch events like swipe, move, pinch, etc.</li>
<li>Zoomable images - zoom and drag images on mobile and desktop</li>
<li>Retina ready - svg icons for controls.</li>
<li>Api - control the lightbox with the provided methods</li>
</ul>
<h4>Supported browsers and devices</h4>
<ul>
<li><i class="fa fa-safari"></i> Safari</li>
<li><i class="fa fa-chrome"></i> Chrome</li>
<li><i class="fa fa-opera"></i> Opera</li>
<li><i class="fa fa-firefox"></i> Firefox</li>
<li><i class="fa fa-edge"></i> Edge</li>
<li><i class="fa fa-internet-explorer"></i> Internet Explorer 11</li>
<li><i class="fa fa-apple"></i> IOS (browser: safari, chrome, opera and firefox)</li>
<li><i class="fa fa-android"></i> Android (browser: chrome, opera and firefox)</li>
<li><i class="fa fa-terminal"></i> And any browser that supports flexbox and classList</li>
</ul>
<h4>Documentation</h4>
<p>The documentation can be found in the github page. <a href="https://github.com/biati-digital/glightbox/blob/master/README.md" class="font-weight-bold" target="_blank">View Documentation</a></p>
<div id="license">
<h4>License</h4>
<p>GLightbox is free to use for personal and commercial projects. <a href="https://opensource.org/licenses/MIT" target="_blank">MIT license</a></p>
</div>
</div>
<p class="text-center footer-btns">
<a class="mcbutton primary" href="https://github.com/mcstudios/glightbox/releases/download/2.0.4/glightbox-master.zip">
<i class="fa fa-download"></i>
Download
</a>
<a class="mcbutton black" href="https://github.com/mcstudios/glightbox" target="_blank">
<i class="fa fa-github"></i> View Source
</a>
</p>
</div>
</div>
</div>
</section>
<div id="inline-example" style="display: none;">
<div class="inline-inner">
<h4 class="text-center">Example of inline content</h4>
<p class="text-center">Duis quis ipsum vehicula eros ultrices lacinia. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
posuere cubilia Curae; Donec nec sollicitudin felis. Donec vel nulla vel leo varius tempor. Duis suscipit pharetra quam id imperdiet. Praesent vitae eros metus. Donec placerat sagittis rhoncus. In condimentum eleifend ante et ornare. Curabitur pharetra nibh non purus gravida lobortis. In risus risus, malesuada vitae iaculis nec, semper vitae ligula. Nullam vel eros ac libero cursus consectetur.</p>
<a class="gtrigger-close inline-close-btn" href="#">Close Box</a>
</div>
</div>
<footer class="text-center">
<div class="wrap copyright">
made with love by <a href="https://www.biati.digital" target="_blank">biati digital</a> | photos by <a href="http://unsplash.com" target="_blank">unsplash.com</a> | video by <a href="https://www.pexels.com/video/a-rocky-coast-1550080/" target="_blank">pexels</a>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.1.0/lib/anime.min.js"></script>
<script src="demo/js/valde.min.js"></script>
<script src="dist/js/glightbox.js"></script>
<script src="demo/js/site.js"></script>
<script>
var lightbox = GLightbox();
var lightboxDescription = GLightbox({
selector: 'glightbox2',
});
var lightboxVideo = GLightbox({
selector: 'glightbox3',
});
var lightboxInlineIframe = GLightbox({
'selector': 'glightbox4'
});
</script>
</body>
</html>