word/finder: prepare category references
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 11 Jul 2022 00:52:50 +0000 (02:52 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 9 Feb 2023 17:54:07 +0000 (18:54 +0100)
word/finder.js

index 630db8e8f8ff21af26f979f17742658e32f91988..0f97c0f4258a264ff67d635a6471c7c2f6bd2b43 100644 (file)
@@ -29,7 +29,10 @@ class WordFinder extends WordQuiz {
                        if (word.subs.length) {
                                // delve into subcategory
                                put(worditem, '.parent');
-                               this.add(put(worditem, 'ul'), word.subs);
+                               const expansion = put(worditem, 'ul');
+                               //expansion.style.display = 'none';
+                               this.add(expansion, word.subs);
+                               //worditem.onclick = () => expansion.style.display = '';
                        }
                        if (this.preset.debug) {
                                put(figitem, '[title=$]', `id ${ref} level ${word.level}`);