game1 / client / public / index.html
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<html lang="en" class="boot">
<head>
<meta charset="utf-8">
<title>NEON GRID</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="theme-color" content="#05060f">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="NEON GRID">
<link rel="apple-touch-icon" href="./icons/apple-touch-icon.png">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%2305060f'/%3E%3Cpath d='M6 22 V10 h4 v8 h4 V10 h4 v8 h4 V10 h4' fill='none' stroke='%2300f0ff' stroke-width='2.5'/%3E%3C/svg%3E">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="stage"><div id="arena"><canvas id="game"></canvas></div></div>

<div id="hud">
  <div id="logo">NEON&nbsp;GRID</div>
  <div id="chips"></div>
  <button id="copybtn" title="Copy invite link" data-i18n="hud.invite" data-i18n-attr="title:hud.invite.title">⧉ invite</button>
  <div id="status"><span id="statdot"></span><span id="stattext" data-i18n="hud.offline">offline</span></div>
</div>

<!-- boot splash: shown from first paint until main decides gate vs auto-join -->
<div id="ovSplash" class="overlay">
  <div class="panel">
    <div class="title">NEON<span class="p">GRID</span></div>
    <p id="splashmsg" class="sub"></p>
  </div>
</div>

<!-- join screen -->
<div id="ovJoin" class="overlay">
  <div class="panel">
    <div class="title">NEON<span class="p">GRID</span></div>
    <div class="sub" data-i18n="join.sub">p2p light-cycle arena</div>
    <input id="nick" maxlength="32" placeholder="callsign" autocomplete="off" autocapitalize="off" spellcheck="false" data-i18n-attr="placeholder:join.nick">
    <button id="playbtn" class="big" data-i18n="join.play">Enter the grid</button>
    <div class="hint" id="joinhint"><span id="joinhow" data-i18n="join.hint.keys">steer: ← → ↑ ↓ / WASD · Q E to weave</span><br>
      <span data-i18n="join.hint.win">last rider alive wins · first to 5 takes the match</span></div>
  </div>
</div>

<!-- lobby -->
<div id="ovLobby" class="overlay hidden">
  <div class="panel">
    <div class="sub" data-i18n="lobby.sub">riders in the grid</div>
    <div id="roster"></div>
    <button id="startbtn" class="big hidden" data-i18n="lobby.start">Start match</button>
    <div id="waitmsg" class="hint" data-i18n="lobby.wait">waiting for host to launch…</div>
    <div class="hint"><span id="lobbyhow" data-i18n="join.hint.keys">steer: ← → ↑ ↓ / WASD · Q E to weave</span></div>
    <button id="sharebtn" class="big" data-i18n="lobby.share">📤 invite friends</button>
    <div class="hint" data-i18n="lobby.invite-hint">anyone with the link can join</div>
  </div>
</div>

<!-- round / match result -->
<div id="ovMsg" class="overlay hidden" style="background:#05060f66">
  <div style="display:flex;flex-direction:column;gap:14px;align-items:center">
    <div id="bigmsg"></div>
    <div id="submsg"></div>
  </div>
</div>

<div id="countnum" class="hidden"></div>
<div id="tapzones" class="hidden"><div data-i18n="tap.left">◀ TAP</div><div data-i18n="tap.right">TAP ▶</div></div>
<div id="toast"></div>

<script defer src="./assets/main.js"></script>
</body>
</html>

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/game1.git