quatuorbellefeuille.com

Content, build scripts and admin scripts for the Bellefeuille Quartet website.
git clone https://git.kevinlegouguec.net/quatuorbellefeuille.com
Log | Files | Refs

commit 65694e35dea38e8b353baadba8c29795074e43cd
parent 1efc3082a3ec64e71ab4a6b5ed290d9473e77bc9
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Tue, 24 Nov 2020 01:05:33 +0100

Don't activate details when user wants a new tab or window

I'm just digging my own grave aren't I.

Diffstat:
Mactualités.html | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/actualités.html b/actualités.html @@ -234,7 +234,10 @@ document.querySelector(anchor).classList.add('active'); document.querySelectorAll('.event a').forEach((link) => { - link.addEventListener('click', function() { + link.addEventListener('click', function(click) { + if (click.ctrlKey || click.shiftKey) + return; + var prev = document.querySelector('.details.active'); if (prev) prev.classList.remove('active');