| [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>
|
|---|
| [084b046] | 13 | <!-- De hemel ligt ACHTER alles en draait altijd, ook in kaartenstand: de
|
|---|
| 14 | kaarten vallen straks weg en dan is hij er gewoon nog, precies zoals in
|
|---|
| 15 | Shaer. Aria-hidden want hij is decor tot je hem aanzet. -->
|
|---|
| 16 | <canvas id="sky" aria-hidden="true"></canvas>
|
|---|
| 17 |
|
|---|
| [303bfc4] | 18 | <main id="app">
|
|---|
| [084b046] | 19 | <div class="topbar">
|
|---|
| 20 | <h1><%= state.strings.title %></h1>
|
|---|
| 21 | <button id="mode" type="button" aria-pressed="false"><%= state.strings.toSky %></button>
|
|---|
| 22 | </div>
|
|---|
| [303bfc4] | 23 |
|
|---|
| 24 | <!-- De hulpknop staat BOVENAAN en niet onderaan bij de instellingen.
|
|---|
| 25 | Als je hem nodig hebt, moet je niet hoeven zoeken. -->
|
|---|
| 26 | <section class="help">
|
|---|
| 27 | <button id="help-btn" type="button"><%= state.strings.help %></button>
|
|---|
| 28 | <p class="hint" id="help-hint"></p>
|
|---|
| 29 | </section>
|
|---|
| 30 |
|
|---|
| [a5a6249] | 31 | <section id="feed">
|
|---|
| 32 | <h2><%= state.strings.feed %></h2>
|
|---|
| 33 | <div class="cards" id="card-list"></div>
|
|---|
| 34 | <p class="empty" id="feed-empty" hidden><%= state.strings.feedEmpty %></p>
|
|---|
| 35 | </section>
|
|---|
| 36 |
|
|---|
| [303bfc4] | 37 | <section id="guardians">
|
|---|
| 38 | <h2><%= state.strings.guardians %></h2>
|
|---|
| 39 | <ul class="list" id="guardian-list"></ul>
|
|---|
| 40 | <p class="empty" id="guardians-empty" hidden><%= state.strings.noGuardians %></p>
|
|---|
| 41 | </section>
|
|---|
| 42 |
|
|---|
| 43 | <section id="offers" hidden>
|
|---|
| 44 | <h2><%= state.strings.offers %></h2>
|
|---|
| 45 | <ul class="list" id="offer-list"></ul>
|
|---|
| 46 | </section>
|
|---|
| 47 |
|
|---|
| 48 | <section id="waiting" hidden>
|
|---|
| 49 | <h2><%= state.strings.waiting %></h2>
|
|---|
| 50 | <ul class="list" id="waiting-list"></ul>
|
|---|
| 51 | </section>
|
|---|
| 52 | </main>
|
|---|
| 53 |
|
|---|
| [a5a6249] | 54 | <!-- De reddingsboei zweeft boven de pagina en is sleepbaar, net als in
|
|---|
| 55 | Shaer. Een knop, geen plaatje: dan werkt hij ook met een toetsenbord en
|
|---|
| 56 | leest een schermlezer hem voor. -->
|
|---|
| 57 | <button id="buoy" type="button" aria-describedby="buoy-hint">🛟</button>
|
|---|
| 58 | <p id="buoy-hint" class="sr-only"><%= state.strings.buoyHint %></p>
|
|---|
| 59 |
|
|---|
| 60 | <dialog id="help-dialog">
|
|---|
| 61 | <form method="dialog">
|
|---|
| 62 | <h2 id="help-title"></h2>
|
|---|
| 63 | <label for="help-words"><%= state.strings.helpWords %></label>
|
|---|
| 64 | <textarea id="help-words" rows="3" maxlength="500"></textarea>
|
|---|
| 65 | <menu>
|
|---|
| 66 | <button value="cancel"><%= state.strings.cancel %></button>
|
|---|
| 67 | <button id="help-send" value="send" class="primary"><%= state.strings.helpSend %></button>
|
|---|
| 68 | </menu>
|
|---|
| 69 | </form>
|
|---|
| 70 | </dialog>
|
|---|
| 71 |
|
|---|
| [303bfc4] | 72 | <!-- De begintoestand reist als JSON mee, zodat de pagina meteen compleet is
|
|---|
| 73 | en niet eerst leeg staat te wachten op een fetch. Geen inline script:
|
|---|
| 74 | CSP staat dat niet toe, dus het gaat als data door een script-tag met
|
|---|
| 75 | een type dat de browser niet uitvoert. -->
|
|---|
| 76 | <script type="application/json" id="ward-state"><%- JSON.stringify(state) %></script>
|
|---|
| [084b046] | 77 | <!-- Module, zodat app.js het hemelmodel kan importeren. -->
|
|---|
| 78 | <script type="module" src="/ward/app.js"></script>
|
|---|
| [303bfc4] | 79 | </body>
|
|---|
| 80 | </html>
|
|---|