1 var rot13 = function(s){
2 return s.replace(/[a-zA-Z]/g, function(c){
3 return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);
10 $(".mangled").each(function() {
12 var email = rot13($this.attr('data-addr1')) + '@' +
13 rot13($this.attr('data-addr2'));
14 $this.attr('href', "mailto:" + email);