(function(a){function b(a){var b="";if(a=="lowerLetter"){b="abcdefghijklmnopqrstuvwxyz0123456789"}else if(a=="upperLetter"){b="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"}else if(a=="symbol"){b=",.?/\\(^)![]{}*&^%$#'\""}var c=b.split("");return c[Math.floor(Math.random()*c.length)]}a.fn.shuffleLetters=function(c){var d=a.extend({step:32,fps:25,text:"",callback:function(){}},c);return this.each(function(){var c=a(this),e="";if(c.data("animated")){return true}c.data("animated",true);if(d.text){e=d.text.split("")}else{e=c.text().split("")}var f=[],g=[];for(var h=0;h<e.length;h++){var i=e[h];if(i==" "){f[h]="space";continue}else if(/[a-z]/.test(i)){f[h]="lowerLetter"}else if(/[A-Z]/.test(i)){f[h]="upperLetter"}else{f[h]="symbol"}g.push(h)}c.html("");(function j(a){var h,i=g.length,k=e.slice(0);if(a>i){c.data("animated",false);d.callback(c);return}for(h=Math.max(a,0);h<i;h++){if(h<a+d.step){k[g[h]]=b(f[g[h]])}else{k[g[h]]=""}}c.text(k.join(""));setTimeout(function(){j(a+1)},1e3/d.fps)})(-d.step)})}})(jQuery);$(function(){var a=$(".shuffle");userText=$("#userText");a.shuffleLetters();setTimeout(function(){a.shuffleLetters({text:"vuelve luego!"})},6e3);setTimeout(function(){a.shuffleLetters({text:"K."})},12e3);setTimeout(function(){a.shuffleLetters({text:": - )"})},18e3);setTimeout(function(){a.shuffleLetters({text:"email@kikeriesco.com"})},2e4)})
