diff --git a/dist/flexmasonry.css b/dist/flexmasonry.css index 1af13eb..2027381 100644 --- a/dist/flexmasonry.css +++ b/dist/flexmasonry.css @@ -1,6 +1,6 @@ /*! * FlexMasonry - * Version: 0.1.0 + * Version: 0.2.0 * Author: Gilbert Pellegrom * License: MIT */ diff --git a/dist/flexmasonry.js b/dist/flexmasonry.js index 369c6d1..6c0623e 100644 --- a/dist/flexmasonry.js +++ b/dist/flexmasonry.js @@ -1,7 +1,7 @@ /*! * FlexMasonry - * Version: 0.1.0 + * Version: 0.2.0 * Author: Gilbert Pellegrom * License: MIT */ -var FlexMasonry=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){t(1),e.exports=t(2)},function(e,n,t){},function(e,n,t){"use strict";t.r(n);const r={responsive:!0,breakpointCols:{"min-width: 1500px":6,"min-width: 1200px":5,"min-width: 992px":4,"min-width: 768px":3,"min-width: 576px":2},numCols:4,debounce:20};let o=null,i={},s=[];function l(){s.forEach(function(e){c(e)})}function a(){null!==o&&clearTimeout(o),o=setTimeout(function(){o=null,p()},i.debounce)}function c(e){if(d()<2)return void e.style.removeProperty("height");let n=[];Array.from(e.children).forEach(function(e){if(e.classList.contains("flexmasonry-break"))return;const t=window.getComputedStyle(e),r=t.getPropertyValue("order"),o=t.getPropertyValue("height");n[r-1]||(n[r-1]=0),n[r-1]+=Math.ceil(parseFloat(o))});const t=Math.max(...n);e.style.height=t+"px"}function u(e){const n=e.querySelectorAll(".flexmasonry-break");if(Array.from(n).length!==d()-1)for(let n=0;n", "license": "MIT",