| 1 | <!DOCTYPE html> |
| 2 | <html lang="nl"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> |
| 6 | <meta name="apple-mobile-web-app-capable" content="yes"> |
| 7 | <meta name="mobile-web-app-capable" content="yes"> |
| 8 | <meta name="theme-color" content="#0b1020"> |
| 9 | <link rel="icon" href="favicon.ico" sizes="any"> |
| 10 | <title>Meteors</title> |
| 11 | <link rel="stylesheet" href="style.css"> |
| 12 | </head> |
| 13 | <body> |
| 14 | <div id="stars" aria-hidden="true"></div> |
| 15 | <div id="flights-back" aria-hidden="true"></div> |
| 16 | <div id="flights" aria-hidden="true"></div> |
| 17 | |
| 18 | <div id="menu" class="screen"> |
| 19 | <h1>Meteors</h1> |
| 20 | <p class="tagline">Drie op een rij, en je blokjes krijgen raketmotoren.</p> |
| 21 | <button type="button" id="btn-play">Spelen</button> |
| 22 | <button type="button" id="btn-offline" class="btn-secondary">Offline Strijd</button> |
| 23 | <button type="button" id="btn-online" class="btn-secondary">Online spelen</button> |
| 24 | <p id="last-score" class="last-score" hidden>Laatste score: <strong>0</strong></p> |
| 25 | <p class="hint">Sleep blokjes verticaal om ze te wisselen. Trek een blokje boven zijn kolom om het omhoog te duwen. Blokjes die het veld verlaten, leveren punten op.</p> |
| 26 | </div> |
| 27 | |
| 28 | <div id="planet-select" class="screen" hidden> |
| 29 | <h1>Kies een veld</h1> |
| 30 | <p class="tagline">Elk veld is een planeet, met een eigen volk, zwaartekracht, lucht en massa.</p> |
| 31 | <div id="planet-grid" class="planet-grid" role="list"></div> |
| 32 | <div class="planet-actions"> |
| 33 | <button type="button" id="btn-planet-go">Spelen</button> |
| 34 | <button type="button" id="btn-planet-back" class="btn-secondary">Terug</button> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <div id="online-panel" class="screen" hidden> |
| 39 | <h1>Online</h1> |
| 40 | <p id="online-status" class="tagline">Even kijken of online spelen beschikbaar is…</p> |
| 41 | <p id="online-error" class="error" hidden></p> |
| 42 | |
| 43 | <div id="online-unconfigured" hidden> |
| 44 | <p class="notice">Online spelen is nog niet ingesteld. De beheerder moet bij <a href="https://auth.timfalken.com/admin" target="_blank" rel="noopener">auth.timfalken.com/admin</a> het callback-pad <code>/meteors/callback.php</code> toevoegen (zelfde client als de andere sites op dit domein; het geheim <strong>niet</strong> opnieuw genereren) en dat geheim in <code>data/config.php</code> op de server zetten. Zie de README.</p> |
| 45 | <p>Je kunt wel alleen spelen.</p> |
| 46 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 47 | </div> |
| 48 | |
| 49 | <div id="online-login" hidden> |
| 50 | <p>Om online te spelen log je in met je account op auth.timfalken.com.</p> |
| 51 | <a id="btn-login" class="button" href="auth.php">Inloggen</a> |
| 52 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 53 | <p id="local-login" class="hint" hidden> |
| 54 | Lokale test: |
| 55 | <a href="auth.php?test=1">test_user_1</a> · |
| 56 | <a href="auth.php?test=2">test_user_2</a> |
| 57 | </p> |
| 58 | </div> |
| 59 | |
| 60 | <div id="online-home" hidden> |
| 61 | <p class="who">Ingelogd als <strong id="me-name"></strong> · <a href="logout.php">Uitloggen</a></p> |
| 62 | <button type="button" id="btn-create">Lobby maken</button> |
| 63 | <form id="join-form" class="join-form"> |
| 64 | <label> |
| 65 | <span>Lobbycode</span> |
| 66 | <input id="join-code" type="text" maxlength="6" autocomplete="off" spellcheck="false" placeholder="ABCD"> |
| 67 | </label> |
| 68 | <button type="submit" id="btn-join">Deelnemen</button> |
| 69 | </form> |
| 70 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 71 | </div> |
| 72 | |
| 73 | <div id="online-lobby" hidden> |
| 74 | <p class="who">Ingelogd als <strong id="lobby-me-name"></strong></p> |
| 75 | <p class="lobby-code">Code: <strong id="lobby-code"></strong> <button type="button" id="btn-copy-code" class="btn-tiny">Kopieer</button></p> |
| 76 | <p class="hint lobby-planet-label">Jouw veld</p> |
| 77 | <div id="lobby-planet-grid" class="planet-grid compact" role="list"></div> |
| 78 | <ul id="lobby-players" class="player-list"></ul> |
| 79 | <p id="lobby-hint" class="hint"></p> |
| 80 | <div class="lobby-actions"> |
| 81 | <button type="button" id="btn-ready">Gereed</button> |
| 82 | <button type="button" id="btn-start" hidden>Starten</button> |
| 83 | <button type="button" id="btn-leave-lobby" class="btn-secondary">Verlaten</button> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
| 87 | |
| 88 | <div id="minis" hidden></div> |
| 89 | |
| 90 | <div id="hud" hidden> |
| 91 | <div class="hud-left"> |
| 92 | <div class="hud-label">Punten</div> |
| 93 | <div id="score">0</div> |
| 94 | </div> |
| 95 | <div class="hud-right"> |
| 96 | <div id="planet-name">Terra</div> |
| 97 | <div id="planet-stats"></div> |
| 98 | </div> |
| 99 | <div id="offline-hud" class="hud-offline" hidden> |
| 100 | <span id="offline-round">Ronde 1</span> |
| 101 | <span class="hud-sep">·</span> |
| 102 | <span id="offline-opponents">1 tegenstander</span> |
| 103 | <span class="hud-sep">·</span> |
| 104 | <span id="offline-skill">Skill 5%</span> |
| 105 | </div> |
| 106 | <div id="chain-indicator" hidden></div> |
| 107 | </div> |
| 108 | |
| 109 | <div id="offline-result" class="screen overlay" hidden> |
| 110 | <h2>Offline Strijd</h2> |
| 111 | <p>Je hebt ronde <strong id="offline-reached">1</strong> bereikt.</p> |
| 112 | <p id="offline-result-detail" class="tagline"></p> |
| 113 | <button type="button" id="btn-offline-menu">Terug naar het menu</button> |
| 114 | </div> |
| 115 | |
| 116 | <div id="game-over" class="screen overlay" hidden> |
| 117 | <h2>Je hebt verloren</h2> |
| 118 | <p>Alle kolommen zitten vast.</p> |
| 119 | <p class="go-score">Score: <strong id="go-score">0</strong></p> |
| 120 | </div> |
| 121 | |
| 122 | <div id="spectator" class="screen overlay" hidden> |
| 123 | <h2>Je ligt eruit</h2> |
| 124 | <p>Al je kolommen zitten vol. Je kunt toekijken of de wedstrijd verlaten.</p> |
| 125 | <div class="lobby-actions"> |
| 126 | <button type="button" id="btn-spectate">Toekijken</button> |
| 127 | <button type="button" id="btn-leave-game" class="btn-secondary">Verlaten</button> |
| 128 | </div> |
| 129 | </div> |
| 130 | |
| 131 | <div id="podium" class="screen overlay" hidden> |
| 132 | <h2>Gewonnen!</h2> |
| 133 | <p id="podium-title" class="tagline">De laatste speler staat overeind.</p> |
| 134 | <ol id="podium-list" class="podium-list"></ol> |
| 135 | <p class="hint" id="podium-hint">Over 5 seconden teruggaan naar de lobby…</p> |
| 136 | </div> |
| 137 | |
| 138 | <script src="framework.js"></script> |
| 139 | <script src="game.js"></script> |
| 140 | </body> |
| 141 | </html> |
projects-timfalken-com meteors