summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actualités.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/actualités.html b/actualités.html
index fd5c5f2..357e3c1 100644
--- a/actualités.html
+++ b/actualités.html
@@ -17,7 +17,7 @@
</div>
<div id="event-details">
- <p>Cliquez sur un concert pour obtenir plus d'informations.</p>
+ <p class="hint">Cliquez sur un concert pour obtenir plus d'informations.</p>
<div class="details canceled" id="concert-2021-04-03">
<p class="detail date">Samedi 3 avril 2021</p>
@@ -72,11 +72,14 @@
document.head.appendChild(detailsStyle);
detailsStyle.sheet.insertRule('.details:not(.active) {display:none}');
+ var pHint = document.querySelector('p.hint');
+
var anchor = document.location.hash;
if (anchor.match(/#concert-/)) {
document.querySelector(anchor).classList.add('active');
document.querySelector(`a[href="${document.location.hash}"]`)
.classList.add('active');
+ pHint.style.display = 'none';
}
document.querySelectorAll('a.event').forEach((link) => {
link.addEventListener('click', function(click) {
@@ -94,6 +97,8 @@
prev.classList.remove('active');
}
link.classList.add('active');
+
+ pHint.style.display = 'none';
});
});
</script>