Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (67 sloc) 2.74 KB
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Play chess with Go, HTML5, WebSockets and random strangers!" />
<link rel="stylesheet" type="text/css" href="/chess.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<script type="text/javascript" src="chess.js"></script>
<link href='' rel='stylesheet' type='text/css'>
<div class="wrap">
<p class="intro">
Play chess with Go, HTML5,<br />
WebSockets and random strangers!
<h1><a href="/">ChessBuddy</a></h1>
<canvas id="clocks" width="280" height="130">
Your browser does not support the canvas element.
<label id="l_history" for="history">history</label>
<div id="history">
<div id="game">
<canvas id="base" width="400" height="400" class="layer" style="z-index: 10;">
Your browser does not support the canvas element.
<canvas id="mark" width="400" height="400" class="layer" style="z-index: 20;">
<canvas id="anim" width="400" height="400" class="layer" style="z-index: 30;">
<div id="dlg-connect" class="dialog" style="display: block;">
<h3 id="connect">Connecting…</h3>
<div id="dlg-waiting" class="dialog">
<h3>Waiting for another player…</h3>
<p>(or <a href="/ai">play against the computer</a>)</p>
<div id="dlg-result" class="dialog">
<h3 id="result">Checkmate: White wins!</h3>
<p>Do you want to <a href="/">start a new game</a>?</p>
<div id="dlg-promote" class="dialog">
Promote to?
<script type="text/javascript">
var canvas = document.getElementById("board");
var clocks = document.getElementById("clocks");
var chess = new ChessGame(canvas, clocks, "{{.}}");
<div class="stats">
<span id="numPlayers">N/A</span> players online
© Christoph Hack, 2012. Grab the source on
<a href="">GitHub</a>.<br />
Proudly powered by <a href="">Go 1.2</a>!