| [303bfc4] | 1 | <!DOCTYPE html>
|
|---|
| 2 | <html lang="<%= lang %>">
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta charset="utf-8">
|
|---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|---|
| 6 | <title><%= state.strings.title %></title>
|
|---|
| 7 | <link rel="manifest" href="/ward/manifest.webmanifest">
|
|---|
| 8 | <link rel="icon" href="/ward/icon.svg" type="image/svg+xml">
|
|---|
| 9 | <meta name="theme-color" content="#5a32e6">
|
|---|
| 10 | <link rel="stylesheet" href="/ward/app.css">
|
|---|
| 11 | </head>
|
|---|
| 12 | <body>
|
|---|
| 13 | <main id="app">
|
|---|
| 14 | <h1><%= state.strings.title %></h1>
|
|---|
| 15 |
|
|---|
| 16 | <!-- De hulpknop staat BOVENAAN en niet onderaan bij de instellingen.
|
|---|
| 17 | Als je hem nodig hebt, moet je niet hoeven zoeken. -->
|
|---|
| 18 | <section class="help">
|
|---|
| 19 | <button id="help-btn" type="button"><%= state.strings.help %></button>
|
|---|
| 20 | <p class="hint" id="help-hint"></p>
|
|---|
| 21 | </section>
|
|---|
| 22 |
|
|---|
| [a5a6249] | 23 | <section id="feed">
|
|---|
| 24 | <h2><%= state.strings.feed %></h2>
|
|---|
| 25 | <div class="cards" id="card-list"></div>
|
|---|
| 26 | <p class="empty" id="feed-empty" hidden><%= state.strings.feedEmpty %></p>
|
|---|
| 27 | </section>
|
|---|
| 28 |
|
|---|
| [303bfc4] | 29 | <section id="guardians">
|
|---|
| 30 | <h2><%= state.strings.guardians %></h2>
|
|---|
| 31 | <ul class="list" id="guardian-list"></ul>
|
|---|
| 32 | <p class="empty" id="guardians-empty" hidden><%= state.strings.noGuardians %></p>
|
|---|
| 33 | </section>
|
|---|
| 34 |
|
|---|
| 35 | <section id="offers" hidden>
|
|---|
| 36 | <h2><%= state.strings.offers %></h2>
|
|---|
| 37 | <ul class="list" id="offer-list"></ul>
|
|---|
| 38 | </section>
|
|---|
| 39 |
|
|---|
| 40 | <section id="waiting" hidden>
|
|---|
| 41 | <h2><%= state.strings.waiting %></h2>
|
|---|
| 42 | <ul class="list" id="waiting-list"></ul>
|
|---|
| 43 | </section>
|
|---|
| 44 | </main>
|
|---|
| 45 |
|
|---|
| [a5a6249] | 46 | <!-- De reddingsboei zweeft boven de pagina en is sleepbaar, net als in
|
|---|
| 47 | Shaer. Een knop, geen plaatje: dan werkt hij ook met een toetsenbord en
|
|---|
| 48 | leest een schermlezer hem voor. -->
|
|---|
| 49 | <button id="buoy" type="button" aria-describedby="buoy-hint">🛟</button>
|
|---|
| 50 | <p id="buoy-hint" class="sr-only"><%= state.strings.buoyHint %></p>
|
|---|
| 51 |
|
|---|
| 52 | <dialog id="help-dialog">
|
|---|
| 53 | <form method="dialog">
|
|---|
| 54 | <h2 id="help-title"></h2>
|
|---|
| 55 | <label for="help-words"><%= state.strings.helpWords %></label>
|
|---|
| 56 | <textarea id="help-words" rows="3" maxlength="500"></textarea>
|
|---|
| 57 | <menu>
|
|---|
| 58 | <button value="cancel"><%= state.strings.cancel %></button>
|
|---|
| 59 | <button id="help-send" value="send" class="primary"><%= state.strings.helpSend %></button>
|
|---|
| 60 | </menu>
|
|---|
| 61 | </form>
|
|---|
| 62 | </dialog>
|
|---|
| 63 |
|
|---|
| [303bfc4] | 64 | <!-- De begintoestand reist als JSON mee, zodat de pagina meteen compleet is
|
|---|
| 65 | en niet eerst leeg staat te wachten op een fetch. Geen inline script:
|
|---|
| 66 | CSP staat dat niet toe, dus het gaat als data door een script-tag met
|
|---|
| 67 | een type dat de browser niet uitvoert. -->
|
|---|
| 68 | <script type="application/json" id="ward-state"><%- JSON.stringify(state) %></script>
|
|---|
| 69 | <script src="/ward/app.js" defer></script>
|
|---|
| 70 | </body>
|
|---|
| 71 | </html>
|
|---|