word/finder: .large images with multiple subcategories
[sheet.git] / word / finder.js
index b1db273415ae27e51f7c40026c014673fd115543..a45dee4a06db6e3c7fc1c6fc4b808d4759dd9755 100644 (file)
@@ -14,6 +14,10 @@ class WordFinder extends WordQuiz {
                                        innerHTML: html,
                                });
                        }
+                       let levelpart = level <= 1 && this.cats[ref] && this.cats[ref].length > 1;
+                       if (levelpart) {
+                               put(worditem, '.large');
+                       }
                        if (this.cats[ref]) {
                                // delve into subcategory
                                put(worditem, '.parent');