-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (64 loc) · 2.74 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
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/ticTacToe.css">
<script src="js/jquery.js"></script>
<script src="js/display.js"></script>
<script src="js/game.js"></script>
<title>Tic Tac Toe</title>
</head>
<body>
<div class="container">
<img id="notepad" src="img/notepad.jpg" alt="Notepad background" id="notepad">
<div class="game">
<div class="board">
<img src="img/TTT.png" alt="Tic-tac-toe board" id="board">
<div class="square top left" id='topLeft' tabindex="0">
<img id='xTopLeft' class="x" src="img/X.png" alt="">
<img id='zeroTopLeft' class="zero" src="img/0.png" alt="">
</div>
<div class="square top" id='top' tabindex="0">
<img id='xTop' class="x" src="img/X.png" alt="">
<img id='zeroTop' class="zero" src="img/0.png" alt="">
</div>
<div class="square top right" id='topRight' tabindex="0">
<img id='xTopRight' class="x" src="img/X.png" alt="">
<img id='zeroTopRight' class="zero" src="img/0.png" alt="">
</div>
<div class="square left" id='left' tabindex="0">
<img id='xLeft' class="x" src="img/X.png" alt="">
<img id='zeroLeft' class="zero" src="img/0.png" alt="">
</div>
<div class="square center" id='center' tabindex="0">
<img id='xCenter' class="x" src="img/X.png" alt="">
<img id='zeroCenter' class="zero" src="img/0.png" alt="">
</div>
<div class="square right" id='right' tabindex="0">
<img id='xRight' class="x" src="img/X.png" alt="">
<img id='zeroRight' class="zero" src="img/0.png" alt="">
</div>
<div class="square bottom left" id='bottomLeft' tabindex="0">
<img id='xBottomLeft' class="x" src="img/X.png" alt="">
<img id='zeroBottomLeft' class="zero" src="img/0.png" alt="">
</div>
<div class="square bottom" id='bottom' tabindex="0">
<img id='xBottom' class="x" src="img/X.png" alt="">
<img id='zeroBottom' class="zero" src="img/0.png" alt="">
</div>
<div class="square bottom right" id='bottomRight' tabindex="0">
<img id='xBottomRight' class="x" src="img/X.png" alt="">
<img id='zeroBottomRight' class="zero" src="img/0.png" alt="">
</div>
</div>
</div>
<div class="scoreboard">
<h2 class="tally">Player X: <span id="scoreX"></span></h2>
<h2 class="tally">Player 0: <span id="score0"></span></h2>
<input type="button" id="resetButton" value="Reset"/>
</div>
</div>
</body>
</html>