mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
21 lines
24 KiB
JavaScript
21 lines
24 KiB
JavaScript
|
window.EA=(typeof EA!="undefined")?EA:{};EA.originUxElements=(typeof EA.originUxElements!="undefined")?EA.originUxElements:{};EA.originUxElements.$=(typeof EA.originUxElements.$!="undefined")?EA.originUxElements.$:(typeof $!="undefined")?$:jQuery;if(typeof EA.originUxElements.$!="undefined"&&EA.originUxElements.$.isFunction(EA.originUxElements.$.fn.on)===false){EA.originUxElements.$=(typeof EA.originWidgets!="undefined"&&typeof EA.originWidgets.$!="undefined")?EA.originWidgets.$:EA.originUxElements.$;
|
||
|
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||
|
* Licensed under the MIT License (LICENSE.txt).
|
||
|
*
|
||
|
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||
|
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||
|
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||
|
*
|
||
|
* Version: 3.0.6
|
||
|
*
|
||
|
* Requires: 1.2.2+
|
||
|
*/
|
||
|
}(function(f){function g(a){var n=a||window.event,m=[].slice.call(arguments,1),l=0,k=!0,j=0,i=0;return a=f.event.fix(n),a.type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),i=l,n.axis!==undefined&&n.axis===n.HORIZONTAL_AXIS&&(i=0,j=-1*l),n.wheelDeltaY!==undefined&&(i=n.wheelDeltaY/120),n.wheelDeltaX!==undefined&&(j=-1*n.wheelDeltaX/120),m.unshift(a,l,j,i),(f.event.dispatch||f.event.handle).apply(this,m)}var e=["DOMMouseScroll","mousewheel"];if(f.event.fixHooks){for(var h=e.length;h;){f.event.fixHooks[e[--h]]=f.event.mouseHooks}}f.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var b=e.length;b;){this.addEventListener(e[--b],g,!1)}}else{this.onmousewheel=g}},teardown:function(){if(this.removeEventListener){for(var b=e.length;b;){this.removeEventListener(e[--b],g,!1)}}else{this.onmousewheel=null}}},f.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(EA.originUxElements.$)
|
||
|
/*!
|
||
|
jquery scroll - a custom stylable scrollbar
|
||
|
Version 0.4
|
||
|
https://github.com/thomd/jquery-scroll
|
||
|
Copyright (c) 2011 Thomas Duerr (me-at-thomd-dot-net)
|
||
|
Licensed under the MIT license (https://raw.github.com/thomd/jquery-scroll/master/MIT-LICENSE)
|
||
|
*/
|
||
|
;(function(c,a){var b={init:function(e,f){var d=c.extend({},c.fn.scrollbar.defaults,f);return this.each(function(){var g=c(this),h={arrows:d.arrows};if(d.containerHeight!="auto"){g.height(d.containerHeight)}h.containerHeight=g.height();h.contentHeight=c.fn.scrollbar.contentHeight(g);if(h.contentHeight<=h.containerHeight){return true}this.scrollbar=new c.fn.scrollbar.Scrollbar(g,h,d);this.scrollbar.buildHtml().setHandle().appendEvents();if(typeof e==="function"){e(g.find(".scrollbar-pane"),this.scrollbar)}})},repaint:function(){return this.each(function(){if(this.scrollbar){this.scrollbar.repaint()}})},scrollto:function(d){return this.each(function(){this.scrollbar.scrollto(d)})},unscrollbar:function(){return this.each(function(){if(this.scrollbar){this.scrollbar.unscrollbar()}})}};c.fn.scrollbar=function(d){if(b[d]){return b[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="function"||d===undefined){return b.init.apply(this,arguments)}else{if(typeof d==="object"){return b.init.apply(this,[null,d])}else{c.error("method '"+d+"' does not exist for $.fn.scrollbar")}}}};c.fn.scrollbar.defaults={containerHeight:"auto",arrows:true,handleHeight:"auto",handleMinHeight:40,scrollTimeout:150,scrollStep:40,scrollTimeoutArrows:40,scrollStepArrows:1};c.fn.scrollbar.Scrollbar=function(d,f,e){this.container=d;this.props=f;this.opts=e;this.mouse={};this.props.arrows=this.container.hasClass("no-arrows")?false:this.props.arrows};c.fn.scrollbar.Scrollbar.prototype={buildHtml:function(){this.container.wrapInner('<div class="scrollbar-pane"/>');this.container.append('<div class="scrollbar-handle-container"><div class="scrollbar-handle-inner"><div class="scrollbar-handle"/></div></div>');if(this.props.arrows){this.container.append('<div class="scrollbar-handle-up"/>').append('<div class="scrollbar-handle-down"/>')}var d=this.container.height();this.pane=this.container.find(".scrollbar-pane");this.handle=this.container.find(".scrollbar-handle");this.handleContainer=this.container.find(".scrollbar-handle-container");this.handleInner=this.container.find(".scrollbar-handle-inner");this.handleArrows=this.container.find(".scrollbar-handle-up, .scrollbar-handle-down");this.handleArrowUp=this.container.find(".scrollbar-handle-up");this.handleArrowDown=this.container.find(".scrollbar-handle-down");this.pane.defaultCss({top:0,left:0});this.handleContainer.defaultCss({right:0});this.handle.defaultCss({top:0,right:0});this.handleArrows.defaultCss({right:0});this.handleArrowUp.defaultCss({top:0});this.handleArrowDown.defaultCss({bottom:0});this.container.css({position:this.container.css("position")==="absolute"?"absolute":"relative",overflow:"hidden",height:d});this.pane.css({position:"absolute",overflow:"visible",height:"auto"});this.handleContainer.css({position:"absolute",top:this.handleArrowUp.outerHeight(true),height:(this.props.containerHeight-this.handleArrowUp.outerHeight(true)-this.handleArrowDown.outerHeight(true))+"px"});this.handleInner.css({height:(this.props.containerHeight-this.handleArrowUp.outerHeight(true)-this.handleArrowDown.outerHeight(true))+"px",position:0});this.handle.css({position:"absolute",cursor:"pointer"});this.handleArrows.css({position:"absolute",cursor:"pointer"});this.pane.top=0;return this},setHandle:function(){this.props.handleContainerHeight=this.handleContainer.height();this.props.contentHeight=c.fn.scrollbar.contentHeight(this.pane);this.props.handleHeight=this.opts.handleHeight=="auto"?Math.max(Math.ceil(this.props.containerHeight*this.props.handleContainerHeight/this.props.contentHeight),this.opts.handleMinHeight):this.opts.handleHeight;this.handle.height(this.props.handleHeight);this.handle.height(2*this.handle.height()-this.handle.outerHeight(true));this.props.handlePosition={min:0,max:this.props.handleContainerHeight-this.props.handleHeight};this.props.handleContentRatio=(this.props.contentHeight-this.props.containerHeight)/(this.props.handleContainerHeight-this.props.handleHeight);if(this.handle.top==undefined){this.handle.top=0}else{this.handle.top=-1*this.pane.top/this.props.handleCont
|