Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/themify-builder/js/modules/gallery.min.js
Ðазад
((o,r)=>{"use strict";const n=ThemifyBuilderModuleJs.cssUrl+"gallery_styles/",c=new Set;let d=r.tfId("tb_inline_styles");o.on("builder_load_module_partial",(e,l)=>{if(!0!==l||e.classList.contains("module-gallery")){const a=o.selectWithParent("module-gallery",e),i=[];for(let t=a.length-1;-1<t;--t){let e=a[t],l=e.classList;if(l.contains("layout-showcase"))o.loadCss(n+"showcase","tb_gallery_showcase");else if(l.contains("layout-lightboxed"))o.loadCss(n+"lightboxed","tb_gallery_lightboxed");else if(l.contains("layout-grid")){o.loadCss(n+"grid","tb_gallery_grid");let s=e.tfClass("gallery-masonry")[0];if(s){let l="",e=window.getComputedStyle(s),t=e.getPropertyValue("--galn"),a=parseFloat(e.getPropertyValue("--galg"))||1.5;if(!t){let l=s.classList;for(let e=l.length-1;-1<e;--e)if(l[e].includes("gallery-columns-")){t=l[e].replace("gallery-columns-","");break}}if(t){if(t=parseInt(t),c.has("block")||(c.add("block"),l=".gallery-masonry.masonry-done{display:block}.gallery-masonry.masonry-done>.gutter-sizer{width:"+a+"%}"),!c.has(t)){c.add(t);let e=parseFloat((100-(t-1)*a)/t).toFixed(2).replace(".00","");l+=".gallery-columns-"+t+".masonry-done .gallery-item{width:"+e+"%}"}""!==l&&(null===d?((d=r.createElement("style")).textContent=l,r.head.prepend(d)):d.innerText+=l),i.push(s)}}}}0<i.length&&o.isotop(i,{itemSelector:".gallery-item",columnWidth:!1})}}).body.on("click",".module-gallery .pagenav a",function(e){e.preventDefault();const a=this.closest(".module-gallery"),l=a.classList;l.add("builder_gallery_load"),o.fetch("","html",{method:"GET"},this.getAttribute("href")).then(l=>{if(l){let e=a.className.match(/tb_?.[^\s]+/);e=null!==e&&void 0!==e[0]?e[0]:"module-gallery",a.innerHTML=l.querySelector("."+e).innerHTML;const t=a.tfClass("gallery-masonry")[0];t&&o.isotop(t,{itemSelector:".gallery-item",columnWidth:!1})}}).finally(()=>{l.remove("builder_gallery_load")})}).on("click",".layout-showcase.module-gallery a",function(e){e.preventDefault(),e.stopPropagation();const l=this.closest(".gallery").tfClass("gallery-showcase-image")[0],t=l.tfClass("gallery-showcase-title")[0],a=l.tfClass("gallery-showcase-title-text")[0],s=l.tfClass("gallery-showcase-caption")[0],i=l.tfTag("img")[0],o=this.dataset.image,r=new Image;if(t){const n=t.style;t.innerText.trim()?n.opacity=n.visibility="":(n.opacity=0,n.visibility="hidden")}l.classList.add("tf_lazy"),r.decoding="async",r.alt=this.tfTag("img")[0].alt,a&&(a.innerHTML=this.title),s&&(s.innerHTML=this.dataset.caption),r.src=o,r.decode().catch(()=>{}).finally(()=>{i.replaceWith(r),l.classList.remove("tf_lazy")})})})(Themify,document);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка