blowfish/assets/js/shortcodes/gallery.js

21 lines
603 B
JavaScript
Raw Normal View History

(function init() {
2024-01-28 10:30:35 -06:00
$(window).on("load", function () {
let packeries = [];
let nodeGalleries = document.querySelectorAll('.gallery');
nodeGalleries.forEach(nodeGallery => {
let magicGrid = new MagicGrid({
container: nodeGallery,
static: true,
gutter: 5,
animate: false,
});
magicGrid.listen();
magicGrids.push(magicGrid);
});
console.log("Galleries founded and initialized with MagicGrid", packeries);
console.groupEnd();
});
})();