- this.gallery = document.getElementById('gallery');
- this.gallery.innerHTML = '';
- put(this.gallery, 'p', 'Under construction.');
- for (let cat of this.preset.cat ? [this.preset.cat] : this.data[''][3]) {
- this.add(put(this.gallery, 'ul.gallery'), [cat]);
+ 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]);