1 class WordFinder extends WordQuiz {
4 const [title, level, imgid, subs] = this.data[ref];
5 const worditem = put(catitem, 'li');
6 const figitem = put(worditem, 'figure');
8 put(figitem, 'img[src=$]', `/data/word/32/${imgid}.jpg`);
11 let html = title.replace(/\/(.*)/, ' <small>($1)</small>');
12 put(figitem, 'figcaption', {
16 if (level <= 1 && subs.length >= 2) {
17 put(worditem, '.large');
20 // delve into subcategory
21 put(worditem, '.parent');
22 this.add(put(worditem, 'ul'), subs);
28 this.gallery = document.getElementById('gallery');
29 this.gallery.innerHTML = '';
30 put(this.gallery, 'p', 'Under construction.');
31 for (let cat of this.preset.cat ? [this.preset.cat] : this.data[''][3]) {
32 this.add(put(this.gallery, 'ul.gallery'), [cat]);