diff --git a/README.md b/README.md index d144e9b1..6b43803b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ PACE ==== -[![Latest Release](https://img.shields.io/github/tag/EatBreatheCode/pace.svg?label=version)](https://github.com/EatBreatheCode/pace/releases) +[![Latest Release](https://img.shields.io/github/tag/CodeByZach/pace.svg?label=version)](https://github.com/CodeByZach/pace/releases) An automatic web page progress bar. -### [Demo](https://eatbreathecode.github.io/pace/) -### [Documentation](https://eatbreathecode.github.io/pace/docs/) +### [Demo](https://codebyzach.github.io/pace/) +### [Documentation](https://codebyzach.github.io/pace/docs/) -Include [pace.js](https://raw.github.com/EatBreatheCode/pace/master/pace.min.js) and the -[theme](https://eatbreathecode.github.io/pace/) css of your choice on your page +Include [pace.js](https://raw.github.com/CodeByZach/pace/master/pace.min.js) and the +[theme](https://codebyzach.github.io/pace/) css of your choice on your page (as early as is possible), and you're done! Pace will automatically monitor your ajax requests, event loop lag, document @@ -66,7 +66,7 @@ define(['pace'], function(pace){ Themes ------ -Pace includes a bunch of [themes](https://eatbreathecode.github.io/pace/) +Pace includes a bunch of [themes](https://codebyzach.github.io/pace/) to get you started. Just include the appropriate css file. Send us a PR with any interesting themes you create. @@ -162,7 +162,7 @@ paceOptions = { You can always trigger a restart manually by calling `Pace.restart()` -See [the source](https://github.com/EatBreatheCode/pace/blob/master/pace.js) for a full list of all options. +See [the source](https://github.com/CodeByZach/pace/blob/master/pace.js) for a full list of all options. API --- @@ -266,7 +266,7 @@ Issues ------ We have obviously not tested this on every website. If you run into an issue, or find a way the automatic -detection could be better, please [create an Issue](https://github.com/EatBreatheCode/pace/issues/new). If you can include a test case, that's even better. +detection could be better, please [create an Issue](https://github.com/CodeByZach/pace/issues/new). If you can include a test case, that's even better. Credits ------- diff --git a/pace-theme-default.css b/pace-theme-default.css index 8331bf99..d52cbe25 100644 --- a/pace-theme-default.css +++ b/pace-theme-default.css @@ -1,6 +1,6 @@ /*! * pace.js v1.2.1 | Default theme - * https://github.com/EatBreatheCode/pace/ + * https://github.com/CodeByZach/pace/ * Licensed MIT © HubSpot, Inc. */ .pace { diff --git a/pace-theme-default.min.css b/pace-theme-default.min.css index 24085802..1ba1cae8 100644 --- a/pace-theme-default.min.css +++ b/pace-theme-default.min.css @@ -1,6 +1,6 @@ /*! * pace.js v1.2.1 | Default theme - * https://github.com/EatBreatheCode/pace/ + * https://github.com/CodeByZach/pace/ * Licensed MIT © HubSpot, Inc. */ .pace{-webkit-pointer-events:none;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.pace-inactive{display:none}.pace .pace-progress{background:#d72630;position:fixed;z-index:2000;top:0;right:100%;width:100%;height:2px} diff --git a/pace.js b/pace.js index 6abc88e5..2038761f 100644 --- a/pace.js +++ b/pace.js @@ -1,6 +1,6 @@ /*! * pace.js v1.2.3 - * https://github.com/EatBreatheCode/pace/ + * https://github.com/CodeByZach/pace/ * Licensed MIT © HubSpot, Inc. */ (function() { diff --git a/pace.min.js b/pace.min.js index d9cb22b2..40c74bd5 100644 --- a/pace.min.js +++ b/pace.min.js @@ -1,6 +1,6 @@ /*! * pace.js v1.2.3 - * https://github.com/EatBreatheCode/pace/ + * https://github.com/CodeByZach/pace/ * Licensed MIT © HubSpot, Inc. */ (function(){function o(t,e){return function(){return t.apply(e,arguments)}}var u,c,i,n,y,t,l,v,r,s,a,e,p,w,b,h,f,d,g,m,k,S,q,x,L,P,T,R,j,O,E,M,A,C,N,_,F,U,W,X,D,H,I,z,G,B=[].slice,J={}.hasOwnProperty,K=function(t,e){for(var n in e)J.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},Q=[].indexOf||function(t){for(var e=0,n=this.length;e\n
\n\n
',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},Z.prototype.finish=function(){var t=this.getElement();return t.className=t.className.replace("pace-active","pace-inactive"),document.body.className=document.body.className.replace("pace-running ","pace-done ")},Z.prototype.update=function(t){return this.progress=t,y.trigger("progress",t),this.render()},Z.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){n=t}return this.el=void 0},Z.prototype.render=function(){var t,e,n,r,s,o,i;if(null==document.querySelector(P.target))return!1;for(t=this.getElement(),r="translate3d("+this.progress+"%, 0, 0)",s=0,o=(i=["webkitTransform","msTransform","transform"]).length;sP.eventLag.sampleCount&&o.shift(),e=p(o),++s>=P.eventLag.minSamples&&ethis.progress&&(this.progress+=this.catchup*t),e=1-Math.pow(this.progress/100,P.easeFactor),this.progress+=e*this.rate*t,this.progress=Math.min(this.lastProgress+P.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},v=ot,b=e=N=w=O=C=null,y.running=!1,S=function(){if(P.restartOnPushState)return y.restart()},null!=window.history.pushState&&(H=window.history.pushState,window.history.pushState=function(){return S(),H.apply(window.history,arguments)}),null!=window.history.replaceState&&(z=window.history.replaceState,window.history.replaceState=function(){return S(),z.apply(window.history,arguments)}),l={ajax:u,elements:G,document:K,eventLag:m},(x=function(){var t,e,n,r,s,o,i,a;for(y.sources=C=[],e=0,r=(o=["ajax","elements","document","eventLag"]).length;e