芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/fixto.min.js
var fixto=function(s,t,r){n={getAll:function(t){return r.defaultView.getComputedStyle(t)},get:function(t,i){return this.getAll(t)[i]},toFloat:function(t){return parseFloat(t,10)||0},getFloat:function(t,i){return this.toFloat(this.get(t,i))},_getAllCurrentStyle:function(t){return t.currentStyle}},r.documentElement.currentStyle&&(n.getAll=n._getAllCurrentStyle);var h=n,o=(i.prototype={replace:function(){var t=this.replacer.style,i=h.getAll(this.element);t.width=this._width(),t.height=this._height(),t.marginTop=i.marginTop,t.marginBottom=i.marginBottom,t.marginLeft=i.marginLeft,t.marginRight=i.marginRight,t.cssFloat=i.cssFloat,t.styleFloat=i.styleFloat,t.position=i.position,t.top=i.top,t.right=i.right,t.bottom=i.bottom,t.left=i.left,t.display=i.display},hide:function(){this.replacer.style.display="none"},_width:function(){return this.element.getBoundingClientRect().width+"px"},_widthOffset:function(){return this.element.offsetWidth+"px"},_height:function(){return this.element.getBoundingClientRect().height+"px"},_heightOffset:function(){return this.element.offsetHeight+"px"},destroy:function(){for(var t in s(this.replacer).remove(),this)this.hasOwnProperty(t)&&(this[t]=null)}},r.documentElement.getBoundingClientRect().width||(i.prototype._width=i.prototype._widthOffset,i.prototype._height=i.prototype._heightOffset),{MimicNode:i,computedStyle:h});function i(t){this.element=t,this.replacer=r.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),t.parentNode.insertBefore(this.replacer,t)}function e(){this._vendor=null}e.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:function(t,i){return t.jsPrefix+i[0].toUpperCase()+i.substr(1)},_prefixValue:function(t,i){return t.cssPrefix+i},_valueSupported:function(t,i,e){try{return e.style[t]=i,e.style[t]===i}catch(t){return!1}},propertySupported:function(t){return void 0!==r.documentElement.style[t]},getJsProperty:function(t){if(this.propertySupported(t))return t;if(this._vendor)return this._prefixJsProperty(this._vendor,t);var i,e;for(e in this._vendors)if(i=this._prefixJsProperty(this._vendors[e],t),this.propertySupported(i))return this._vendor=this._vendors[e],i;return null},getCssValue:function(t,i){var e,o,n=r.createElement("div"),s=this.getJsProperty(t);if(this._valueSupported(s,i,n))return i;if(this._vendor&&(e=this._prefixValue(this._vendor,i),this._valueSupported(s,e,n)))return e;for(o in this._vendors)if(e=this._prefixValue(this._vendors[o],i),this._valueSupported(s,e,n))return this._vendor=this._vendors[o],e;return null}};var l,n=new e,p=n.getJsProperty("transform");var d,a=n.getCssValue("position","sticky"),f=n.getCssValue("position","fixed");function c(t,i,e){this.child=t,this._$child=s(t),this.parent=i,this.options={className:"fixto-fixed",top:0,mindViewport:!1},this._setOptions(e)}function u(t,i,e){c.call(this,t,i,e),this._replacer=new o.MimicNode(t),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHeight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function _(t,i,e){c.call(this,t,i,e),this.start()}"Microsoft Internet Explorer"===navigator.appName&&(d=parseFloat(navigator.appVersion.split("MSIE")[1])),c.prototype={_mindtop:function(){var t=0;if(this._$mind)for(var i,e,o=0,n=this._$mind.length;o
this._parentBottom||this._scrollTop
this._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop())return!(this.options.mindViewport&&!this._isViewportAvailable())},_isViewportAvailable:function(){var t=h.getAll(this.child);return this._viewportHeight>this.child.offsetHeight+h.toFloat(t.marginTop)+h.toFloat(t.marginBottom)},_adjust:function(){var t=0,i=this._mindtop(),e=0,o=h.getAll(this.child),n=null;l&&(n=this._getContext())&&(t=Math.abs(n.getBoundingClientRect().top)),e=this._parentBottom-this._scrollTop-(this.child.offsetHeight+h.toFloat(o.marginBottom)+i+this.options.top),this.child.style.top=(e=0