Skip to content

Commit

Permalink
Message lisible si pas de JS
Browse files Browse the repository at this point in the history
  • Loading branch information
teymour committed Feb 21, 2022
1 parent 36efc69 commit 1c2bf2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/templates/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<div id="corps_page">
<div class="contenu_page">
<?php if (myTools::hasAnnounce()) : ?>
<div id="announce"><h2 style="<?php if (!isset($_GET['nodelay']) || !$_GET['nodelay']){echo "display: none;"; }else{echo "display: block;";}?>">
<div id="announce"><h2>
<?php if (myTools::getAnnounceLink()): ?>
<a target="_blank" href="<?php echo myTools::getAnnounceLink(); ?>"><?php echo myTools::getAnnounceText(); ?> : <span>Cliquez ici !</span></a>
<?php else: ?>
Expand All @@ -138,6 +138,7 @@
<?php if (!isset($_GET['nodelay']) || !$_GET['nodelay']): ?>
<script type="text/javascript">
$(document).ready(function() {
$('#announce h2').fadeOut();
$('#announce h2').delay(1500).fadeIn('slow');
});
</script>
Expand Down

0 comments on commit 1c2bf2a

Please sign in to comment.