From f5f793124fe7ae9950b0fd9457374946b3b6c294 Mon Sep 17 00:00:00 2001 From: rekado Date: Thu, 24 Jan 2013 17:05:17 +0800 Subject: use Hakyll instead of middleman --- js/deobfuscate.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 js/deobfuscate.js (limited to 'js/deobfuscate.js') diff --git a/js/deobfuscate.js b/js/deobfuscate.js new file mode 100644 index 0000000..ef8d60b --- /dev/null +++ b/js/deobfuscate.js @@ -0,0 +1,9 @@ +var deobfuscate = function(s) { + return s.split('').map(function(n){return String.fromCharCode(n.charCodeAt(0)-1);}).join(''); +}; +$(document).ready(function() { + $('.obfuscated').each(function() { + var fixed = deobfuscate( $(this).text() ); + $(this).text(fixed); + }); +}); -- cgit v1.2.3