AECC database project.
1import { registerIncludeComponent } from "./components/include.js";
2
3function app() {
4 registerIncludeComponent();
5}
6
7document.addEventListener("DOMContentLoaded", app);
8
9var last = 'buttons';
10const show = i => document.getElementById(i).hidden = false;
11const hide = i => document.getElementById(i).hidden = true;
12
13function next(i) {
14 hide(last);
15 last = i;
16 show(i);
17}
18
19function restart() {
20 show('buttons');
21 hide(last);
22 last = 'buttons';
23}