-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (55 loc) · 2.31 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="./styles.css" />
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.9.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.9.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.9.1/firebase-auth.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
</head>
<body>
<div id="homepage" class="homepage">
<input id="gameIdInput" placeholder="Enter game ID" autocomplete="off"/>
<input id="userIdInput" placeholder="Enter user ID" autocomplete="off"/>
<button id="create" onclick="onClickJoin()">Create/Join Game</button>
</div>
<div id="lobby" class="lobby hidden">
<ul id="userlist"></ul>
<button disabled id="start" onclick="onClickStart()">Start Game</button>
<input id="gameLink" class="gameLink" readonly />
<button id="copyLink">Copy Link</button>
</div>
<div id="game" class="game hidden">
<div class="wrapper">
<h1 id="timer"> </h1>
<h1 id="word" class="word"> </h1>
<div class="canvasWrapper">
<canvas id="canvas" width="800" height="600"></canvas>
<div id="overlay" class="overlay hidden">
<div id="overlayText">nextUser's turn</div>
</div>
</div>
<div id="guessBox" class="guessBox">
<p id="guessResponse"> </p>
<input type="text" id="guess" autocomplete="off"/>
<button type="submit" onclick="onClickGuess()">Guess</button>
</div>
<div id="toolbar" class="toolbarWrapper">
<button id="pencil" class="selected">Pencil</button>
<button id="eraser">Eraser</button>
<button id="stop" onclick="onClickStop()">Stop Game</button>
</div>
</div>
<div class="userlistWrapper">
<ul id="userlist2"></ul>
</div>
</div>
<script src="firebase.js"></script>
<script src="words.js"></script>
<script src="game-controller.js"></script>
<script src="canvas-controller.js"></script>
<script src="turn-controller.js"></script>
</body>
</html>