mirror of
https://github.com/Radiquum/photos.git
synced 2025-05-01 02:19:43 +05:00
feat/generator: start on gallery
This commit is contained in:
parent
383abce65d
commit
cb2b744d01
15 changed files with 1263 additions and 9 deletions
17
generate/static/js/initGalleries.js
Normal file
17
generate/static/js/initGalleries.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const galleries = document.querySelectorAll('[data-type="gallery"]');
|
||||
|
||||
galleries.forEach((item, idx) => {
|
||||
lightGallery(item, {
|
||||
// plugins: [lgThumbnail, lgHash, lgShare, lgFullscreen, lgZoom],
|
||||
plugins: [lgThumbnail, lgHash, lgZoom],
|
||||
// speed: 500,
|
||||
// thumbnail: true,
|
||||
// animateThumb: true,
|
||||
// zoomFromOrigin: true,
|
||||
// allowMediaOverlap: false,
|
||||
// mode: 'lg-zoom-in-out',
|
||||
// galleryId: Number(item.getAttribute('data-year')),
|
||||
hash: true,
|
||||
customSlideName: true,
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue