-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (82 loc) · 2.54 KB
/
index.html
File metadata and controls
85 lines (82 loc) · 2.54 KB
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
75
76
77
78
79
80
81
82
83
84
85
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>Rock ✊ Paper 🖐️ Scissors ✌️</title>
<link rel="stylesheet" href="/src/styles.css">
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<div id="app">
<div id="container">
<div id="media">
<button id="flip">Flip Camera</button>
<video id="video" autoplay></video>
<canvas id="canvas"></canvas>
</div>
<div id="move">
<h2>Your Move</h2>
<ol id="gestures">
<li>Rock ✊</li>
<li>Paper 🖐️</li>
<li>Scissors ✌️</li>
</ol>
</div>
<div id="match">
<h2>Game Mode</h2>
<div class="radio-group">
<label for="vsplayer" class="radio">
<input type="radio" name="match" value="multiplayer" id="vsplayer" checked>
<span>VS Player</span>
</label>
<label for="vscomputer" class="radio">
<input type="radio" name="match" value="singleplayer" id="vscomputer">
<span>VS Computer</span>
</label>
</div>
<div id="multiplayer">
<p class="help-text">Share this ID with your friend.</p>
<div>
<h4 id="hostid"></h4>
<button id="share">Share</button>
</div>
<p class="help-text">Paste your friend's ID here.</p>
<div>
<textarea id="peerid" type="text" cols="36" placeholder="Peer ID"></textarea>
<button id="join">Join</button>
</div>
</div>
<div id="singleplayer" hidden>
<p class="help-text">Play with the computer until your friend joins.</p>
<button id="play">Play</button>
</div>
</div>
<div id="game" hidden>
<h2>Opposition</h2>
<img id="opposition" alt="Opposition">
<h1 id="message"></h1>
</div>
<ol id="scores">
<li>Ties: <span>0</span></li>
<li>Wins: <span>0</span></li>
<li>Losses: <span>0</span></li>
</ol>
</div>
<div id="pwa-toast" role="alert" aria-labelledby="toast-message">
<div class="message">
<span id="toast-message"></span>
</div>
<div class="buttons">
<button id="pwa-refresh" type="button">
Reload
</button>
<button id="pwa-close" type="button">
Close
</button>
</div>
</div>
</div>
</body>
</html>