SHIP IT! :shipit:

This commit is contained in:
Josh Sherman 2014-08-30 10:38:37 -04:00
parent efa0697c3a
commit 8c99148381
4 changed files with 119 additions and 2 deletions

5
jquery.readtime.min.js vendored Normal file
View file

@ -0,0 +1,5 @@
/*
The MIT License - http://opensource.org/licenses/MIT
@link https://github.com/joshtronic/jquery.readtime
*/
(function(b){b.e.h=function(c){c=b.extend({a:"readtime",format:"# min read",b:"time"},c);return this.d(function(){var a=(this.textContent||this.innerText||"").replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n").split(" ").length/275*60,a=a+12*b(this).find("img").length,a=Math.round(a/60),a=c.format.replace(/#/,a),d=document.createElement(c.b);b(d).c(c.a).f(a).g(b(this))})}})(jQuery);