You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/segments/gallery/GallaryGrid/GallaryGrid.js

11 lines
234 B
JavaScript

import Lightbox from 'bs5-lightbox' ;
document.addEventListener('DOMContentLoaded',function () {
for (const el of document.querySelectorAll('.light-box')) {
el.addEventListener('click', Lightbox.initialize);
}
});