-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (165 loc) · 5.07 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
<head>
<link rel="stylesheet" type="text/css" href="static/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="static/ntris.css">
<script type="text/javascript" src="static/jquery-1.8.3.js"></script>
<script type="text/javascript" src="static/jquery-ui.js"></script>
<script type="text/javascript" src="static/swfobject.js"></script>
<script type="text/javascript" src="static/ntris_ui.js"></script>
<script type="text/javascript" src="static/ntris.js"></script>
</head>
<body bgcolor=white onload="ntris.initialize()">
<object id="socket_bridge" data="socket_bridge/socket_bridge.swf"
type="application/x-shockwave-flash">
</object>
<center>
<div id="topbar" class="leftalign connecting">
Status: connecting to server...
</div>
<div id="tabs" class="leftalign">
<ul id="tablist">
<!--
<button id="settings">Change settings</button>
<button id="highscores">View high scores</button>
-->
<button class="logged-in" onclick="ntris.logout()">
Log out
</button>
<button class="logged-out" onclick="ntris.ui.show_dialog('signup')">
Sign up
</button>
<button class="logged-out" onclick="ntris.ui.show_dialog('login')">
Log in
</button>
<button onclick="ntris.ui.show_dialog('create-room')">
Create room
</button>
<!--button onclick="ntris.play_singleplayer()">
Play singleplayer
</button-->
</ul>
</div>
</center>
</body>
<div id="room-prototype" class="hidden prototype">
<div class="left-side">
<div class="game header">
Games:
</div>
<div class="large-boards"></div>
<div class="boards"></div>
</div>
<div class="right-side">
<div class="container">
<div class="header">
Users:
</div>
<ul class="users"></ul>
</div>
<div class="container">
<div class="header">
Rooms:
</div>
<ul class="rooms"></ul>
</div>
<div class="large container">
<div class="header">
Chat:
</div>
<div class="chatbox"></div>
<div class="short header">
Message:
</div>
<input type="text" class="chat">
</div>
</div>
</div>
<div id="multiplayer-prototype" class="hidden prototype">
<div class="multiplayer">
<div class="multiplayer-rules">
<div>No one has proposed rules for a multiplayer game yet.</div>
</div>
<button class="create-game" onclick="ntris.ui.show_create_game_dialog(this)">
Play multiplayer!
</button>
<button class="accept-game hidden">Accept</button>
<button class="reject-game hidden">Reject</button>
</div>
</div>
<div id="login-dialog" title="Log in">
<form><fieldset>
<table>
<tr>
<td><label for="login-username">Username:</label></td>
<td><input type="text" id="login-username"></td>
</tr>
<tr>
<td><label for="login-password">Password:</label></td>
<td><input type="password" id="login-password"></td>
</tr>
</table>
</fieldset></form>
<div id="login-error" class="error"></div>
</div>
<div id="signup-dialog" title="Sign up">
<form><fieldset>
<table>
<tr>
<td><label for="signup-username">Username:</label></td>
<td><input type="text" id="signup-username"></td>
</tr>
<tr>
<td><label for="signup-email">Email (optional):</label></td>
<td><input type="text" id="signup-email"></td>
</tr>
<tr>
<td><label for="signup-password">Password:</label></td>
<td><input type="password" id="signup-password"></td>
</tr>
<tr>
<td><label for="retype-password">Retype password:</label></td>
<td><input type="password" id="retype-password"></td>
</tr>
</table>
</fieldset></form>
<div id="signup-error" class="error"></div>
</div>
<div id="create-room-dialog" title="Create a new room">
<form><fieldset>
<table>
<tr>
<td><label for="create-room-name">Room name:</label></td>
<td><input type="text" id="create-room-name"></td>
</tr>
</table>
</fieldset></form>
<div id="create-room-error" class="error"></div>
</div>
<div id="join-room-dialog" title="Room details">
<div id="room-details"></div>
<div id="room-membership"></div>
<div id="join-room-error" class="error"></div>
</div>
<div id="create-game-dialog" title="Propose a game">
<form><fieldset>
<table>
<tr>
<td><label for="game-type">Game type:</label></td>
<td>
<select id="game-type">
<option value="battle">Battle</option>
<option value="sprint">Sprint</option>
</select>
</td>
</tr>
<tr id="point-target-row" class="hidden">
<td><label for="point-target">Point target:</label></td>
<td>
<span id="point-target-value">50</span>
<div id="point-target"></div>
</td>
</tr>
<input type="text" id="create-game-room" class="hidden">
</table>
</fieldset></form>
<div id="create-game-error" class="error"></div>
</div>