mirror of
https://asciireactor.com/otho/stashbox
synced 2024-11-25 06:55:07 +00:00
20 lines
670 B
JavaScript
20 lines
670 B
JavaScript
|
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)'
|
||
|
});
|