1 line
No EOL
781 B
JavaScript
1 line
No EOL
781 B
JavaScript
var isIE=!1,isEdge=!1;(()=>{isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia;var a=astra.masonryEnabled||!1,r=astra.blogMasonryBreakPoint;function e(e){var n,o;r>=window.innerWidth||(o=window.getComputedStyle(jQuery("#content")[0],"::before").getPropertyValue("content"),isEdge||isIE||"normal"===o?window.innerWidth>=r&&(o=r):(o=o.replace(/[^0-9]/g,""),o=parseInt(o<r?o:r)),n=jQuery(".search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div"),o==r?a&&void 0!==n&&0<n.length&&(o=!!n.data("masonry"),e&&o?n.masonry("reload"):n.imagesLoaded(n,function(){n.masonry({itemSelector:"#primary article"})})):a&&void 0!==n&&0<n.length&&n.masonry().masonry("destroy"))}window.addEventListener("resize",function(){e(!0)}),e()})(jQuery); |