-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
204 lines (198 loc) · 8.7 KB
/
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!--
TODO:
- the ability to rejoin the game room after you have closed a tab
- SFX (find better ones)
-->
<!doctype html>
<html>
<head>
<link rel="shortcut icon" href="./assets/0-chitback.png" />
<title>Comic Relief</title>
<link href="./style.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Balsamiq+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" />
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<audio id="update">
<source src="./audio/update.mp3" type="audio/mpeg">
</audio>
<body>
<div id="welcome-section" class="container-fluid w-50"><br><br><br><br>
<div class="text-center">
<img id="logo" src="./assets/00-logo.png" />
</div>
<br>
<form>
<div class="form-group form-group-lg">
<input type="text" class="form-control custom-font" id="name" placeholder="Enter your name">
</div>
<div class="form-group form-group-lg">
<input type="text" class="form-control custom-font" id="gameID" placeholder="Game ID to join">
</div>
<div id="buttons" class="text-center">
<button id="join" class="btn btn-info custom-font mr-2"><strong>Join</strong></button>
<button id="start" class="btn btn-info custom-font"><strong>Create a Game</strong></button>
</div>
</form>
</div>
<div id="not-supported-section" class="container-fluid w-75 d-none"><br><br><br><br>
<div class="text-center">
<img id="logo" class="mx-auto" style="width: 240px; height: 180px;" src="./assets/00-logo.png" />
</div>
<br>
<p class="custom-font text-center text-white font-italic">Sorry! Comic Relief isn't ready for mobile devices yet.
</p>
</div>
<div id="lobby-section" class="container-fluid w-50 d-none">
<br><br><br><br><br><br><br><br>
<h3 class="text-white custom-font"><strong>Lobby for Game ID:</strong><br><br>
<div class="text-white gameID font-italic custom-font"></div>
<small class="text-white custom-font-small" id="click-to-copy">(click to copy)</small>
</h3><br><br>
<p class="custom-font text-white">In game:</p>
<ul id="player-list" class="list-group custom-font"></ul>
<br>
<div class="text-center">
<button id="start-button" type="button" class="btn btn-info custom-font" disabled><strong>Start
Game</strong></button>
</div>
</div>
<div id="how-to-play" class="d-none">
</div>
<div id="game-section" class="container-fluid d-none">
<div id="player-number" class="d-none"></div>
<div id="tabletop" class="row mx-4 mt-4">
<div id="board" class="col-6 row mr-2">
<div class="grid">
<div class="row">
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
</div>
<div class="row">
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
</div>
<div class="row">
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
</div>
<div class="row">
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
<div class="box" style="background-image: url('./assets/Card_back.png');">
<div class="inner row mx-auto"></div>
</div>
</div>
</div>
</div>
<div id="right" class="col-6">
<div class="custom-font font-italic" id="story">
<br>
</div>
<br>
<div id="player-input">
<small id="words-info" class="custom-font-small text-white font-italic"><span id="num-words-left">20</span>
word(s)
remaining</small>
<div class="form-group form-group-lg">
<textarea class="form-control custom-font" id="sentence-input" rows="2"
placeholder="Please type with grammatical accuracy!" disabled></textarea>
</div>
</div>
<div class="row" id="player-cards">
<div class="col-3 player-card" id="card1"><img /></div>
<div class="col-3 player-card" id="card2"><img /></div>
<div class="col-3 player-card" id="card3"><img /></div>
<div class="col-3 player-card" id="card4"><img /></div>
<div class="d-none" id="selected-card"></div>
</div>
<br>
<div class="text-center"><button id="submit-end-turn" class="btn btn-info custom-font" disabled><strong>Submit
and End
Turn</strong></button><button id="proceed-to-voting"
class="d-none btn btn-info custom-font"><strong>Proceed to
Voting</strong></button><br><br>
<div id="turn-prompt" class="font-italic custom-font-small text-white">(It's <span
id="current-player-name"></span> turn)</div>
</div>
</div>
</div>
</div>
<div id="post-game-section" class="container-fluid d-none">
<div class="text-center custom-font text-white">
<br><br>
<h1><strong id="voting-prompt-text">Choose the <span id="vote-adjective">Funniest</span> Panel</strong></h1>
<p id="voting-instructions" class="custom-font font-italic">(Click on the card you want to cast your vote to.)</p>
<br>
</div>
<div id="voting-container" class="row mx-auto">
<div id="voting-board" class="col-8"></div>
<div class="custom-font font-italic col-4" id="voting-story"></div>
</div>
</div>
<div id="summary-section" class="d-none container-fluid">
<div class="text-center custom-font text-white">
<br><br>
<h1><strong>The votes are in!</strong></h1>
<p class="custom-font font-italic">(Don't worry, everyone's a winner here)</p>
<br><br>
</div>
<div id="summary-container" class="row align-items-center mx-auto w-50 custom-font text-white">
<div id="funniest-section" class="col-12 row align-items-center mb-4">
<h2 class="col-12"><strong>Funniest </strong></h2><br>
</div>
<div id="most-pivotal-section" class="col-12 row align-items-center mt-4 mb-4">
<h2 class="col-12"><strong>Most Pivotal </strong></h2><br>
</div>
<div id="best-save-section" class="col-12 row align-items-center mt-4 mb-5">
<h2 class="col-12"><strong>Best Save </strong></h2><br>
</div>
</div>
</div>
</div>
</body>
<script src=" /socket.io/socket.io.js">
</script>
<script src="./main.js"></script>
</html>