[Web] Rot announcements
parent
0dfb59e912
commit
d3d929222f
|
@ -186,7 +186,7 @@ $(document).ready(function() {
|
|||
|
||||
<div class="container footer">
|
||||
<?php if (!empty($UI_TEXTS['ui_footer'])) { ?>
|
||||
<hr><span class="footer-text-enc"><?=str_rot13($UI_TEXTS['ui_footer']);?></span>
|
||||
<hr><span class="rot-enc"><?=str_rot13($UI_TEXTS['ui_footer']);?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -33,7 +33,7 @@ $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
|
|||
<div class="panel-body">
|
||||
<div class="text-center mailcow-logo"><img src="<?=($main_logo = customize('get', 'main_logo')) ? $main_logo : '/img/cow_mailcow.svg';?>" alt="mailcow"></div>
|
||||
<?php if (!empty($UI_TEXTS['ui_announcement_text']) && in_array($UI_TEXTS['ui_announcement_type'], array('info', 'warning', 'danger')) && $UI_TEXTS['ui_announcement_active'] == 1) { ?>
|
||||
<div class="alert alert-<?=$UI_TEXTS['ui_announcement_type'];?>"><?=$UI_TEXTS['ui_announcement_text'];?></div>
|
||||
<div class="alert alert-<?=$UI_TEXTS['ui_announcement_type'];?> rot-enc"><?=str_rot13($UI_TEXTS['ui_announcement_text']);?></div>
|
||||
<?php } ?>
|
||||
<legend><?= isset($_SESSION['oauth2_request']) ? $lang['oauth2']['authorize_app'] : $UI_TEXTS['main_name'];?></legend>
|
||||
<?php
|
||||
|
|
|
@ -29,8 +29,8 @@ $(document).ready(function() {
|
|||
return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13))
|
||||
})
|
||||
}
|
||||
$(".footer-text-enc").html(function(){
|
||||
return str_rot13($(".footer-text-enc").html())
|
||||
$(".rot-enc").html(function(){
|
||||
return str_rot13($(this).html())
|
||||
});
|
||||
// https://stackoverflow.com/questions/4399005/implementing-jquerys-shake-effect-with-animate
|
||||
function shake(div,interval,distance,times) {
|
||||
|
|
Loading…
Reference in New Issue