From ae9ab090fc443799180b591e14015c74f241f962 Mon Sep 17 00:00:00 2001
From: Tom Smeding <t.j.smeding@uu.nl>
Date: Wed, 9 Apr 2025 21:14:38 +0200
Subject: unicode: Clicky table headings with <details>

---
 modules/unicode/index.html | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/modules/unicode/index.html b/modules/unicode/index.html
index fb46ba2..25eba88 100644
--- a/modules/unicode/index.html
+++ b/modules/unicode/index.html
@@ -24,10 +24,14 @@ body {
 .table > div > span.space-spacer {
 	width: 1em;
 }
-/* .table {
-	max-height: 300px;
-	overflow-y: scroll;
-} */
+h3.table {
+	display: inline-block;
+	margin: 10px 0 10px 0;
+	user-select: none;
+}
+details {
+	margin-top: 15px;
+}
 .invisible {
 	display: none;
 }
@@ -206,10 +210,9 @@ window.addEventListener("load", function() {
 		</div>
 	</div>
 
-	<h3>Codepoints <span id="codepoints_num"></span></h3>
-	<div id="codepoints" class="table"></div>
+	<details open><summary><h3 class="table">Codepoints <span id="codepoints_num"></span></h3></summary><div id="codepoints" class="table"></div></details>
 
-	<h3>Found in descriptions <span id="search_num"></span></h3>
-	<div id="search" class="table"></div>
+	<details open><summary><h3 class="table">Found in descriptions <span id="search_num"></span></h3></summary><div id="search" class="table"></div></details>
 </body>
 </html>
+<!-- vim: set sw=4 ts=4 noet: -->
-- 
cgit v1.2.3-70-g09d2