forked from Longhouse-Games/infochess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
289 lines (285 loc) · 13.6 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<html>
<head>
<meta name="version" content="REL_05_29_14">
<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" />
<link rel="stylesheet" href="css/opentip.css" />
<link rel="stylesheet" href="css/tutorial.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>
<script type="text/javascript" src="js/opentip-native.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 no_highlights">
<div id="defend" class="button-{{status}}">
<div id="cost_wrapper">
<span id="cost">Cost: {{cost}}</span>
</div>
</div>
<div id="ignore" class="button-enabled"></div>
<div id="remaining_points" class="points_indicator"></div>
</div>
</script>
<script id="flashMessage" type="text/html">
<div class="flash">
<div class="main">{{line1}}</div>
<div class="message {{outcome}}">{{line2}}</div>
</div>
</script>
</head>
<body>
<input type="hidden" id="username" value="player" />
<div id='modalMessageOverlay' class='ui-widget-overlay ui-front'></div>
<div id="flashes"></div>
<div id="settings_dialog" class="dialog">
<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="suggest_offer_draw_content" class="dialog_content">
<div class="close_button close"></div>
<span class="title">Offer a Draw</span>
<div class="hr"></div>
<p>No captures or attacks have been made for a while, perhaps it is time to offer a draw?</p>
<ul>
<li id="confirm_suggest_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_table" class="board_table">
<div id="board" class="board"></div>
<div id="pieces" class="board_overlay"></div>
<div id="opponent_status"></div>
<div id="pawn_capture" class="clickable no_highlights" data-ot="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 id="flip_orientation" class="no_highlights" data-ot="Flip the orientation of the board you are viewing." data-ot-tip-joint="bottom left">
<div id="orientation_label">white</div>
</div>
<div id="coord01" class="no_highlights">8</div>
<div id="coord02" class="no_highlights">7</div>
<div id="coord03" class="no_highlights">6</div>
<div id="coord04" class="no_highlights">5</div>
<div id="coord05" class="no_highlights">4</div>
<div id="coord06" class="no_highlights">3</div>
<div id="coord07" class="no_highlights">2</div>
<div id="coord08" class="no_highlights">1</div>
<div id="coord09" class="no_highlights">A</div>
<div id="coord10" class="no_highlights">B</div>
<div id="coord11" class="no_highlights">C</div>
<div id="coord12" class="no_highlights">D</div>
<div id="coord13" class="no_highlights">E</div>
<div id="coord14" class="no_highlights">F</div>
<div id="coord15" class="no_highlights">G</div>
<div id="coord16" class="no_highlights">H</div>
</div>
<div id="side_area">
<div id="settings_overlay">
<div id="settings" class="setting_button" data-ot="Show game settings."></div>
<div id="volume_control" class="toggle_sound setting_button volume_control_on" data-ot="Toggle sound."></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" data-ot="Clears the board of placed pieces">
<img src="images/transparent_pixel.gif" class="vertical-aligner">
Clear
</div>
<div id="ready" class="button unready" data-ot="Finalizes 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 no_highlights">
</div>
<div id="ew_points_indicator" class="points_indicator no_highlights">
</div>
<div id="psyop_points_indicator_white" class="points_indicator no_highlights">
</div>
<div id="ew_points_indicator_white" class="points_indicator no_highlights">
</div>
<div id="psyop_points_indicator_black" class="points_indicator no_highlights">
</div>
<div id="ew_points_indicator_black" class="points_indicator no_highlights">
</div>
<div id="ew_actions" class="actions_container no_highlights">
<div id="ew_main" class="iw_main" data-ot-title="Electronic Warfare Attack" data-ot="Causes your opponent to skip their physical move. They may still make an IW attack."></div>
<div id="ew_feint" class="strength first disabled" data-ot-title="Feint Attack" data-ot="Will have no effect whether it is defended against or not. Only possible when attack cost is 2.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="ew_normal" class="strength second" data-ot-title="Normal Attack" data-ot="Will have no effect if defended against.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="ew_reinforced" class="strength third" data-ot-title="Reinforced Attack" data-ot="Will have an effect whether it is defended against or not.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
</div>
<div id="psyop_actions" class="actions_container no_highlights">
<div id="psyop_main" class="iw_main no_highlights" data-ot-title="Psyops Attack" data-ot="Removes a piece furthest from their king, starting with any pawns first. Removes the king if they have no other pieces."></div>
<div id="psyop_feint" class="strength first disabled" data-ot-title="Feint Attack" data-ot="Will have no effect whether it is defended against or not. Only possible when attack cost is 2.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="psyop_normal" class="strength second" data-ot-title="Normal Attack" data-ot="Will have no effect if defended against.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
<div id="psyop_reinforced" class="strength third" data-ot-title="Reinforced Attack" data-ot="Will have an effect whether it is defended against or not.">
<span id="value"></span>
<img src="images/transparent_pixel.gif" class="vertical-aligner">
</div>
</div>
<div id="end_turn">
</div>
<div id="end_move" class="selectable" style="display:none">
</div>
<div id="last_turn_report">
<span class="header">Last turn:</span>
<span id="content"></span>
</div>
<div id="turn_count_container" class="no_highlights">
Turn #<span id="turn_count" class="no_highlights"></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" class="no_highlights">Connecting to server...</span>
</div>
</div>
</div>
</body>
</html>