First version, for githup; UNSTABLE, DO NOT USE!
This commit is contained in:
11
www/intern/js/img.js
Normal file
11
www/intern/js/img.js
Normal file
@@ -0,0 +1,11 @@
|
||||
jQuery(document).ready(function($) {
|
||||
const lightbox = new PhotoSwipeLightbox({
|
||||
gallery: '.imgGallery',
|
||||
children: 'a.imgLink',
|
||||
pswpModule: PhotoSwipe,
|
||||
captionContent: (slide) => {
|
||||
return slide.data.element.dataset.pswpCaption || '';
|
||||
}
|
||||
});
|
||||
lightbox.init();
|
||||
});
|
||||
Reference in New Issue
Block a user