-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
234 lines (195 loc) · 10.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--
App Passant - Chess on app.net
Copyright 2012 (C) Matthew Flaschen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=====
Uses jQuery (MIT), jQuery Cookie (MIT), Twitter Bootstrap (Apache 2.0 License) (Glyphicons CC BY 3.0), jChess (MIT), json2 (Public Domain), and URI.js (MIT), appdotnet_api_client.js (MIT), Tango AJAX icon (Public Domain),
js-iso8601 (MIT)
Chess piece icons from http://commons.wikimedia.org/wiki/Category:SVG_chess_pieces, used under BSD 3-clause.
app.net connect logo used under CC BY 3.0 (https://alpha.app.net/legal/assets/)
-->
<title>App Passant</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Chess on app.net">
<meta name="author" content="Matthew Flaschen">
<!-- Le styles -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="jchess/stylesheets/chess.css" rel="stylesheet"> <!-- jchess has internal dependencies, so we use its structure -->
<link href="css/apppassant.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="unauthorized">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">App Passant</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="https://github.com/mattflaschen/apppassant">GitHub</a></li>
<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=AWBV8X4WCB69J&lc=US&item_number=App%20Passant&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted">Donate</a>
<li><a href="https://alpha.app.net/mattflaschen">Contact</a></li>
<li><a href="tos.html" data-toggle="modal" data-target="#tosModal">Terms of Service</a></li>
<li><a href="privacy.html" data-toggle="modal" data-target="#privacyModal">Privacy</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container" id="mainContainer">
<a href="#postGameModal" role="button" class="btn btn-primary" data-toggle="modal">Post Past Game</a>
<a href="#createChallengeModal" role="button" class="btn btn-primary" data-toggle="modal">Challenge Someone</a>
<img id="throbber" class="hide" src="img/process-working.gif" alt="Loading..." />
<ul id="mainTabs" class="nav nav-tabs">
<li class="active"><a href="#stream" data-toggle="tab">Stream</a></li>
<li><a href="#challenges" data-toggle="tab">Challenges</a></li>
<li><a href="#readyGames" data-toggle="tab">Ready Games</a></li>
<li><a href="#posts" data-toggle="tab">My Posts</a></li>
</ul>
<div class="tab-content">
<div id="stream" class="tab-pane fade in active">
<h3>Games in My Stream</h3>
<div id="streamList"></div>
</div>
<div id="challenges" class="tab-pane fade">
<h3>Challenges</h3>
<div id="challengesList"></div>
</div>
<div id="readyGames" class="tab-pane fade">
<h3>Ready Games</h3>
<div id="readyGamesList"></div>
</div>
<div id="posts" class="tab-pane fade">
<h3>My Posts</h3>
<div id="postsList"></div>
</div>
</div>
</div> <!-- /container -->
<div class="container hide" id="connectContainer">
<a href="#">
<img src="img/connect.png" alt="Connect with app.net">
</a>
</div>
<div class="modal hide fade" id="postGameModal" tabindex="-1" role="dialog" aria-labelledby="postGameLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="postGameLabel">Post Game</h3>
</div>
<form class="modal-body modal-form">
<textarea id="postModalPgn" class="required" placeholder="Portable Game Notation"></textarea>
<textarea id="postModalMsg" class="required adn-message" placeholder="Regular Message"></textarea>
<label>Currently being played?
<input id="postModalBeingPlayed" type="checkbox">
</label>
<div id="postModalBoard"></div>
</form>
<div class="modal-footer">
<p id="postModalError" class="text-error hide"></p>
<button id="postGameBtn" data-loading-text="Posting" class="btn btn-primary" autocomplete="off">Post</button>
<button id="previewGameBtn" class="btn" autocomplete="off">Preview</button>
</div>
</div>
<div class="modal hide fade" id="createChallengeModal" tabindex="-1" role="dialog" aria-labelledby="createChallengeLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="createChallengeLabel">Create Challenge</h3>
</div>
<form class="modal-body modal-form">
<input id="createChallengeOpponent" class="required" placeholder="Opponent" />
<h4>I Play As:</h4>
<div id="createChallengePieces" class="btn-group" data-toggle="buttons-radio">
<a href="#" class="btn active" data-color="white" title="White">
<img src="img/Chess_plt45.svg" alt="White" />
</a>
<a href="#" class="btn" data-color="black" title="Black">
<img src="img/Chess_pdt45.svg" alt="Black" />
</a>
</div>
<textarea id="createChallengeMessage" class="required adn-message" placeholder="Challenge Message">You've been challenged to a chess game in App Passant!</textarea>
<input id="createChallengeWhiteFirstPly" class="required as-white" placeholder="My Move (algebraic notation)" />
<div id="createChallengeBoard" class="as-white"></div>
</form>
<div class="modal-footer">
<p id="createChallengeModalError" class="text-error hide"></p>
<button id="previewChallengeBtn" class="btn as-white" autocomplete="off">Preview</button>
<button id="createChallengeBtn" data-loading-text="Challenging" class="btn btn-primary" autocomplete="off">Challenge</button>
</div>
</div>
<div class="modal hide fade" id="rejectChallengeModal" tabindex="-1" role="dialog" aria-labelledby="rejectChallengeLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="rejectChallengeLabel">Reject Challenge</h3>
</div>
<form class="modal-body modal-form">
<textarea id="rejectChallengeMessage" class="required adn-message" placeholder="Rejection Message">No thanks. Maybe another time.</textarea>
</form>
<div class="modal-footer">
<p id="rejectChallengeModalError" class="text-error hide"></p>
<button id="rejectChallengeBtn" data-loading-text="Rejecting" class="btn btn-primary" data-dismiss="modal" autocomplete="off">Reject</button>
</div>
</div>
<div class="modal hide fade" id="moveModal" tabindex="-1" role="dialog" aria-labelledby="moveLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="moveLabel">My Move</h3>
</div>
<form class="modal-body modal-form">
<textarea id="moveMessage" class="required adn-message" placeholder="Comment (optional)"></textarea>
<input id="movePly" class="required" placeholder="My Move (algebraic notation)" />
<div id="moveBoard"></div>
</form>
<div class="modal-footer">
<p id="moveModalError" class="text-error hide"></p>
<button id="previewMoveBtn" class="btn" autocomplete="off">Preview</button>
<button id="moveBtn" data-loading-text="Moving" class="btn btn-primary" autocomplete="off">Move</button>
</div>
</div>
<div class="modal hide fade" id="tosModal" tabindex="-1" role="dialog" aria-labelledby="tosLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="tosLabel">Terms of Service</h3>
</div>
<div class="modal-body">
</div>
</div>
<div class="modal hide fade" id="privacyModal" tabindex="-1" role="dialog" aria-labelledby="privacyLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="privacyLabel">Privacy Policy</h3>
</div>
<div class="modal-body">
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
<script src="jchess/javascripts/jchess-0.1.0.js"></script>
<script src="js/chess.js/chess.js"></script>
<script src="js/json2.js"></script>
<script src="js/js-iso8601/iso8601.min.js"></script>
<script src="js/URI.js"></script>
<script src="js/appdotnet_api_client.js"></script>
<script src="js/apppassant.js"></script>
</body></html>