| 1 | {{/* presenter_pick — GET /p/{session}/notes?pick=1: the presenter |
| 2 | window's slide picker with scripts off (P4). |
| 3 | |
| 4 | Every slide in the talk, parked ones left out and full-only ones |
| 5 | marked, each a one-button form styled as a link: going to a slide |
| 6 | moves the talk, so it cannot be a GET. A press from here lands on |
| 7 | the window (pressLanding drops ?pick). The slide on screen now is a |
| 8 | plain link back to the window, which moves nothing. |
| 9 | |
| 10 | Like the window it never scrolls as a page; the list scrolls inside |
| 11 | itself. */}} |
| 12 | {{define "page-head"}}<link rel="stylesheet" href="{{asset "static/presenter.css"}}">{{end}} |
| 13 | {{define "presenter-fields"}}<input type="hidden" name="op" value="{{.Op}}"> |
| 14 | {{- with .Slide}}<input type="hidden" name="slide" value="{{.}}">{{end}} |
| 15 | {{- with .Token}}<input type="hidden" name="t" value="{{.}}">{{end}} |
| 16 | <input type="hidden" name="press" value="{{.Press}}">{{end}} |
| 17 | {{define "main"}}{{$L := localizer $}}<main id="main" presenter-pick> |
| 18 | <div presenter-pick-head> |
| 19 | <h1>{{.Title}}</h1> |
| 20 | <p presenter-pick-count>{{.Count}}</p> |
| 21 | </div> |
| 22 | <ol presenter-pick-list> |
| 23 | {{- range .Items}} |
| 24 | <li> |
| 25 | {{- if .Current}} |
| 26 | <a presenter-pick-item aria-current="true" href="{{$.WindowHref}}"> |
| 27 | <img src="{{.Thumb}}" alt="" loading="lazy" width="1920" height="1080"> |
| 28 | <span><b>{{.Number}}</b>{{.Title}}{{if .Full}} <em>· {{$.FullLabel}}</em>{{end}}</span> |
| 29 | </a> |
| 30 | {{- else}} |
| 31 | <form method="post" action="{{$.Action}}" data-busy="false"> |
| 32 | {{template "presenter-fields" (withL (.Op) $L)}} |
| 33 | <button type="submit" presenter-pick-item> |
| 34 | <img src="{{.Thumb}}" alt="" loading="lazy" width="1920" height="1080"> |
| 35 | <span><b>{{.Number}}</b>{{.Title}}{{if .Full}} <em>· {{$.FullLabel}}</em>{{end}}</span> |
| 36 | </button> |
| 37 | </form> |
| 38 | {{- end}} |
| 39 | </li> |
| 40 | {{- end}} |
| 41 | </ol> |
| 42 | </main>{{end}} |
| 43 | {{define "content"}}{{end}} |
| 44 | |