-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
64 lines (58 loc) · 2.69 KB
/
index.php
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
<?php
require_once __DIR__ . '/lib/lessc.inc.php';
require_once __DIR__ . '/lib/Less.php';
$less = new Less('less/style.less', 'css/style.css');
$less->imgPath = '/images/';
$less->compile(__DIR__ . '/less');
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<meta name="author" content="Jáchym Toušek" />
<meta name="copyright" content="2011 Jáchym Toušek" />
<title>Gomoku</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="bookmark icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" />
<script src="/js/head.js"></script>
<script>
head.js('/js/jquery-1.4.4.js', '/js/class.js', '/js/script.js');
</script>
</head>
<body>
<div id="new">
<h1>Nová hra</h1>
<div class="option">
<h2>Typ hry</h2>
<input type="radio" name="type" id="form-type-0" value="0" checked="checked" /><label for="form-type-0">hráč vs. počítač</label>
<input type="radio" name="type" id="form-type-1" value="1" /><label for="form-type-1">počítač vs. hráč</label>
<input type="radio" name="type" id="form-type-2" value="2" /><label for="form-type-2">2 hráči</label>
</div>
<div class="option begin">
<h2>Začínající hráč</h2>
<input type="radio" name="image" id="form-image-0" value="0" checked="checked" /><label for="form-image-0"><img src="/img/cross.png" alt="X" title="křížek" /></label>
<input type="radio" name="image" id="form-image-1" value="1" /><label for="form-image-1"><img src="/img/circle.png" alt="O" title="kolečko" /></label>
</div>
<input type="submit" id="play" value="Začít hru">
</div>
<div id="game">
<table>
<tbody>
<?php
for ($i = 0; $i < 19; $i++) {
echo "<tr>\n";
for ($j = 0; $j < 19; $j++) {
echo "<td></td>\n";
}
echo "</tr>\n";
}
?>
</tbody>
</table>
<a id="reset" href="/">Začít novou hru</a>
</div>
</body>
</html>