Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/js/modules/tooltip.min.js
Назад
((n,t,c,e)=>{"use strict";let o,i,r=null;const d=c.createElement("div"),s=l=>{requestAnimationFrame(()=>{let t=l.clientX,e=l.clientY;o===t&&i===e||(o=t,i=e,d.style.left=t+"px",d.style.top=e+"px",d.classList.toggle("left",t>n.w/2),d.classList.toggle("top",e>n.h/2))})},f=(e,l)=>{l.tfOn("pointerenter",function(t){!0===r&&(e.classList.remove("tf_hide"),s(t),this.tfOn("pointermove",s,{passive:!0}),(n.isTouch?c.body:this).tfOn("pointerleave",function(){l.tfOff("pointermove",s),e.classList.add("tf_hide")},{once:!0,passive:!0}))},{passive:!0})},l=()=>{null===r&&n.loadCss("tooltip").then(()=>{r=!0});const l=e.builder_tooltips,s=c.createDocumentFragment();if(l)for(let t in l){let e=c.tfClass("themify_builder_content-"+t),i=l[t];for(let t=e.length-1;-1<t;--t)for(let n in i){const a=e[t].tfClass("tb_"+n);if(!(a.length<1))for(let o=a.length-1;-1<o;--o){let t=c.createElement("div"),e=a[o].classList,l=1;e.contains("module_row")?l=5:e.contains("tb-column")?l=4:e.contains("module_subrow")?l=3:e.contains("sub_column")&&(l=2),t.className="tf_tooltip tf_hide order-"+l,i[n].c&&(t.style.color=i[n].c),i[n].bg&&(t.style.backgroundColor=i[n].bg),i[n].w&&(t.style.width=i[n].w),t.textContent=i[n].t,f(t,a[o]),s.appendChild(t)}}}const o=e.menu_tooltips;if(0<o?.length)for(let e=o.length-1;-1<e;--e){let t=c.querySelector(o[e]);if(t)for(let e=t.querySelectorAll(".menu-item a[title]"),l=e.length-1;-1<l;--l){let t=c.createElement("div");t.className="tf_tooltip tf_hide",t.textContent=e[l].title||"",f(t,e[l]),e[l].removeAttribute("title"),s.appendChild(t)}}d.className="tf_tooltip_wrap",d.appendChild(s),requestAnimationFrame(()=>{c.body.appendChild(d)})};!0===t.loaded?n.requestIdleCallback(l,200):t.tfOn("load",l,{once:!0,passive:!0})})(Themify,window,document,themify_vars);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка