CoreFiles by mySites.guru
word-count.js1 lines, 689 bytes, from wordpress-2.8.zip
Raw History Compare with 2.7.1
md5
a74398b6c7a69d86c66f1e2c2e763a36
sha1
3a2ce908bcd1a63b3b69d06109093a60e369af06
sha256
4bdb501a5964d7260ba83235019f4dc664ecf73d08d2a7212f9b096170697c30
(function(a){wpWordCount={init:function(){var b=this,c=0,d=a("#content");a("#wp-word-count").html(wordCountL10n.count.replace(/%d/,'<span id="word-count">0</span>'));b.block=0;b.wc(d.val());d.keyup(function(f){if(f.keyCode==c){return true}if(13==f.keyCode||8==c||46==c){b.wc(d.val())}c=f.keyCode;return true})},wc:function(d){var e=this,c=a("#word-count"),b=0;if(e.block){return}e.block=1;setTimeout(function(){if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ");d=d.replace(/[0-9.(),;:!?%#$¿'"_+=\\/-]*/g,"");d.replace(/\S\s+/g,function(){b++})}c.html(b.toString());setTimeout(function(){e.block=0},2000)},1)}};a(document).ready(function(){wpWordCount.init()})}(jQuery));

The same content is in 47 releases, WordPress 2.8-beta1 to 3.1.4. See them all, or every version of this file.