diff options
author | rekado <rekado@elephly.net> | 2015-07-26 09:31:05 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2015-07-26 09:31:05 +0200 |
commit | 3e63a5fcb26ab6caee952f7294d174543c7b37e7 (patch) | |
tree | 8d45c6ab051f0208c8ca9a37e9844c6cd58a1309 /static/js/deobfuscate.js | |
parent | 898c1db47405e13c34c6a3fee0f913fd09304e49 (diff) |
Move js to static/js.
Diffstat (limited to 'static/js/deobfuscate.js')
-rw-r--r-- | static/js/deobfuscate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/static/js/deobfuscate.js b/static/js/deobfuscate.js new file mode 100644 index 0000000..ef8d60b --- /dev/null +++ b/static/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); + }); +}); |