File "monkeysan.sameheight.min-20250321102936.js"

Full Path: /var/www/vhosts/hogsandbbqs.co.uk/httpdocs/vendors-20241123080857/monkeysan.sameheight.min-20250321102936.js
File size: 1.49 KB
MIME-type: text/plain
Charset: utf-8

(function(e){function d(b,c){this.config={timeOut:50,target:null,isIsotope:!1,columns:!1};if(c.target)this.items=b.find(c.target);else throw Error("'target' option should be specified in the initialization of 'MonkeysanSameHeight' plugin");this.items.length&&(e.extend(this.config,c),Object.defineProperty(this,"prepare",{value:function(){this.run();e(window).on("resize.MonkeysanSameHeight",this.run.bind(this))}}),Object.defineProperty(this,"run",{value:function(){var a=this;this.timeoutId&&clearTimeout(this.timeoutId);
a.items.css("height","auto");this.timeoutId=setTimeout(function(){a.calcMax(a.items)},a.config.timeOut)}}),Object.defineProperty(this,"calcMax",{value:function(a,f){var c=0,d=this;if(!f&&this.columns){var g=e(),h=0;a.each(function(a,b){var c=e(b);c.closest(".mad-is-out").length||(g=g.add(c),h++,0==h%d.columns&&(d.calcMax(g,!0),g=e(),h=0))})}else a.each(function(b,a){var d=e(a).outerHeight();d>c&&(c=d)}),a.css("height",c),this.config.isIsotope&&b.data("isotope")&&b.isotope("layout")}}),Object.defineProperty(this,
"columns",{get:function(){return this.config.columns},set:function(a){this.config.columns=a}}),this.prepare())}Object.defineProperty(d.prototype,"appendItems",{value:function(b){this.items=this.items.add(b);this.run()}});Object.defineProperty(d.prototype,"getOption",{value:function(b){if(b in this.config)return this.config[b]}});e.fn.MonkeysanSameHeight=function(b){return this.each(function(c,a){var f=e(this);f.data("sameHeight")||f.data("sameHeight",new d(f,b))})}})(jQuery);