SHIP IT! :shipit:
This commit is contained in:
parent
efa0697c3a
commit
8c99148381
4 changed files with 119 additions and 2 deletions
5
jquery.readtime.min.js
vendored
Normal file
5
jquery.readtime.min.js
vendored
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue