- this.gallery = document.getElementById('gallery');
- put(this.gallery, '-p', 'Under construction.');
- this.add(this.gallery, this.preset.cat ? [this.preset.cat] : this.cats[null]);
+ super.setup();
+ if (this.preset.debug) {
+ put(document.head, 'link', {rel: 'stylesheet', href: '/word/debug.css'});
+ }
+ this.form.innerHTML = '';
+ put(this.form, 'p', 'Under construction.');
+ for (let cat of this.data.root()) {
+ this.add(put(this.form, 'ul.gallery'), [cat]);
+ }