Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (66 sloc) 3.034 kb
6eb64f2 Initial commit.
unknown authored
1 <!-- saved from url=(0014)about:internet -->
2 <html>
3 <head>
4 <title>GarboChess Javascript</title>
9236c00 @glinscott Handle page being scrolled
authored
5 <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
6 <script type="text/javascript" src="js/jquery-ui-1.8.24.custom.min.js"></script>
6eb64f2 Initial commit.
unknown authored
7 <script type="text/javascript" src="js/garbochess.js"></script>
8 <script type="text/javascript" src="js/boardui.js"></script>
9 <script type="text/javascript">
10 $(document).ready(function () {
11 g_timeout = 1000;
12 UINewGame();
13 });
14 </script>
15 <style type="text/css">
16 #FenTextBox {
17 width: 400px;
18 }
19 #TimePerMove {
20 width: 50px;
21 }
12a0a08 @glinscott No highlight for table
authored
22 .no-highlight {
23 -webkit-tap-highlight-color: rgba(0,0,0,0);
24 }
25 .sprite-bishop_black{ background-position: 0 0; width: 45px; height: 45px; }
26 .sprite-bishop_white{ background-position: 0 -95px; width: 45px; height: 45px; }
27 .sprite-king_black{ background-position: 0 -190px; width: 45px; height: 45px; }
28 .sprite-king_white{ background-position: 0 -285px; width: 45px; height: 45px; }
29 .sprite-knight_black{ background-position: 0 -380px; width: 45px; height: 45px; }
30 .sprite-knight_white{ background-position: 0 -475px; width: 45px; height: 45px; }
31 .sprite-pawn_black{ background-position: 0 -570px; width: 45px; height: 45px; }
32 .sprite-pawn_white{ background-position: 0 -665px; width: 45px; height: 45px; }
33 .sprite-queen_black{ background-position: 0 -760px; width: 45px; height: 45px; }
34 .sprite-queen_white{ background-position: 0 -855px; width: 45px; height: 45px; }
35 .sprite-rook_black{ background-position: 0 -950px; width: 45px; height: 45px; }
36 .sprite-rook_white{ background-position: 0 -1045px; width: 45px; height: 45px; }
4f21995 @glinscott Use sprite sheet for pieces
authored
37 </style>
6eb64f2 Initial commit.
unknown authored
38 </head>
39 <body>
40 <div align="center">
41 <div>
42 <a href="javascript:UINewGame()">New game</a>
43 <select onchange="javascript:UIChangeStartPlayer()">
44 <option value="white">White</option>
45 <option value="black">Black</option>
46 </select>
a88b20a @glinscott Support undo
authored
47 Time per move: <input id="TimePerMove" value="3000" onchange="javascript:UIChangeTimePerMove()" />ms
48 <a href="javascript:UIUndoMove()">Undo</a>
6eb64f2 Initial commit.
unknown authored
49 </div>
50 <div style="margin-top:5px;">
51 <div id='board'></div>
52 <span id='output'></span><br/>
53 <textarea cols='50' rows='6' id='PgnTextBox'></textarea><br/>
54 <div>
55 <a id='AnalysisToggleLink' href="javascript:UIAnalyzeToggle()">Analysis: Off</a>
56 </div>
57 FEN: <input id='FenTextBox' onchange="javascript:UIChangeFEN()"/>
58 </div>
59 <div>
60 <h2>About</h2>
61 <p>It started as a feasibility project to see how Javascript could do in Chess, then languished until Chrome came along.</p>
62 <a href="..\projects.html">Back to Projects</a>
63 </div>
64 </div>
65 </body>
a88b20a @glinscott Support undo
authored
66 </html>
Something went wrong with that request. Please try again.