Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/themes/themify-ultra/themify/js/modules/lax.min.js
Назад
'use strict';(function(l,q,h){let u=null,v=null,r=null,t=null,g=q.getElementById("tb_inline_styles"),m=[],n=[],w=null;const p={p:{},b:{}},y=function(){const d=[];!0===r&&(r=!1,d.push("[data-lax-opacity].tf_lax_done{opacity:0}"));!0===t&&(t=!1,d.push("[data-lax-no-op].tf_lax_done{opacity:1!important}"));for(var e=m.length-1;-1<e;--e)p.p[m[e]]||(p.p[m[e]]=!0,d.push('[data-box-position="'+m[e]+'"].tf_lax_done{transform-origin:'+m[e]+"}"));m=[];for(e=n.length-1;-1<e;--e)p.b[n[e]]||(p.b[n[e]]=!0,d.push('[data-lax-b="'+ n[e]+'"].tf_lax_done{filter:blur('+n[e]+"px)}"));n=[];0<d.length&&(g.textContent+=d.join(""))},x=function(d){const e=l.h,g=[];let p=q.body.getBoundingClientRect().top;for(let h=d.length-1;-1<h;--h){let f=d[h];if(!f.hasAttribute("data-lax"))continue;f.removeAttribute("data-lax");let b=f.cloneNode(!1);var c=b.style.zIndex;b.className="tf_lax_done tf_rel";b.removeAttribute("style");c&&(b.style.zIndex=c);b.hasAttribute("data-box-position")&&(c=b.getAttribute("data-box-position"),-1!==c.indexOf("%")?b.style.transformOrigin= c:m.push(c),f.removeAttribute("data-box-position"));b.hasAttribute("data-lax-b")&&(n.push(b.getAttribute("data-lax-b")),f.removeAttribute("data-lax-b"));b.hasAttribute("data-lax-scale")&&(c=f.closest(".entry-content"),null!==c&&c.classList.add("themify-no-overflow-x"),null===u&&(l.body[0].classList.add("themify-no-overflow-x"),p=q.body.getBoundingClientRect().top,u=!0));b.hasAttribute("data-lax-no-op")&&(f.removeAttribute("data-lax-b"),null===t&&(t=!0));f.removeAttribute("data-lax-opacity");c=f.getBoundingClientRect().top- p;if(c+130<e){c=0>c?e:Math.floor(c);f.removeAttribute("data-lax-anchor");b.removeAttribute("data-lax-anchor");if(b.hasAttribute("data-lax-translate-y")){var a=b.getAttribute("data-lax-translate-y").split(","),k=a[0].split(" ");a=a[1].split(" ");b.setAttribute("data-lax-translate-y",a[0]+" "+k[1]+","+c+" "+a[1])}b.hasAttribute("data-lax-translate-x")&&(a=b.getAttribute("data-lax-translate-x").split(","),k=a[0].split(" "),a=a[1].split(" "),b.setAttribute("data-lax-translate-x",a[0]+" "+k[1]+","+c+" "+ a[1]));b.hasAttribute("data-lax-opacity")&&(null===r&&(r=!0),a=b.getAttribute("data-lax-opacity").split(","),k=a[0].split(" "),a=a[1].split(" "),b.setAttribute("data-lax-opacity",a[0]+" "+k[1]+","+c+" "+a[1]));b.hasAttribute("data-lax-blur")&&(a=b.getAttribute("data-lax-blur").split(","),k=a[0].split(" "),a=a[1].split(" "),b.setAttribute("data-lax-blur",a[0]+" "+k[1]+","+c+" "+a[1]));b.hasAttribute("data-lax-rotate")&&(a=b.getAttribute("data-lax-rotate").split(","),k=a[0].split(" "),a=a[1].split(" "), b.setAttribute("data-lax-rotate",a[0]+" "+k[1]+","+c+" "+a[1]));b.hasAttribute("data-lax-scale")&&(a=b.getAttribute("data-lax-scale").split(","),k=a[0].split(" "),a=a[1].split(" "),b.setAttribute("data-lax-scale",a[0]+" "+k[1]+","+c+" "+a[1]))}f.parentNode.insertBefore(b,f);b.appendChild(f);g.push(b)}y();for(d=g.length-1;-1<d;--d)h.lax.addElement(g[d]);if(null===w){w=!0;let a=null;const c=function(){const b=h.scrollY;if(v!==b&&(v=b,h.lax.update(b),!0===l.is_builder_active))return;null!==a&&cancelAnimationFrame(a); a=requestAnimationFrame(c)};h.addEventListener("scroll",function(){requestAnimationFrame(c)},{once:!0,passive:!0});l.on("tfsmartresize",function(){h.lax.updateElements()})}};g||(g=q.createElement("style"),g.id="tb_inline_styles",q.head.appendChild(g));g.textContent+=".themify-no-overflow-x{overflow-x:hidden}";l.on("tf_lax_init",function(d){h.lax?x(d):l.LoadAsync(l.jsUrl+"themify.lax.min.js",function(){x(d)},"1.0",null,function(){return!!h.lax})})})(Themify,document,window);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка