This reverts commit c2189ef133.
This commit is contained in:
Christoph Cullmann 2025-07-18 21:43:20 +02:00
parent c2189ef133
commit fc43dba964
No known key found for this signature in database
540 changed files with 29285 additions and 6036 deletions

View file

@ -0,0 +1,22 @@
function _getDefaultPackeryOptions() {
return {
percentPosition: true,
gutter: 5,
resize: true
};
}
(function init() {
$(window).on("load", function () {
let packeries = [];
let nodeGalleries = document.querySelectorAll('.gallery');
nodeGalleries.forEach(nodeGallery => {
// TODO : implement a reader of Packery configuration _getPackeryOptions; for example by reading data-attribute
let packery = new Packery(nodeGallery, _getDefaultPackeryOptions());
packeries.push(packery);
});
console.groupEnd();
});
})();