Файловый менеджер - Редактировать - /home2/cocinasdalloway/constructorasmn.com/wp-content/themes/catch-fullscreen/assets/js/jquery.matchHeight.min.js
Назад
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(r){function s(t){return parseFloat(t)||0}function l(t){var t=r(t),n=null,a=[];return t.each(function(){var t=r(this),e=t.offset().top-s(t.css("margin-top")),o=0<a.length?a[a.length-1]:null;null!==o&&Math.floor(Math.abs(n-e))<=1?a[a.length-1]=o.add(t):a.push(t),n=e}),a}function c(t){var e={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?r.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)}function n(t){h._beforeUpdate&&h._beforeUpdate(t,h._groups),r.each(h._groups,function(){h._apply(this.elements,this.options)}),h._afterUpdate&&h._afterUpdate(t,h._groups)}var a=-1,i=-1,h=r.fn.matchHeight=function(t){var o,t=c(t);return t.remove?((o=this).css(t.property,""),r.each(h._groups,function(t,e){e.elements=e.elements.not(o)})):this.length<=1&&!t.target||(h._groups.push({elements:this,options:t}),h._apply(this,t)),this},t=(h.version="master",h._groups=[],h._throttle=80,h._maintainScroll=!1,h._beforeUpdate=null,h._afterUpdate=null,h._rows=l,h._parse=s,h._parseOptions=c,h._apply=function(t,e){var a=c(e),e=r(t),t=[e],o=r(window).scrollTop(),n=r("html").outerHeight(!0),i=e.parents().filter(":hidden");return i.each(function(){var t=r(this);t.data("style-cache",t.attr("style"))}),i.css("display","block"),a.byRow&&!a.target&&(e.each(function(){var t=r(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),t=l(e),e.each(function(){var t=r(this);t.attr("style",t.data("style-cache")||"")})),r.each(t,function(t,e){var e=r(e),n=0;if(a.target)n=a.target.outerHeight(!1);else{if(a.byRow&&e.length<=1)return void e.css(a.property,"");e.each(function(){var t=r(this),e=t.attr("style"),o=t.css("display"),o={display:o="inline-block"!==o&&"flex"!==o&&"inline-flex"!==o?"block":o};o[a.property]="",t.css(o),t.outerHeight(!1)>n&&(n=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}e.each(function(){var t=r(this),e=0;a.target&&t.is(a.target)||("border-box"!==t.css("box-sizing")&&(e=(e+=s(t.css("border-top-width"))+s(t.css("border-bottom-width")))+(s(t.css("padding-top"))+s(t.css("padding-bottom")))),t.css(a.property,n-e+"px"))})}),i.each(function(){var t=r(this);t.attr("style",t.data("style-cache")||null)}),h._maintainScroll&&r(window).scrollTop(o/n*r("html").outerHeight(!0)),this},h._applyDataApi=function(){var o={};r("[data-match-height], [data-mh]").each(function(){var t=r(this),e=t.attr("data-mh")||t.attr("data-match-height");e in o?o[e]=o[e].add(t):o[e]=t}),r.each(o,function(){this.matchHeight(!0)})},h._update=function(t,e){if(e&&"resize"===e.type){var o=r(window).width();if(o===a)return;a=o}t?-1===i&&(i=setTimeout(function(){n(e),i=-1},h._throttle)):n(e)},r(h._applyDataApi),r.fn.on?"on":"bind");r(window)[t]("load",function(t){h._update(!1,t)}),r(window)[t]("resize orientationchange",function(t){h._update(!0,t)})});
| ver. 1.4 |
Github
|
.
| PHP 8.2.22 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка