Sindbad~EG File Manager

Current Path : /var/www/html/cibahia.sumar.com.py/wp-content/plugins/peepso/assets/js/
Upload File :
Current File : /var/www/html/cibahia.sumar.com.py/wp-content/plugins/peepso/assets/js/image-scale.min.js

/*! image-scale v1.3.2 | ©2012-2013 Nicolas BADIA | Licensed under the MIT license */
!function(e){e.fn.imageScale=function(a){return this.each(function(){var b=e(this),c=b.data("imageScale");if(!c){b.css("opacity",0);var g=b[0].complete,f=e.extend({},e.fn.imageScale.defaults,"object"==typeof a&&a),h=function(){b.data("imageScale",c=new l(this,f));f.rescaleOnResize&&e(window).resize(function(a){c.scheduleScale()});c.scale(!0);var a=f.callback;"function"===typeof a?a(b,c):a&&"object"===typeof a&&a.target[a.action].apply(a.target,[b,c])};g?h.apply(b[0]):b.load(h)}else if("string"==typeof a)c[a]()})};
e.fn.imageScale.defaults={scale:"best-fill",align:"center",parent:null,hideParentOverflow:!0,fadeInDuration:0,rescaleOnResize:!0,callback:null,debug:0};var l=function(a,b){this.options=b;this.element=a;this.$element=e(a);this.elementWidth=a.naturalWidth||a.width;this.elementHeight=a.naturalHeight||a.height;this.$parent=b.parent?b.parent:e(e(a).parent()[0])};e.fn.imageScale.Constructor=l;l.prototype={NONE:"none",FILL:"fill",BEST_FILL:"best-fill",BEST_FIT:"best-fit",BEST_FIT_DOWN_ONLY:"best-fit-down",
ALIGN_LEFT:"left",ALIGN_RIGHT:"right",ALIGN_CENTER:"center",ALIGN_TOP:"top",ALIGN_BOTTOM:"bottom",ALIGN_TOP_LEFT:"top-left",ALIGN_TOP_RIGHT:"top-right",ALIGN_BOTTOM_LEFT:"bottom-left",ALIGN_BOTTOM_RIGHT:"bottom-right",constructor:l,scale:function(a){if(!this._isDestroyed){var b=this.options,c=this.$parent,g=this.$element;a&&(b.hideParentOverflow&&c.css({overflow:"hidden"}),g.css({opacity:1}));this._didScheduleScale=!1;if(!b.rescaleOnResize||this._needUpdate()){var f=c.outerWidth(),h=c.outerHeight(),
e=c.innerWidth(),c=c.innerHeight(),e=f-e,c=h-c,k=g.attr("data-scale"),d=g.attr("data-align"),k=k?k:b.scale,l=d?d:b.align,d=b.fadeInDuration;if(k){this._cacheDestWidth===f&&this._cacheDestHeight===h&&2<b.debug&&console.log("imageScale - DEBUG NOTICE: The parent size hasn't changed: dest width: '"+f+"' - dest height: '"+h+"'.");var m=this.elementWidth,n=this.elementHeight;f&&h&&m&&n?(this._cacheDestWidth=f,this._cacheDestHeight=h,b=this._innerFrameForSize(k,l,m,n,f,h),e&&(b.x-=e/2),c&&(b.y-=c/2),g.css({position:"absolute",
top:b.y+"px",left:b.x+"px",width:b.width+"px",height:b.height+"px","max-width":"none"}),a&&d&&(g.css({display:"none"}),g.fadeIn(d))):0<b.debug&&console.error("imageScale - DEBUG ERROR: The dimensions are incorrect: source width: '"+m+"' - source height: '"+n+"' - dest width: '"+f+"' - dest height: '"+h+"'.")}else 2<b.debug&&console.log("imageScale - DEBUG NOTICE: The scale property is null.")}}},destroy:function(){this._isDestroyed=!0;this.$element.removeData("imageScale")},_innerFrameForSize:function(a,
b,c,g,f,h){var e,k,d;d={x:0,y:0,width:f,height:h};if(a===this.FILL)return d;e=f/c;k=h/g;switch(a){case this.BEST_FILL:a=e>k?e:k;break;case this.BEST_FIT:a=e<k?e:k;break;case this.NONE:a=1;break;default:a!==this.BEST_FIT_DOWN_ONLY&&1<this.options.debug&&console.warn("imageScale - DEBUG WARNING: The scale '"+a+"' was not understood."),a=c>f||g>h?e<k?e:k:1}c*=a;g*=a;d.width=Math.round(c);d.height=Math.round(g);switch(b){case this.ALIGN_LEFT:d.x=0;d.y=h/2-g/2;break;case this.ALIGN_RIGHT:d.x=f-c;d.y=h/
2-g/2;break;case this.ALIGN_TOP:d.x=f/2-c/2;d.y=0;break;case this.ALIGN_BOTTOM:d.x=f/2-c/2;d.y=h-g;break;case this.ALIGN_TOP_LEFT:d.x=0;d.y=0;break;case this.ALIGN_TOP_RIGHT:d.x=f-c;d.y=0;break;case this.ALIGN_BOTTOM_LEFT:d.x=0;d.y=h-g;break;case this.ALIGN_BOTTOM_RIGHT:d.x=f-c;d.y=h-g;break;default:b!==this.ALIGN_CENTER&&1<this.options.debug&&console.warn("imageScale - DEBUG WARNING: The align '"+b+"' was not understood."),d.x=f/2-c/2,d.y=h/2-g/2}return d},_needUpdate:function(){var a=e(window).height()+
" "+e(window).width();return this._lastWindowSize!==a?(this._lastWindowSize=a,!0):!1},scheduleScale:function(){if(!this._didScheduleScale)if(window.requestAnimationFrame){var a=this;this._didScheduleScale=!0;requestAnimationFrame(function(){a.scale()})}else this.scale()},_cacheDestWidth:null,_cacheDestHeight:null,_lastWindowSize:null,_didScheduleScale:null}}(window.jQuery);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists