Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/themify-builder/js/modules/fullwidthRows.min.js
Назад
(($,a,h,s)=>{"use strict";let u=!1;const m=a.is_builder_active,p=(e,l,i)=>{let a=e.getAttribute("data-"+l+"-"+i);if(!a&&"desktop"!==l){const s=["mobile","tablet","tablet_landscape","desktop"];for(let t=s.indexOf(l)+1;t<4;++t)if(a=e.getAttribute("data-"+s[t]+"-"+i)){e.setAttribute("data-"+l+"-"+i,a);break}}return a?.split(",")||[]},i=(o,e)=>{const t=a.body,r=t.outerWidth(),c=t.offset().left;if(0!==r){const l=s.breakpoints,i=h.documentElement.clientWidth,f=h.createDocumentFragment();let d="desktop";i<=l.mobile?d="mobile":i<=l.tablet[1]?d="tablet":i<=l.tablet_landscape[1]&&(d="tablet_landscape");for(let n=o.length-1;-1<n;--n){if(!e&&!m&&!1===u){if(o[n].hasAttribute("data-fullwidth-done"))continue;o[n].dataset.fullwidthDone=1}let t=o[n].closest(".themify_builder_content");if(null!==t&&null===t.closest(".slide-content")){let l=$(t).offset().left-c,i=r-l-t.offsetWidth,a,s="";if(m)(t.classList.contains("tb_zooming_50")||t.classList.contains("tb_zooming_75"))&&(l=0,i=0);else{let e=o[n].dataset.css_id;if(e)e="tb_"+e;else{let t=o[n].className.match(/module_row_(\d+)/gi);if(!t||!t[0])continue;e=t[0].trim()}a="tb-fulllwidth-"+e,s+=".themify_builder.themify_builder_content>."+e+".module_row{"}if(o[n].classList.contains("fullwidth")){let t=p(o[n],d,"margin"),e="";t[0]?(e=t[0],s+="margin-left:calc("+t[0]+" - "+Math.abs(l)+"px);"):s+="margin-left:"+-l+"px;",t[1]?(""!==e&&(e+=" + "),e+=t[1],s+="margin-right:calc("+t[1]+" - "+Math.abs(i)+"px);"):s+="margin-right:"+-i+"px;",s+=""!==e?"width:calc("+r+"px - ("+e+"));":"width:"+r+"px;"}else if(s+="margin-left:"+-l+"px;margin-right:"+-i+"px;width:"+r+"px;",l||i){let t=p(o[n],d,"padding"),e="+";l&&(t[0]?(l<0&&(e="-"),s+="padding-left:calc("+t[0]+" "+e+" "+Math.abs(l)+"px);"):s+="padding-left:"+Math.abs(l)+"px;"),i&&(t[1]?(e=0<i?"+":"-",s+="padding-right:calc("+t[1]+" "+e+" "+Math.abs(i)+"px);"):s+="padding-right:"+Math.abs(i)+"px;")}if(m)o[n].style.paddingRight=o[n].style.paddingLeft=o[n].style.marginRight=o[n].style.marginLeft="",o[n].style.cssText+=s;else{s+="}",h.tfId(a)?.remove();let t=h.createElement("style");t.setAttribute("id",a),t.textContent=s,f.appendChild(t)}}}m||(h.head.appendChild(f),!0!==e&&a.trigger("tfsmartresize",{w:a.w,h:a.h}))}};a.on("builder_load_module_partial",(t,e)=>{let l;if(!0===e){if(!t.classList.contains("fullwidth")&&!t.classList.contains("fullwidth_row_container")||t.closest(".tb_overlay_content_lp"))return;l=[t]}else l=a.selectWithParent(".fullwidth.module_row,.fullwidth_row_container.module_row",t);0<l.length&&i(l,!1)}).on("tfsmartresize",t=>{!1===u&&t&&t.w!==a.w&&(u=!0,i(h.querySelectorAll(".fullwidth.module_row,.fullwidth_row_container.module_row")),u=!1)})})(jQuery,Themify,document,tbLocalScript);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка