-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
57 lines (48 loc) · 1.43 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
---
layout: default
---
<script type="module">
import PhotoSwipeDynamicCaption from 'https://unpkg.com/photoswipe-dynamic-caption-plugin/photoswipe-dynamic-caption-plugin.esm.js';
window.PhotoSwipeDynamicCaption = PhotoSwipeDynamicCaption
</script>
<link rel="stylesheet" href="https://unpkg.com/photoswipe-dynamic-caption-plugin/photoswipe-dynamic-caption-plugin.css">
<style>
.ng-custom-button {
font-size: 20px;
background: #b72ae2;
color:white;
margin-top: 10px;
height: 45px;
line-height:30px;
border-radius:4px;
padding:0 5px;
width:auto
}
.ng-custom-button:hover {
background: #c35ee5;
padding:0 5px;
}
</style>
<script type="module">
var options = {
rowHeight: 400,
lightbox: true,
ratioLimit: {
min: .5,
max: 2
},
photoSwipeOptions: {
padding: { top: 20, bottom: 40, left: 10, right: 10 },
},
// photoSwipePluginsInitFn: (lightbox) => {
// const captionPlugin = new window.PhotoSwipeDynamicCaption(lightbox, {
// captionContent: '.title',
// // type: 'below',
// });
// }
};
import {Natural} from './assets/natural-gallery-js/natural-gallery.js';
import {setupDemo} from './assets/main.js';
setupDemo(Natural, options);
</script>
{%- include gallery.html -%}