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