Download this file
| 1 | // presenter-entry.mjs — the presenting windows' bundle |
| 2 | // (internal/slides/static/presenter.<hash>.js), wiring and nothing |
| 3 | // else. The presenter window (templates/presenter.html) and the slide |
| 4 | // window of a session with a position (templates/present.html, for |
| 5 | // whoever may drive it) both load it; each page's root says which it is |
| 6 | // and where its talk is (data-talk). |
| 7 | import { mountPresenterWindow } from './presenter-window.mjs' |
| 8 | import { mountSlideWindow } from './slide-window.mjs' |
| 9 | |
| 10 | const presenter = document.querySelector('[presenter][data-talk]') |
| 11 | const surface = document.querySelector('[slides-surface][data-talk]') |
| 12 | if (presenter) mountPresenterWindow(presenter) |
| 13 | else if (surface) mountSlideWindow(surface) |
| 14 | |