| 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" aria-hidden="true"></div> |
| 16 | |
| 17 | <div id="menu" class="screen"> |
| 18 | <h1>Meteors</h1> |
| 19 | <p class="tagline">Drie op een rij, en je blokjes krijgen raketmotoren.</p> |
| 20 | <button type="button" id="btn-play">Spelen</button> |
| 21 | <button type="button" id="btn-online" class="btn-secondary">Online spelen</button> |
| 22 | <p id="last-score" class="last-score" hidden>Laatste score: <strong>0</strong></p> |
| 23 | <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> |
| 24 | </div> |
| 25 | |
| 26 | <div id="planet-select" class="screen" hidden> |
| 27 | <h1>Kies een veld</h1> |
| 28 | <p class="tagline">Elk veld is een planeet, met een eigen volk, zwaartekracht, lucht en massa.</p> |
| 29 | <div id="planet-grid" class="planet-grid" role="list"></div> |
| 30 | <div class="planet-actions"> |
| 31 | <button type="button" id="btn-planet-go">Spelen</button> |
| 32 | <button type="button" id="btn-planet-back" class="btn-secondary">Terug</button> |
| 33 | </div> |
| 34 | </div> |
| 35 | |
| 36 | <div id="online-panel" class="screen" hidden> |
| 37 | <h1>Online</h1> |
| 38 | <p id="online-status" class="tagline">Even kijken of online spelen beschikbaar is…</p> |
| 39 | <p id="online-error" class="error" hidden></p> |
| 40 | |
| 41 | <div id="online-unconfigured" hidden> |
| 42 | <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> |
| 43 | <p>Je kunt wel alleen spelen.</p> |
| 44 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 45 | </div> |
| 46 | |
| 47 | <div id="online-login" hidden> |
| 48 | <p>Om online te spelen log je in met je account op auth.timfalken.com.</p> |
| 49 | <a id="btn-login" class="button" href="auth.php">Inloggen</a> |
| 50 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 51 | <p id="local-login" class="hint" hidden> |
| 52 | Lokale test: |
| 53 | <a href="auth.php?test=1">test_user_1</a> · |
| 54 | <a href="auth.php?test=2">test_user_2</a> |
| 55 | </p> |
| 56 | </div> |
| 57 | |
| 58 | <div id="online-home" hidden> |
| 59 | <p class="who">Ingelogd als <strong id="me-name"></strong> · <a href="logout.php">Uitloggen</a></p> |
| 60 | <button type="button" id="btn-create">Lobby maken</button> |
| 61 | <form id="join-form" class="join-form"> |
| 62 | <label> |
| 63 | <span>Lobbycode</span> |
| 64 | <input id="join-code" type="text" maxlength="6" autocomplete="off" spellcheck="false" placeholder="ABCD"> |
| 65 | </label> |
| 66 | <button type="submit" id="btn-join">Deelnemen</button> |
| 67 | </form> |
| 68 | <button type="button" class="btn-secondary" data-back-menu>Terug</button> |
| 69 | </div> |
| 70 | |
| 71 | <div id="online-lobby" hidden> |
| 72 | <p class="who">Ingelogd als <strong id="lobby-me-name"></strong></p> |
| 73 | <p class="lobby-code">Code: <strong id="lobby-code"></strong> <button type="button" id="btn-copy-code" class="btn-tiny">Kopieer</button></p> |
| 74 | <p class="hint lobby-planet-label">Jouw veld</p> |
| 75 | <div id="lobby-planet-grid" class="planet-grid compact" role="list"></div> |
| 76 | <ul id="lobby-players" class="player-list"></ul> |
| 77 | <p id="lobby-hint" class="hint"></p> |
| 78 | <div class="lobby-actions"> |
| 79 | <button type="button" id="btn-ready">Gereed</button> |
| 80 | <button type="button" id="btn-start" hidden>Starten</button> |
| 81 | <button type="button" id="btn-leave-lobby" class="btn-secondary">Verlaten</button> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | |
| 86 | <div id="minis" hidden></div> |
| 87 | |
| 88 | <div id="hud" hidden> |
| 89 | <div class="hud-left"> |
| 90 | <div class="hud-label">Punten</div> |
| 91 | <div id="score">0</div> |
| 92 | </div> |
| 93 | <div class="hud-right"> |
| 94 | <div id="planet-name">Terra</div> |
| 95 | <div id="planet-stats"></div> |
| 96 | </div> |
| 97 | </div> |
| 98 | |
| 99 | <div id="game-over" class="screen overlay" hidden> |
| 100 | <h2>Je hebt verloren</h2> |
| 101 | <p>Alle kolommen zitten vast.</p> |
| 102 | <p class="go-score">Score: <strong id="go-score">0</strong></p> |
| 103 | </div> |
| 104 | |
| 105 | <div id="spectator" class="screen overlay" hidden> |
| 106 | <h2>Je ligt eruit</h2> |
| 107 | <p>Al je kolommen zitten vol. Je kunt toekijken of de wedstrijd verlaten.</p> |
| 108 | <div class="lobby-actions"> |
| 109 | <button type="button" id="btn-spectate">Toekijken</button> |
| 110 | <button type="button" id="btn-leave-game" class="btn-secondary">Verlaten</button> |
| 111 | </div> |
| 112 | </div> |
| 113 | |
| 114 | <div id="podium" class="screen overlay" hidden> |
| 115 | <h2>Gewonnen!</h2> |
| 116 | <p id="podium-title" class="tagline">De laatste speler staat overeind.</p> |
| 117 | <ol id="podium-list" class="podium-list"></ol> |
| 118 | <p class="hint" id="podium-hint">Over 5 seconden teruggaan naar de lobby…</p> |
| 119 | </div> |
| 120 | |
| 121 | <script src="framework.js"></script> |
| 122 | <script src="game.js"></script> |
| 123 | </body> |
| 124 | </html> |
projects-timfalken-com meteors