From f2559fee5f7caeaa773fdd8708f11e2441976039 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Mon, 8 Mar 2021 19:05:58 +0100 Subject: Remove hint to click for more info once a concert is displayed --- "actualit\303\251s.html" | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git "a/actualit\303\251s.html" "b/actualit\303\251s.html" index fd5c5f2..357e3c1 100644 --- "a/actualit\303\251s.html" +++ "b/actualit\303\251s.html" @@ -17,7 +17,7 @@
-

Cliquez sur un concert pour obtenir plus d'informations.

+

Cliquez sur un concert pour obtenir plus d'informations.

Samedi 3 avril 2021

@@ -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'; }); }); -- cgit v1.2.3