Stashbox/theme/gallery.js

20 lines
670 B
JavaScript
Raw Normal View History

2023-01-01 07:50:03 +00:00
var imageSelector = [
'tr:not(.parent) td.indexcolname a[href$=".png"]',
'tr:not(.parent) td.indexcolname a[href$=".jpg"]',
'tr:not(.parent) td.indexcolname a[href$=".jpeg"]',
'tr:not(.parent) td.indexcolname a[href$=".gif"]',
'tr:not(.parent) td.indexcolname a[href$=".PNG"]',
'tr:not(.parent) td.indexcolname a[href$=".JPG"]',
'tr:not(.parent) td.indexcolname a[href$=".GIF"]',
].join(', ');
lightGallery(document.getElementById('indexlist'), {
selector: imageSelector,
mode: 'lg-slide',
hideBarsDelay: 2000,
loop: false,
hideControlOnEnd: true,
download: true,
cssEasing : 'cubic-bezier(0.25, 0, 0.25, 1)'
});