oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

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).
7import { mountPresenterWindow } from './presenter-window.mjs'
8import { mountSlideWindow } from './slide-window.mjs'
9
10const presenter = document.querySelector('[presenter][data-talk]')
11const surface = document.querySelector('[slides-surface][data-talk]')
12if (presenter) mountPresenterWindow(presenter)
13else if (surface) mountSlideWindow(surface)
14