// jQuery-typing // // Version: 0.2.1 // Updater: Anh Nguyen // Website: https://github.com/anhkind/jquery-typing // // Original: // Website: http://narf.pl/jquery-typing/ // License: public domain // Author: Maciej Konieczny (function(f){f.fn.typing=function(j){return this.each(function(l,k){var g=function(a){e||(e=!0,c.start&&c.start(a,d))},i=function(a,b){e&&(clearTimeout(h),h=setTimeout(function(){e=!1;c.stop&&c.stop(a,d)},0<=b?b:c.delay))},c=f.extend({start:null,stop:null,delay:400},j),d=f(k),b=c.target,e=!1,h;d.on("keypress",b,g);d.on("keydown",b,function(a){(8===a.keyCode||46===a.keyCode)&&g(a)});d.on("keyup",b,i);d.on("blur",b,function(a){i(a,0)})})}})(jQuery);