-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
191 lines (160 loc) · 6.93 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="author" content="@dasanchez">
<meta name="description" content="Orbitals is a word association game">
<title>ORBITALS</title>
<link rel="stylesheet" href="css/orbitals.css">
</head>
<body>
<div id="about" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<h2>ORBITALS</h2>
<p>A word association game by <a href="https://github.com/dasanchez/orbitals-client">@dasanchez</a></p>
<div class="instructions">
<h3>Instructions</h3>
<ol>
<li>Enter your name</li>
<li>Join a sector</li>
<li>Choose a team</li>
<li>Wait for game to start</li>
</ol>
<p>To play as hub:</p>
<ol start="4">
<li>Select the hub role</li>
<li>Press Start when ready</li>
</ol>
<p><strong>Hubs</strong> submit hints.</p>
<p><strong>Orbitals</strong> guess words.</p>
</div>
<p>Visit <a href="https://urra.ca" target="_blank">urra.ca</a> (opens separately)</p>
</div>
</div>
<div id="title-container">
<div id="menu-icon-container">
<button id="about-button" onclick="openNav()">?</button>
</div>
<div id="title-text">ORBITALS</div>
</div>
<div id="status-bar">
<div id="state-container">
<div id="state-top-half">
<div id="state-text"></div>
</div>
<div id="state-bottom-half">
<div id="hint-label">Hint</div>
<div id="current-hint"></div>
<div id="guesses-label">Guesses</div>
<div id="guesses-left"></div>
</div>
</div>
<div id="turn-container">
<div id="timer">:24</div>
</div>
</div>
<div id='mainArea'>
<div id="cluster-info">
<div id="connection-status">NOT </div>
<div id="name-entry">
<input id="name-input" class="neutral-border-off" placeholder="Enter a name">
<button id="name-send" class="cmd-button">Send</button>
<div id="name-response" class="bad-response"></div>
</div>
<div id="sector-selection"></div>
</div>
<div id="word-board">
<button class="word-box" id="word1">...</button>
<button class="word-box" id="word2">...</button>
<button class="word-box" id="word3">...</button>
<button class="word-box" id="word4">...</button>
<button class="word-box" id="word5">...</button>
<button class="word-box" id="word6">...</button>
<button class="word-box" id="word7">...</button>
<button class="word-box" id="word8">...</button>
<button class="word-box" id="word9">...</button>
<button class="word-box" id="word10">...</button>
<button class="word-box" id="word11">...</button>
<button class="word-box" id="word12">...</button>
<button class="word-box" id="word13">...</button>
<button class="word-box" id="word14">...</button>
<button class="word-box" id="word15">...</button>
<button class="word-box" id="word16">...</button>
</div>
<div id="message-display">
<div id="chat-box">
<div id="message-container"></div>
</div>
</div>
<div id="sector-info">
<div id="sector-area">
<div class="sector-label">
<div id="player-name" class="sector-data"></div>
<label class="sector-info-label">Name</label>
</div>
<div class="sector-label">
<div id="sector-name" class="sector-data"></div>
<label class="sector-info-label">Sector</label>
</div>
<button id="leave-button" class="cmd-button">Leave</button>
</div>
<div id='player-list'>
<div id='orange-team' class='team-list'></div>
<div id="player-data-entry">
<div id="team-selection">
<div id="team-prompt" class="entry-prompt">Choose a team</div>
<div id="team-options">
<button id="orange-team-button" class="team-button orange-border-off">
</button>
<button id="blue-team-button" class="team-button blue-border-off">
</button>
</div>
<div id="team-response" class="bad-response"></div>
</div>
<div id="role-selection">
<div id="role-prompt" class="entry-prompt">Play as hub?</div>
<button id="hub-button" class="team-button">
</button>
<div id="role-response" class="bad-response"></div>
</div>
<div id="ready-area">
<button id="start-button" class="send-button neutral-border-on">Start
</button>
</div>
</div>
<div id='blue-team' class='team-list'></div>
</div>
</div>
</div>
<div id="last-message-container">
<div id="last-message"></div>
</div>
<div id="comms-area">
<div id="message-area">
<button id="replay-button" class="cmd-button">Replay</button>
<input id="message-input" placeholder="Enter message">
<button id="send-message-button" class="cmd-button">Send</button>
</div>
<div id="hint-submission-comms">
<input id="hint-input" value="" placeholder="Enter hint">
<div id="guess-container">
<input type="range" id="guess-range" min="1" max="4" value="2">
<div id="guess-count-label">2</div>
</div>
<button id="hub-submit-button" class="cmd-button">Submit</button>
</div>
<div id="hint-response-comms">
<button id="approve-button" class="cmd-button">Approve</button>
<button id="reject-button" class="cmd-button">Reject</button>
</div>
</div>
<div id="nav-bottom">
<button id="sector-button" class="nav-button">Sector</button>
<button id="game-button" class="nav-button">Game</button>
<button id="comms-button" class="nav-button">Comms</button>
</div>
<script src="orbitals.js"></script>
</body>
</html>