Changed template, forgot to commit
parent
3d9f1aaf94
commit
9766116a99
|
@ -8,8 +8,6 @@ table {
|
||||||
border-spacing: 0pt;
|
border-spacing: 0pt;
|
||||||
font-family: 'Arial Unicode MS';
|
font-family: 'Arial Unicode MS';
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-color: black;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0pt 0pt 0pt 0pt;
|
border-width: 0pt 0pt 0pt 0pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,15 +24,20 @@ span {
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div align="center">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
% ranks = "87654321"
|
% ranks = "87654321"
|
||||||
% ranks = ranks if game.turn=="white" else ranks[::-1]
|
% #ranks = ranks if game.turn=="white" else ranks[::-1]
|
||||||
% files = "abcdefgh"
|
% files = "abcdefgh"
|
||||||
% is_black = lambda x: (ord(x[0])-ord('a')) % 2 != int(x[1]) % 2
|
% is_black = lambda x: (ord(x[0])-ord('a')) % 2 != int(x[1]) % 2
|
||||||
% for i, rank in enumerate(ranks):
|
% for i, rank in enumerate(ranks):
|
||||||
|
@ -57,13 +60,28 @@ span {
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<form method="post">
|
||||||
|
% first = "disabled" if game.index < 2 else ""
|
||||||
|
% prev = "disabled" if game.index == 0 else ""
|
||||||
|
% next = "disabled" if game.index+1 == len(game.history) else ""
|
||||||
|
% last = "disabled" if game.index+2 >= len(game.history) else ""
|
||||||
|
<input type="submit" name="first" value="{{"<<"}}" {{first}}>
|
||||||
|
<input type="submit" name="prev" value="{{"<"}}" {{prev}}>
|
||||||
|
<input type="submit" name="next" value="{{">"}}" {{next}}>
|
||||||
|
<input type="submit" name="last" value="{{">>"}}" {{last}}>
|
||||||
|
</form>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
% if not game.endofgame():
|
% if not game.endofgame():
|
||||||
<input type="text" name="move">
|
<input type="text" name="move">
|
||||||
<input type="submit" value="Move">
|
<input type="submit" value="Move">
|
||||||
% else:
|
% else:
|
||||||
<input type="submit" name="new" value="New Game">
|
<input type="submit" name="newgame" value="New Game">
|
||||||
% end
|
% end
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue