This commit is contained in:
SchrodingersGat committed 2026-11-22 11:40:43 +00:00
1 parent aabce70759
commit ad253b0234
363 files changed
+306698 -62278

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
/* Mount image carousels (see the 'gallery' macro in main.py).
* 'document$' fires on every page load, including instant navigation. */
document$.subscribe(function () {
document.querySelectorAll('.splide.iv-gallery').forEach(function (element) {
new Splide(element, {
type: 'loop',
perMove: 1,
perPage: parseInt(element.dataset.perPage || '1', 10),
breakpoints: { 720: { perPage: 1 } },
autoplay: true,
pagination: false,
}).mount();
});
});