diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-14 12:37:44 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-14 12:37:44 +0100 |
| commit | 75df235ed0876b5c387ced4fee0138f6c8f8f999 (patch) | |
| tree | 76c651e398f23cb48923c842a62c9a807e296156 /scripts | |
| parent | 021ce5381e6b14ec01f1f218774370ab99dd786c (diff) | |
| download | quatuorbellefeuille.com-75df235ed0876b5c387ced4fee0138f6c8f8f999.tar.xz | |
Rename some CSS classes
Also fix JS while at it 😗🎵
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/concerts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/concerts.js b/scripts/concerts.js index fb45819..c4a07f3 100644 --- a/scripts/concerts.js +++ b/scripts/concerts.js @@ -13,7 +13,7 @@ if (anchor.match(/#concert-/)) { .classList.add('active'); pHint.style.display = 'none'; } -document.querySelectorAll('a.event').forEach((link) => { +document.querySelectorAll('.event > a.thumbnail').forEach((link) => { link.addEventListener('click', function(click) { if (click.ctrlKey || click.shiftKey) return; @@ -24,7 +24,7 @@ document.querySelectorAll('a.event').forEach((link) => { var id = link.attributes['href'].value; document.querySelector(id).classList.add('active'); - prev = document.querySelector('.eventcontainer.active'); + prev = document.querySelector('.event.active'); if (prev) prev.classList.remove('active'); link.parentNode.classList.add('active'); |
