chess/src/main/webapp/pages/index.html
author Jaroslav Tulach <jtulach@netbeans.org>
Fri, 26 Jul 2013 09:28:49 +0200
branchchess
changeset 30 a46846115b83
parent 26 b675be28fc49
child 49 945fbfff28f3
permissions -rw-r--r--
Ensure changing turns
     1 <!--
     2 
     3     The MIT License (MIT)
     4 
     5     Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     6 
     7     Permission is hereby granted, free of charge, to any person obtaining a copy
     8     of this software and associated documentation files (the "Software"), to deal
     9     in the Software without restriction, including without limitation the rights
    10     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    11     copies of the Software, and to permit persons to whom the Software is
    12     furnished to do so, subject to the following conditions:
    13 
    14     The above copyright notice and this permission notice shall be included in
    15     all copies or substantial portions of the Software.
    16 
    17     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    18     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    19     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    20     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    21     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    22     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    23     THE SOFTWARE.
    24 
    25 -->
    26 <!DOCTYPE html>
    27 <html lang="en">
    28 <head>
    29 	<meta charset="utf-8">
    30 	<title>Chess Client</title>
    31 	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    32 	<meta name="description" content="">
    33 	<meta name="author" content="">
    34 
    35 	<!-- Le styles -->
    36 	<link href="./css/bootstrap.css" rel="stylesheet">
    37 	<link href="./css/bootstrap-responsive.css" rel="stylesheet">
    38 	<link href="./css/chess.css" rel="stylesheet">
    39 </head>
    40 <body>
    41 	<div class="navbar">
    42 		<div class="navbar-inner">
    43 			<a class="brand" href="#">Chess Game</a>
    44 			<ul class="nav">
    45 				<li class="active"><a href="#">My Game</a></li>
    46 				<li><a href="#">New game</a></li>
    47 				<li><a href="#">View games</a></li>
    48 				<li><a href="#">Blah..</a></li>
    49 			</ul>
    50 			<form class="navbar-search pull-right">
    51 				<input type="text" class="search-query" placeholder="Search">
    52 			</form>
    53 		</div>
    54 	</div>
    55 	<div class="container-fluid">
    56 		<div class="row-fluid">
    57 			<div class="span9">
    58 				<h1>My game</h1>
    59                 <div data-bind="visible: blackTurn">Black's turn</div>
    60 				<table class="board">
    61                     <tbody data-bind="foreach: rows">
    62                         <tr >
    63                             <!-- ko foreach: columns -->
    64                             <td data-bind="click: $root.selected, css: squareColor" >
    65                                 <span data-bind='html: pieceEntity'></span>
    66                             </td>
    67                             <!-- /ko -->
    68                         </tr>
    69                     </tbody>
    70 				</table>
    71                 <div data-bind="visible: whiteTurn">White's turn</div>
    72 			</div>
    73 			<div class="span2 offset1">
    74 				<h2>Game Log</h2>
    75 				<div class="log">
    76 					<table class="table table-striped log-table">
    77 						<thead>
    78 							<tr>
    79 								<th>#</th>
    80 								<th>Move</th>
    81 							</tr>
    82 						</thead>
    83 						<tbody>
    84 							<tr>
    85 								<td>10</td>
    86 								<td>Move</td>
    87 							</tr>
    88 							<tr>
    89 								<td>9</td>
    90 								<td>Move</td>
    91 							</tr>
    92 							<tr>
    93 								<td>8</td>
    94 								<td>Move</td>
    95 							</tr>
    96 							<tr>
    97 								<td>7</td>
    98 								<td>Move</td>
    99 							</tr>
   100 							<tr>
   101 								<td>6</td>
   102 								<td>Move</td>
   103 							</tr>
   104 							<tr>
   105 								<td>5</td>
   106 								<td>Move</td>
   107 							</tr>
   108 							<tr>
   109 								<td>4</td>
   110 								<td>Move</td>
   111 							</tr>
   112 							<tr>
   113 								<td>3</td>
   114 								<td>Move</td>
   115 							</tr>
   116 							<tr>
   117 								<td>2</td>
   118 								<td>Move</td>
   119 							</tr>
   120 							<tr>
   121 								<td>1</td>
   122 								<td>Move</td>
   123 							</tr>
   124 						</tbody>
   125 					</table>
   126 				</div>
   127 			</div>
   128 		</div>
   129 	</div>
   130 </body>
   131 </html>