-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
274 lines (273 loc) · 11.4 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<link rel="stylesheet" href="css/board.css" />
<link rel="stylesheet" href="vendor/jquery-ui-1.10.2.custom/css/dot-luv/jquery-ui-1.10.2.custom.min.css" />
<!--[if IE]>
<link rel="stylesheet" href="css/ie8.css" />
<![endif]-->
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
<script type="text/javascript" src="js/modernizr.custom.32104.js"></script>
<script src="vendor/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.min.js"></script>
<!--[if lt IE 9]>
<script src="js/ie9-2.1b4.min.js"></script>
<![endif]-->
<script src="socket.io/socket.io.js"></script>
<script data-main="lib/client/main" src="js/require.js"></script>
<script id="chat_message" type="text/html">
<div class="chat_message {{role}}">
<span class="name">{{user}}</span>
{{message}}
</div>
</script>
<script id="history_entry" type="text/html">
<div class="history_entry">
<span class="text {{type}}">{{text}}</span>
</div>
</script>
<script id="iw_defense_dialog" type="text/html">
<div id="iw_defense_dialog_{{type}}" class="iw_defense_dialog">
<div id="defend" class="button">
<div id="cost_wrapper">
Cost: <span id="cost">{{cost}}</span>
</div>
</div>
<div id="ignore" class="button"></div>
<div id="remaining_points" class="points_indicator"></div>
</div>
</script>
</head>
<body>
<input type="hidden" id="username" value="player" />
<div id="flashes">
<div id="psyop" class="flash">
<div class="main">Psyop attack</div>
<div class="success">
<div class="attacker message">
Success!
</div>
<div class="defender message">
Piece lost!
</div>
</div>
<div class="defended">
<div class="attacker message">
DEFENDED!
</div>
<div class="defender message">
No effect!
</div>
</div>
</div>
<div id="ew" class="flash">
<div class="main">Electronic Warfare</div>
<div class="success">
<div class="attacker message">
Success!
</div>
<div class="defender message">
Communications jammed
</div>
</div>
<div class="defended">
<div class="attacker message">
DEFENDED!
</div>
<div class="defender message">
No effect!
</div>
</div>
</div>
</div>
<div id="settings_dialog" class="dialog" title="Settings">
<div class="dialog_content_wrapper">
<div id="settings_content" class="dialog_content">
<div class="close_button close"></div>
<span class="title">Settings</span>
<div class="hr"></div>
<ul>
<li id="toggle_sound" class="toggle_sound">Disable Sound</li>
<li class="separator"></li>
<li><a href="rules.html" target="_new" onClick="window.open(this.href, 'rules', 'width=660,height=800,resizable,scrollbars=yes').focus();return(false);">Rules</a></li>
<li><a href="credits" target="_new" onClick="window.open(this.href, 'credits', 'width=660,height=800,resizable,scrollbars=yes').focus();return(false);">Credits</a></li>
<li class="separator"></li>
<li id="show_confirm_forfeit">Forfeit Game</li>
<li id="show_offer_draw">Offer a Draw</li>
<li class="separator"></li>
<li class="close">Close</li>
</ul>
</div>
<div id="forfeit_content" class="dialog_content">
<div class="close_button close"></div>
<span class="title">Forfeit</span>
<div class="hr"></div>
<p>Are you sure you want to forfeit the game?</p>
<ul>
<li id="confirm_forfeit">Forfeit Game</li>
<li class="close">Cancel</li>
</ul>
</div>
<div id="offer_draw_content" class="dialog_content">
<div class="close_button close"></div>
<span class="title">Offer a Draw</span>
<div class="hr"></div>
<p>Are you sure you want to offer your opponent a draw?</p>
<ul>
<li id="confirm_offer_draw">Offer a Draw</li>
<li class="close">Cancel</li>
</ul>
</div>
<div id="accept_draw_content" class="dialog_content">
<div class="close_button close"></div>
<span class="title">Draw Offered</span>
<div class="hr"></div>
<p>Your opponent has offered a draw. Accept?</p>
<ul>
<li id="accept_draw">Accept. Nobody wins.</li>
<li class="close">Reject. Keep playing.</li>
</ul>
</div>
</div>
</div>
<div id="iw_defense_dialog" class="dialog">
<div class="dialog_content_wrapper">
<div id="iw_defense_content" class="dialog_content">
<span id="psyop_title" class="iw_text title">Psyop Attack!</span>
<span id="ew_title" class="iw_text title">Electronic Warfare Attack!</span>
<div class="hr"></div>
<p id="psyop_text" class="iw_text">Your opponent has issued a psyop attack! If you
fail to defend against it, you will lose the pawn furthest from your
King. If you have no pawns, you will lose the piece furthest from
your King. If you have no other pieces, you will lose your King.</p>
<p id="ew_text" class="iw_text">Your opponent is using electronic warfare! If you
fail to defend against it, you will not be able to move a piece on
your next turn.</p>
<ul>
<li id="defend">Defend: Costs <span id="cost">{{cost}}</span> points</li>
<li id="ignore">Ignore</li>
</ul>
</div>
</div>
</div>
<div id="pawn_upgrade_dialog" class="dialog">
<div class="dialog_content_wrapper">
<div class="dialog_content">
<div id="upgrade_list">
</div>
</div>
</div>
</div>
<audio src="sounds/your_turn.wav" preload="auto" id="your_turn">
</audio>
<div id="table_area">
<div id="board" class="board">
<div id="pieces" class="board_overlay"></div>
<div id="opponent_status"></div>
<div id="pawn_capture" title="See if any pawns can capture an invisible piece. If they can, that move must be taken.">
<img src="images/transparent_pixel.gif" class="vertical-aligner">
Pawn Capture
</div>
</div>
<div id="side_area">
<div id="settings_overlay">
<div id="settings" class="setting_button"></div>
<div id="volume_control" class="toggle_sound setting_button volume_control_on"></div>
</div>
<div id="army_selector" class="side_selector">
<div id="points_indicator" class="points_indicator">
</div>
<div id="iw_selector">
<div id="psyop">Psyop: <span id="count">5</span></div>
<input type="hidden" id="ew_points" value="5">
<div id="ew_points_slider"></div>
<div id="ew">EW: <span id="count">5</span></div>
</div>
<div id="piece_selectors">
</div>
<div id="reset" class="button" title="Clears the board of placed pieces">
<img src="images/transparent_pixel.gif" class="vertical-aligner">
Reset
</div>
<div id="ready" class="button unready" title="Finalises your army">
<div id="indicator"></div>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
Ready
</div>
</div>
<div id="action_selector" class="side_selector">
<div id="psyop_points_indicator" class="points_indicator">
</div>
<div id="ew_points_indicator" class="points_indicator">
</div>
<div id="ew_actions" class="actions_container" title="Causes your opponent to skip their physical move. They may still make an IW attack.">
<div id="ew_main" class="iw_main"></div>
<div id="ew_normal" class="strength first">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="ew_reinforced" class="strength second" title="Reinforced attacks are indefensible.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="ew_feint" class="strength third disabled" title="Attack has no effect if it is not defended against. Only possible when attack cost is 2.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
</div>
<div id="psyop_actions" class="actions_container" title="Removes pawn furthest from their king. Removes furthest piece if they have no pawns. Removes the king if they have no other pieces.">
<div id="psyop_main" class="iw_main"></div>
<div id="psyop_normal" class="strength first">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="psyop_reinforced" class="strength second" title="Reinforced attacks are indefinsible.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="psyop_feint" class="strength third disabled" title="Attack has no effect if it is not defended against. Only possible when attack cost is 2.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
</div>
<div id="end_turn">
</div>
<div id="last_turn_report">
<span class="header">Last turn:</span>
<span id="content"></span>
</div>
<div id="turn_count_container">
Turn #<span id="turn_count"></span>
</div>
</div>
<div id="text_panels">
<div id="chat_message_indicator">!</div>
<div id="chat_selector" class="selector selected"></div>
<div id="notes_selector" class="selector deselected"></div>
<div id="log_selector" class="selector deselected"></div>
<div id="chat" class="content">
<div id="chat_messages">
</div>
<input type="text" id="chat_input"/>
</div>
<div id="notes" class="content">
<textarea id="notes_content" placeholder="Enter some notes here. They will be saved." rows="9" cols="67"></textarea>
</div>
<div id="log" class="content">
<div id="log_messages"></div>
</div>
</div>
</div>
<div id="dashboard" class="overlay_flash">
<div class="dashboard_section">
<img src="images/transparent_pixel.gif" class="vertical-aligner">
<span id="status">Connecting to server...</span>
</div>
</div>
</div>
</body>
</html>