­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ if("undefined"==typeof jQuery)throw new Error("jquery");!function(i){function n(i,n){this.el=i,this.options=n,this._init()}n.prototype._init=function(){var n=i("body").height()-i(window).height(),t=this.options,o={position:"fixed",top:0,left:0,width:"100%",height:"2px",backgroundColor:"#eee",zIndex:9999},e={width:0,backgroundColor:"#50bcb6",height:"100%",transitionProperty:"width",transitionDuration:".3s",transitionTimingFunction:"linear"},r=["size","position","wapperBg"].concat(["innerBg","duration","effect"]);for(var s in t)switch(r.includes(s)||delete t[s],s){case"size":o.height=t.size;break;case"position":"bottom"===t.position&&(delete o.top,o.bottom=0);break;case"wapperBg":o.backgroundColor=t.wapperBg;break;case"innerBg":e.backgroundColor=t.innerBg;break;case"duration":e.transitionDuration=t.duration;break;case"effect":e.transitionTimingFunction=t.effect}this.el.empty().css(o),i('
').appendTo(this.el).css(e),i(window).on("scroll",(function(t){window.requestAnimationFrame((function(){var t=Math.max(0,Math.min(1,i(window).scrollTop()/n));i(".inner").show().css("width",100*t+"%")}))}))},i.fn.progress=function(t){return this.each((function(o){new n(i(this),t||null)})),this}}(jQuery);