Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/js/admin/notification.min.js
Назад
let TF_Notification;((c,i)=>{"use strict";let l=!1,r=!0;const s=()=>{!0===(r="visible"===window.document.visibilityState)&&(l=!1)},f=function(){!0!==l&&!0===r&&(l=!0,this.classList.add("show"),this.tfOn("pointerleave",t=>{i.triggerEvent(t.currentTarget,t.type)},{passive:!0,once:!0}))};TF_Notification={el:null,async init(){let t=window.top.document.tfId("tf_notification_root"),e=[];if(null===t){window.document.tfOff("visibilitychange",s,{passive:!0}).tfOn("visibilitychange",s,{passive:!0}),t=c.createElement("div");const o={info:"info",error:"tf_close",warning:"alert",done:"check"},a=c.createDocumentFragment();a.appendChild(c.querySelector("#tf_svg").cloneNode(!0)),t.id="tf_notification_root",t.className="tf_hide tf_w";for(let n in o){let t=c.createElement("div"),e=c.createElement("div"),i,s=o[n];"tf_close"===s||"tf"===s?"tf_close"===((i=c.createElement("div")).className=s)&&(i.className+=" tf_w tf_h"):i=(t=>{const e="http://www.w3.org/2000/svg",i=c.createElementNS(e,"use"),s=c.createElementNS(e,"svg");return t="tf-"+t.trim().replace(" ","-"),s.setAttribute("class","tf_fa "+t),i.setAttributeNS(null,"href","#"+t),s.appendChild(i),s})("ti-"+s),t.className="notify "+n+" tf_abs_t tf_opacity",e.className="icon tf_hide",e.appendChild(i),t.appendChild(e),a.appendChild(t)}t.attachShadow({mode:"open"}).appendChild(a),e.push(i.loadCss(i.url+"css/base.min",null,null,t.shadowRoot.querySelector(".notify"))),e.push(i.loadCss(i.url+"css/notification","tf_notify",null,t.shadowRoot.querySelector(".notify"))),t.classList.add("tf_hidden"),t.classList.remove("tf_hide"),(this.el=t).classList.remove("tf_hidden"),c.body.appendChild(t)}return await Promise.all(e),t},async show(o,a,l){return null===this.el?(await this.init(),this.show(o,a,l)):new Promise(async e=>{const t=this.el.shadowRoot.querySelector("."+o),i=t=>{a instanceof DocumentFragment||a instanceof HTMLElement||a instanceof Document?(t.innerHTML="",t.appendChild(a)):t.innerHTML=a||""};if(null===t||t.classList.contains("show"))t&&i(t.tfClass("msg")[0]),!0===r&&0<l?setTimeout(e,l):e();else{await this.showHide();const s=c.createElement("div");if(s.className="msg",i(s),t.appendChild(s),!0===r){const n=function(t){this.tfOff("transitioncancel transitionend",n,{passive:!0,once:!0}),!0===r&&0<l?setTimeout(e,l):e()};t.tfOff("pointerenter",f,{passive:!0}).tfOn("pointerenter",f,{passive:!0}).tfOn("transitionend transitioncancel",n,{passive:!0,once:!0}).classList.add("show")}else t.classList.add("show"),e()}})},async showHide(n,o,a){return null===this.el?(await this.init(),this.showHide(n,o,a)):new Promise(async e=>{const t=this.el.shadowRoot.querySelector(".show");if(n)return null===t||t.classList.contains(n)||await this.showHide(),a=a||3e3,await this.show(n,o),void(!0===r?setTimeout(()=>{this.showHide().then(e)},a):(await this.showHide(),e()));if(null===t)return void e();const i=function(){if(!1===l){this.tfOff("pointerenter",f,{passive:!0}).tfOff("pointerleave",s,{passive:!0}).tfOff("transitioncancel transitionend",i,{passive:!0,once:!0});const t=this.tfClass("msg")[0];t&&t.remove(),e()}},s=function(){!0===l&&(l=!1,this.tfOff("pointerenter",f,{passive:!0}).tfOff("transitioncancel transitionend",i,{passive:!0,once:!0}).tfOn("transitionend transitioncancel",i,{passive:!0,once:!0}).classList.remove("show"))};!0===r?!1!==l&&t.matches(":hover")?t.tfOn("pointerleave",s,{passive:!0}):(l=!0,s.call(t)):(t.classList.remove("show"),i.call(t))})}}})(document,Themify);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка