-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (87 loc) · 4 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<img class="game-over d-none" id="game-over" src="img/game-over.png">
<button onclick="restart()" id="restart-btn" class="restart-btn d-none">Restart</button>
<div class="players">
<div id="player-1" class="inactive-player">
<img src="img/circle.png">
<b style="color: white;">Player 1</b>
</div>
<div id="player-2">
<img src="img/cross.png">
<b style="color: white;">Player 2</b>
</div>
</div>
<div>
<div class="table-container">
<div id="line-1" class="horizontal-line"></div>
<div id="line-2" class="horizontal-line" style="top: 398px;"></div>
<div id="line-3" class="horizontal-line" style="top: 643px;"></div>
<div id="line-4" class="horizontal-line make-vertical" style="left: -246px;" ></div>
<div id="line-5" class="horizontal-line make-vertical"></div>
<div id="line-6" class="horizontal-line make-vertical" style="left: 276px;"></div>
<div id="line-7" class="horizontal-line make-diagonal" style="transform: rotate(45deg) scaleX(0.0); top: 401px; width: 816px;"></div>
<div id="line-8" class="horizontal-line make-diagonal" ></div>
</div>
<div style="position: relative;">
<table>
<tr>
<td onclick="fillShape(0)">
<img id="circle-0" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-0" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(1)">
<img id="circle-1" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-1" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(2)">
<img id="circle-2" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-2" class="shape d-none" src="img/cross.png" alt="">
</td>
</tr>
</table>
<table>
<tr>
<td onclick="fillShape(3)">
<img id="circle-3" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-3" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(4)">
<img id="circle-4" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-4" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(5)">
<img id="circle-5" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-5" class="shape d-none" src="img/cross.png" alt="">
</td>
</tr>
</table>
<table>
<tr>
<td onclick="fillShape(6)" class="border">
<img id="circle-6" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-6" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(7)" class="border">
<img id="circle-7" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-7" class="shape d-none" src="img/cross.png" alt="">
</td>
<td onclick="fillShape(8)" class="border">
<img id="circle-8" class="shape d-none" src="img/circle.png" alt="">
<img id="cross-8" class="shape d-none" src="img/cross.png" alt="">
</td>
</tr>
</table>
</div>
</div>
</body>
</html>