commit d085c2001a7c73414411d3c7e51329c44f7c811b
parent 65694e35dea38e8b353baadba8c29795074e43cd
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Tue, 24 Nov 2020 01:17:29 +0100
Explain script purpose
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/actualités.html b/actualités.html
@@ -225,6 +225,8 @@
<!-- TODO: prevent scroll when clicking on overflowing details -->
<script>
+ // When JS is enabled, hide concert details by default, and
+ // allow the user to display concerts selectively.
var detailsStyle = document.createElement('style');
document.head.appendChild(detailsStyle);
detailsStyle.sheet.insertRule('.details:not(.active) {display:none}');