Вход Регистрация
Файл: CloudBox-main/CloudBox/admin_assets/js/humane.min.js
Строк: 280
<?php
!function (tei) {
    
"undefined" != typeof module module.exports i(te) : "function" == typeof define && "object" == typeof define.amd define(i) : e[t] = i(te)
}(
"humane"this, function () {
    var 
windowdocument= {on: function (ein) {
        
"addEventListener"in t e.addEventListener(in, !1) : e.attachEvent("on" in)
    }, 
off: function (ein) {
        
"removeEventListener"in t e.removeEventListener(in, !1) : e.detachEvent("on" in)
    }, 
bind: function (te) {
        return function () {
            
t.apply(earguments)
        }
    }, 
isArray: Array.isArray || function (t) {
        return
"[object Array]" === Object.prototype.toString.call(t)
    }, 
config: function (te) {
        return 
null != e
    
}, transSupport: !1useFilter: /msie [678]/i.test(navigator.userAgent), _checkTransition: function () {
        var 
e.createElement("div"), = {webkit"webkit"Moz""O"o"ms"MS"};
        for (var 
n in i)"Transition"in t.style && (this.vendorPrefix i[n], this.transSupport = !0)
    }};
    
i._checkTransition();
    var 
= function (e) {
        
|| (= {}), this.queue = [], this.baseCls e.baseCls || "humane"this.addnCls e.addnCls || ""this.timeout "timeout"in e e.timeout 2500this.waitForMove e.waitForMove || !1this.clickToClose e.clickToClose || !1this.timeoutAfterMove e.timeoutAfterMove || !1this.container e.container;
        try {
            
this._setupEl()
        } catch (
n) {
            
i.on(t"load"i.bind(this._setupElthis))
        }
    };
    return 
n.prototype = {constructorn_setupEl: function () {
        var 
e.createElement("div");
        if (
t.style.display "none", !this.container) {
            if (!
e.body)throw"document.body is null";
            
this.container e.body
        
}
        
this.container.appendChild(t), this.el tthis.removeEvent i.bind(function () {
            
this.timeoutAfterMove setTimeout(i.bind(this.removethis), this.timeout) : this.remove()
        }, 
this), this.transEvent i.bind(this._afterAnimationthis), this._run()
    }, 
_afterTimeout: function () {
        
i.config(this.currentMsg.waitForMovethis.waitForMove) ? this.removeEventsSet || (i.on(e.body"mousemove"this.removeEvent), i.on(e.body"click"this.removeEvent), i.on(e.body"keypress"this.removeEvent), i.on(e.body"touchstart"this.removeEvent), this.removeEventsSet = !0) : this.remove()
    }, 
_run: function () {
        if (!
this._animating && this.queue.length && this.el) {
            
this._animating = !0this.currentTimer && (clearTimeout(this.currentTimer), this.currentTimer null);
            var 
this.queue.shift(), i.config(t.clickToClosethis.clickToClose);
            
&& (i.on(this.el"click"this.removeEvent), i.on(this.el"touchstart"this.removeEvent));
            var 
i.config(t.timeoutthis.timeout);
            
&& (this.currentTimer setTimeout(i.bind(this._afterTimeoutthis), n)), i.isArray(t.html) && (t.html "<ul><li>" t.html.join("<li>") + "</ul>"), this.el.innerHTML t.htmlthis.currentMsg tthis.el.className this.baseClsi.transSupport ? (this.el.style.display "block"setTimeout(i.bind(this._showMsgthis), 50)) : this._showMsg()
        }
    }, 
_setOpacity: function (t) {
        if (
i.useFilter)try {
            
this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity 100 t
        
} catch (e) {
        } else 
this.el.style.opacity String(t)
    }, 
_showMsg: function () {
        var 
i.config(this.currentMsg.addnClsthis.addnCls);
        if (
i.transSupport)this.el.className this.baseCls " " " " this.baseCls "-animate"; else {
            var 
0;
            
this.el.className this.baseCls " " " " this.baseCls "-js-animate"this._setOpacity(0), this.el.style.display "block";
            var 
thissetInterval(function () {
                
? (+= .1&& (1), n._setOpacity(e)) : clearInterval(s)
            }, 
30)
        }
    }, 
_hideMsg: function () {
        var 
i.config(this.currentMsg.addnClsthis.addnCls);
        if (
i.transSupport)this.el.className this.baseCls " " ti.on(this.eli.vendorPrefix i.vendorPrefix "TransitionEnd" "transitionend"this.transEvent); else var 1thissetInterval(function () {
            
? (-= .1&& (0), n._setOpacity(e)) : (n.el.className n.baseCls " " tclearInterval(s), n._afterAnimation())
        }, 
30)
    }, 
_afterAnimation: function () {
        
i.transSupport && i.off(this.eli.vendorPrefix i.vendorPrefix "TransitionEnd" "transitionend"this.transEvent), this.currentMsg.cb && this.currentMsg.cb(), this.el.style.display "none"this._animating = !1this._run()
    }, 
remove: function (t) {
        var 
"function" == typeof t null;
        
i.off(e.body"mousemove"this.removeEvent), i.off(e.body"click"this.removeEvent), i.off(e.body"keypress"this.removeEvent), i.off(e.body"touchstart"this.removeEvent), i.off(this.el"click"this.removeEvent), i.off(this.el"touchstart"this.removeEvent), this.removeEventsSet = !1&& this.currentMsg && (this.currentMsg.cb n), this._animating this._hideMsg() : && n()
    }, 
log: function (tein) {
        var 
= {};
        if (
n)for (var o in n)s[o] = n[o];
        if (
"function" == typeof e)e; else if (e)for (var o in e)s[o] = e[o];
        return 
s.html t&& (s.cb i), this.queue.push(s), this._run(), this
    
}, spawn: function (t) {
        var 
this;
        return function (
ins) {
            return 
e.log.call(einst), e
        
}
    }, 
create: function (t) {
        return new 
n(t)
    }}, new 
n
});
?>
Онлайн: 1
Реклама