-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (56 loc) · 1.75 KB
/
index.html
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
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tic Tac Toe</title>
<meta name="description" content="Pure HTML5 / Javascript tic-tac-toe game. Doesn't use brute force algorithms for the AI turns. Source code fully commented.">
<link rel=icon href="favicon.png">
<link rel=stylesheet href="tic-tac-toe.css">
<!--[if IE]><link rel=stylesheet href="ie-fix-tic-tac-toe.css"><![endif]-->
<link rel=stylesheet media="(max-width: 320px)" href="narrow-tic-tac-toe.css">
<link rel=stylesheet media="(max-width: 260px)" href="super-narrow-tic-tac-toe.css">
<div class="centralized">
<div id=top-bar>
<div id=stats>
<div>Wins: <span id=wins>0</span></div>
<div>Draws: <span id=draws>0</span></div>
<div>Losses: <span id=losses>0</span></div>
</div>
<div id=status></div>
</div>
</div>
<div id=middle>
<div class="centralized">
<div id=board-container>
<div id=board hidden>
<div>
<div><div id=square-1-1></div></div>
<div><div id=square-1-2></div></div>
<div><div id=square-1-3></div></div>
</div>
<div>
<div><div id=square-2-1></div></div>
<div><div id=square-2-2></div></div>
<div><div id=square-2-3></div></div>
</div>
<div>
<div><div id=square-3-1></div></div>
<div><div id=square-3-2></div></div>
<div><div id=square-3-3></div></div>
</div>
</div>
</div>
</div>
</div>
<div id=bottom>
<div class="centralized">
<div id=bottom-bar>
<input type=button id=new-game href="#new-game" value="New Game">
<div id=turn-stat>Loading...</div>
</div>
<footer id=page-footer>
<a href="https://github.com/odraencoded/html-tic-tac-toe">@github</a>
</footer>
</div>
</div>
<script src="tic-tac-toe.js"></script>