blowfish/assets/js/shortcodes/gallery.js

21 lines
604 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);
});
2024-03-06 20:28:19 -06:00
console.log("Galleries founded and initialized with MagicGrid", magicGrids);
console.groupEnd();
});
})();