mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-24 07:25:40 -06:00
20 lines
604 B
JavaScript
20 lines
604 B
JavaScript
(function init() {
|
|
|
|
$(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", magicGrids);
|
|
console.groupEnd();
|
|
});
|
|
})();
|