diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index b954bca86..a30680f57 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -183,7 +183,7 @@ $(document).ready(function() { diff --git a/data/web/js/build/014-mailcow.js b/data/web/js/build/014-mailcow.js index 266027146..55038eb64 100644 --- a/data/web/js/build/014-mailcow.js +++ b/data/web/js/build/014-mailcow.js @@ -24,7 +24,14 @@ $(document).ready(function() { $(this).closest("form").find('[data-pwgen-field]').attr('type', 'text'); $(this).closest("form").find('[data-pwgen-field]').val(random_passwd); }); - + function str_rot13(str) { + return (str + '').replace(/[a-z]/gi, function(s){ + return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13)) + }) + } + $(".footer-text-enc").html(function(){ + return str_rot13($(".footer-text-enc").html()) + }); // https://stackoverflow.com/questions/4399005/implementing-jquerys-shake-effect-with-animate function shake(div,interval,distance,times) { if(typeof interval === 'undefined') {