Skip to Content

JavaScript File

URL: https://imam.web.id/wp-content/themes/chromenews/assets/jquery-match-height/jquery.matchHeight.min.js?ver=6.0
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Sat, 12 Feb 2022 20:18:46 GMT
Download Time: Less than a second
Cookies: None
Size: 4 KB
HTTP Headers:  20 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
  
OK Issues: No issues found

1/*

2* jquery-match-height 0.7.2 by @liabru

3* http://brm.io/jquery-match-height/

4* License MIT

5*/

6!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}

7(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0}

8,a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}

9),r}

10,i=function(e){var o={

11byRow:!0,property:"height",target:null,remove:!1}

12;return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)}

13,r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}

14),this}

15return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}

16),r._apply(this,o),this)}

17;r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,

18r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}

19),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",

20"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"}

21)}

22),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")}

23)),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={

24display:n}

25;a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")}

26)}

27a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))}

28)}

29),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}

30),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),

31this}

32,r._applyDataApi=function(){var e={}

33;t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}

34),t.each(e,function(){this.matchHeight(!0)}

35)}

36;var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}

37),r._afterUpdate&&r._afterUpdate(e,r._groups)}

38;r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;

39}

40n?o===-1&&(o=setTimeout(function(){s(a),o=-1}

...

</html>