-
Notifications
You must be signed in to change notification settings - Fork 0
/
athens.html
57 lines (52 loc) · 1.73 KB
/
athens.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
<!DOCTYPE html>
<html>
<head>
<title> Trivia Game </title>
<link rel="stylesheet" type="text/css" href="athens.css"/>
</head>
<body onload="init()">
<h1> Welcome to the Trivia Game... </h1>
<div id="joinWrapper">
<h2> Sign-in... </h2>
<input type="text" placeholder="Username" name="username" id="username">
<input type="text" placeholder="Game ID" name="room" id="room">
<button type="button" id="joinButton"> Join Game </button>
<button type="button" id="createButton"> Create Game </button>
</div>
<div id="questionSpace" hidden="true">
<h4 id="questionHeader"> <!-- Question # --> </h4>
<p id="questionText"> <!-- Question goes here! --> </p>
<ul id="answerList">
<!-- <li>
<input value='answer'> radio button
<span> answer text
</li> -->
</ul>
<div id="winnerDiv"> <!-- Winners shown here! --> </div>
<button type="button" id="answerButton"> Final Answer </button>
<button type="button" id="exitButton"> Exit Game </button>
</div>
<div id="stats">
<h2> Current Players... </h2>
<p id='statMsg'>
Join/Create a game to get started.
</p>
<ul id="statList">
<!-- Players/Scores go here! -->
</ul>
</div>
<div id="chat">
<h2> Chat... </h2>
<ul id="messageSpace">
<!-- Messages go here -->
</ul>
<div id="sendMsg">
<input type="text" name="messageBox" id="messageBox" placeholder="Message">
<label id="instruct" for="messageBox">Use <i>@username:</i> to send private message</label>
<br /><button type="button" id="sendButton"> Send </button>
</div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="triviaScript.js"></script>
</body>
</html>