Вход Регистрация
Файл: CloudBox-main/CloudBox/admin_assets/js/jquery.nanoscroller.min.js
Строк: 506
<?php
/*! nanoScrollerJS - v0.8.0 - (c) 2014 James Florentino; Licensed MIT */

!function (abc) {
    
"use strict";
    var 
defghijklmnopqrstuvwxyzABCDEF;
    
= {paneClass"nano-pane"sliderClass"nano-slider"contentClass"nano-content"iOSNativeScrolling: !1preventPageScrolling: !1disableResize: !1alwaysVisible: !1flashDelay1500sliderMinHeight20sliderMaxHeightnulldocumentContextnullwindowContextnull}, "scrollbar""scroll""mousedown""mousemove""mousewheel""mouseup""resize""drag""up""panedown""DOMMouseScroll""down""wheel""keydown""keyup""touchmove""Microsoft Internet Explorer" === b.navigator.appName && /msie 7./i.test(b.navigator.appVersion) && b.ActiveXObjectnullb.requestAnimationFrameb.cancelAnimationFramec.createElement("div").style= function () {
        var 
abcdef;
        for (
= ["t""webkitT""MozT""msT""OT"], 0d.lengthe= ++e)if (d[a], d[a] + "ransform"b in D)return d[a].substr(0d[a].length 1);
        return!
1
    
}(), = function (a) {
        return 
=== !? !"" === a.charAt(0).toUpperCase() + a.substr(1)
    }, 
E("transform"), !== !1= function () {
        var 
abd;
        return 
c.createElement("div"), a.styleb.position "absolute"b.width "100px"b.height "100px"b.overflow rb.top "-9999px"c.body.appendChild(a), a.offsetWidth a.clientWidthc.body.removeChild(a), d
    
}, = function () {
        var 
acd;
        return 
b.navigator.userAgent, (= /(?=.+Mac OS X)(?=.+Firefox)/.test(c)) ? (= /Firefox/d{2}./.exec(c), && (d[0].replace(/D+/g"")), && +23) : !1
    
}, = function () {
        function 
i(df) {
            
this.el dthis.options f|| (y()), this.$el a(this.el), this.doc a(this.options.documentContext || c), this.win a(this.options.windowContext || b), this.$content this.$el.children("." f.contentClass), this.$content.attr("tabindex"this.options.tabIndex || 0), this.content this.$content[0], this.previousPosition 0this.options.iOSNativeScrolling && null != this.el.style.WebkitOverflowScrolling this.nativeScrolling() : this.generate(), this.createEvents(), this.addEvents(), this.reset()
        }

        return 
i.prototype.preventScrolling = function (ab) {
            if (
this.isActive)if (a.type === f)(=== && a.originalEvent.detail || === && a.originalEvent.detail 0) && a.preventDefault(); else if (a.type === n) {
                if (!
a.originalEvent || !a.originalEvent.wheelDelta)return;
                (
=== && a.originalEvent.wheelDelta || === && a.originalEvent.wheelDelta 0) && a.preventDefault()
            }
        }, 
i.prototype.nativeScrolling = function () {
            
this.$content.css({WebkitOverflowScrolling"touch"}), this.iOSNativeScrolling = !0this.isActive = !0
        
}, i.prototype.updateScrollValues = function () {
            var 
ab;
            
this.contentthis.maxScrollTop a.scrollHeight a.clientHeightthis.prevScrollTop this.contentScrollTop || 0this.contentScrollTop a.scrollTopthis.contentScrollTop this.previousPosition "down" this.contentScrollTop this.previousPosition "up" "same"this.previousPosition this.contentScrollTop"same" !== && this.$el.trigger("update", {positionthis.contentScrollTopmaximumthis.maxScrollTopdirectionb}), this.iOSNativeScrolling || (this.maxSliderTop this.paneHeight this.sliderHeightthis.sliderTop === this.maxScrollTop this.contentScrollTop this.maxSliderTop this.maxScrollTop)
        }, 
i.prototype.setOnScrollStyles = function () {
            var 
a;
            
? (= {}, a[C] = "translate(0, " this.sliderTop "px)") : = {topthis.sliderTop}, this.scrollRAF || (this.scrollRAF B(function (b) {
                return function () {
                    
b.scrollRAF nullb.slider.css(a)
                }
            }(
this))) : this.slider.css(a)
        }, 
i.prototype.createEvents = function () {
            
this.events = {down: function (a) {
                return function (
b) {
                    return 
a.isBeingDragged = !0a.offsetY b.pageY a.slider.offset().topa.pane.addClass("active"), a.doc.bind(la.events[h]).bind(ma.events[u]), !1
                
}
            }(
this), drag: function (a) {
                return function (
b) {
                    return 
a.sliderY b.pageY a.$el.offset().top a.offsetYa.scroll(), a.contentScrollTop >= a.maxScrollTop && a.prevScrollTop !== a.maxScrollTop a.$el.trigger("scrollend") : === a.contentScrollTop && !== a.prevScrollTop && a.$el.trigger("scrolltop"), !1
                
}
            }(
this), up: function (a) {
                return function () {
                    return 
a.isBeingDragged = !1a.pane.removeClass("active"), a.doc.unbind(la.events[h]).unbind(ma.events[u]), !1
                
}
            }(
this), resize: function (a) {
                return function () {
                    
a.reset()
                }
            }(
this), panedown: function (a) {
                return function (
b) {
                    return 
a.sliderY = (b.offsetY || b.originalEvent.layerY) - .5 a.sliderHeighta.scroll(), a.events.down(b), !1
                
}
            }(
this), scroll: function (a) {
                return function (
b) {
                    
a.updateScrollValues(), a.isBeingDragged || (a.iOSNativeScrolling || (a.sliderY a.sliderTopa.setOnScrollStyles()), null != && (a.contentScrollTop >= a.maxScrollTop ? (a.options.preventPageScrolling && a.preventScrolling(bg), a.prevScrollTop !== a.maxScrollTop && a.$el.trigger("scrollend")) : === a.contentScrollTop && (a.options.preventPageScrolling && a.preventScrolling(bu), !== a.prevScrollTop && a.$el.trigger("scrolltop"))))
                }
            }(
this), wheel: function (a) {
                return function (
b) {
                    var 
c;
                    if (
null != b)return b.delta || b.wheelDelta || b.originalEvent && b.originalEvent.wheelDelta || -b.detail || b.originalEvent && -b.originalEvent.detail&& (a.sliderY += -3), a.scroll(), !1
                
}
            }(
this)}
        }, 
i.prototype.addEvents = function () {
            var 
a;
            
this.removeEvents(), this.eventsthis.options.disableResize || this.win.bind(qa[q]), this.iOSNativeScrolling || (this.slider.bind(ka[g]), this.pane.bind(ka[p]).bind("" " " fa[v])), this.$content.bind("" " " " " " " ta[r])
        }, 
i.prototype.removeEvents = function () {
            var 
a;
            
this.eventsthis.win.unbind(qa[q]), this.iOSNativeScrolling || (this.slider.unbind(), this.pane.unbind()), this.$content.unbind("" " " " " " " ta[r])
        }, 
i.prototype.generate = function () {
            var 
acdfgh;
            return 
this.optionsf.paneClassf.sliderClassf.contentClassthis.$el.find("." g).length || this.$el.find("." h).length || this.$el.append('<div class="' '"><div class="' '" /></div>'), this.pane this.$el.children("." g), this.slider this.pane.find("." h), === && A() ? (b.getComputedStyle(this.contentnull).getPropertyValue("padding-right").replace(/D+/g""), = {right: -14paddingRight: +14}) : && (= {right: -e}, this.$el.addClass("has-scrollbar")), null != && this.$content.css(c), this
        
}, i.prototype.restore = function () {
            
this.stopped = !1this.iOSNativeScrolling || this.pane.show(), this.addEvents()
        }, 
i.prototype.reset = function () {
            var 
abcfghijklmn;
            return 
this.iOSNativeScrolling void(this.contentHeight this.content.scrollHeight) : (this.$el.find("." this.options.paneClass).length || this.generate().stop(), this.stopped && this.restore(), this.contenta.stylef.overflowY&& this.$content.css({heightthis.$content.height()}), a.scrollHeight eparseInt(this.$el.css("max-height"), 10), && (this.$el.height(""), this.$el.height(a.scrollHeight a.scrollHeight)), this.pane.outerHeight(!1), parseInt(this.pane.css("top"), 10), parseInt(this.pane.css("bottom"), 10), hMath.round(j), this.options.sliderMinHeight this.options.sliderMinHeight null != this.options.sliderMaxHeight && this.options.sliderMaxHeight && (this.options.sliderMaxHeight), === && f.overflowX !== && (+= e), this.maxSliderTop nthis.contentHeight bthis.paneHeight ithis.paneOuterHeight jthis.sliderHeight nthis.slider.height(n), this.events.scroll(), this.pane.show(), this.isActive = !0a.scrollHeight === a.clientHeight || this.pane.outerHeight(!0) >= a.scrollHeight && !== ? (this.pane.hide(), this.isActive = !1) : this.el.clientHeight === a.scrollHeight && === this.slider.hide() : this.slider.show(), this.pane.css({opacitythis.options.alwaysVisible ""visibilitythis.options.alwaysVisible "visible" ""}), this.$content.css("position"), ("static" === || "relative" === c) && (parseInt(this.$content.css("right"), 10), && this.$content.css({right""marginRightm})), this)
        }, 
i.prototype.scroll = function () {
            return 
this.isActive ? (this.sliderY Math.max(0this.sliderY), this.sliderY Math.min(this.maxSliderTopthis.sliderY), this.$content.scrollTop((this.paneHeight this.contentHeight e) * this.sliderY this.maxSliderTop * -1), this.iOSNativeScrolling || (this.updateScrollValues(), this.setOnScrollStyles()), this) : void 0
        
}, i.prototype.scrollBottom = function (a) {
            return 
this.isActive ? (this.$content.scrollTop(this.contentHeight this.$content.height() - a).trigger(n), this.stop().restore(), this) : void 0
        
}, i.prototype.scrollTop = function (a) {
            return 
this.isActive ? (this.$content.scrollTop(+a).trigger(n), this.stop().restore(), this) : void 0
        
}, i.prototype.scrollTo = function (a) {
            return 
this.isActive ? (this.scrollTop(this.$el.find(a).get(0).offsetTop), this) : void 0
        
}, i.prototype.stop = function () {
            return 
&& this.scrollRAF && (w(this.scrollRAF), this.scrollRAF null), this.stopped = !0this.removeEvents(), this.iOSNativeScrolling || this.pane.hide(), this
        
}, i.prototype.destroy = function () {
            return 
this.stopped || this.stop(), !this.iOSNativeScrolling && this.pane.length && this.pane.remove(), && this.$content.height(""), this.$content.removeAttr("tabindex"), this.$el.hasClass("has-scrollbar") && (this.$el.removeClass("has-scrollbar"), this.$content.css({right""})), this
        
}, i.prototype.flash = function () {
            return!
this.iOSNativeScrolling && this.isActive ? (this.reset(), this.pane.addClass("flashed"), setTimeout(function (a) {
                return function () {
                    
a.pane.removeClass("flashed")
                }
            }(
this), this.options.flashDelay), this) : void 0
        
}, i
    
}(), a.fn.nanoScroller = function (b) {
        return 
this.each(function () {
            var 
cd;
            if ((
this.nanoscroller) || (a.extend({}, xb), this.nanoscroller = new o(thisc)), && "object" == typeof b) {
                if (
a.extend(d.optionsb), null != b.scrollBottom)return d.scrollBottom(b.scrollBottom);
                if (
null != b.scrollTop)return d.scrollTop(b.scrollTop);
                if (
b.scrollTo)return d.scrollTo(b.scrollTo);
                if (
"bottom" === b.scroll)return d.scrollBottom(0);
                if (
"top" === b.scroll)return d.scrollTop(0);
                if (
b.scroll && b.scroll instanceof a)return d.scrollTo(b.scroll);
                if (
b.stop)return d.stop();
                if (
b.destroy)return d.destroy();
                if (
b.flash)return d.flash()
            }
            return 
d.reset()
        })
    }, 
a.fn.nanoScroller.Constructor o
}(jQuerywindowdocument);
?>
Онлайн: 3
Реклама