4 button.btn.btn-xs.btn-default(onclick="showEmail(this, '"+e+"', '"+k+"')") Show Email
7 .col-md-8.col-md-offset-2
10 if contacts.length == 0
13 each contact in contacts
15 p.text-muted= contact.title
16 +email(contact.email, contact.emkey)
21 script(type="text/javascript").
22 function showEmail(btn, email, key) {
23 email = unescape(email);
25 var dest = new Array(email.length);
26 for (var i = 0; i < email.length; i++) {
27 dest[i] = String.fromCharCode(email.charCodeAt(i) ^ key.charCodeAt(i % key.length));
29 email = dest.join("");
30 $("<a/>").attr("href", "mailto:" + email)