-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (78 loc) · 3.66 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
<!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 id="game-over-image" src="img/game-over.jpg" style="display:none">
<button id="restart-btn" style="display:none" onclick="restart()">Restart</button>
<div class="player-panel">
<div id="player-1" class="player-inactive">
<img src='img/circle.svg'>Player 1
</div>
<div id="player-2">
<img src='img/cross.svg'>Player 2
</div>
</div>
<div style="position:relative">
<div id="line-1" class="horizontal-line" style="top:50px"></div>
<div id="line-2" class="horizontal-line" style="top:150px"></div>
<div id="line-3" class="horizontal-line" style="bottom:50px"></div>
<div id="line-4" class="horizontal-line make-vertical" style="top:150px;right:105px"></div>
<div id="line-5" class="horizontal-line make-vertical" style="top:150px"></div>
<div id="line-6" class="horizontal-line make-vertical" style="top:150px;left:105px"></div>
<div id="line-7" class="horizontal-line" style="top:150px;transform:rotate(45deg) scaleX(0)"></div>
<div id="line-8" class="horizontal-line make-vertical" style="top:150px;transform:rotate(-45deg) scaleX(0)">
</div>
<table>
<tr>
<td onclick="fillShape(0)">
<img id="circle-0" class="shape d-none" src='img/circle.svg'>
<img id="cross-0" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(1)">
<img id="circle-1" class="shape d-none" src='img/circle.svg'>
<img id="cross-1" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(2)">
<img id="circle-2" class="shape d-none" src='img/circle.svg'>
<img id="cross-2" class="shape d-none" src='img/cross.svg'>
</td>
</tr>
<tr>
<td onclick="fillShape(3)">
<img id="circle-3" class="shape d-none" src='img/circle.svg'>
<img id="cross-3" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(4)">
<img id="circle-4" class="shape d-none" src='img/circle.svg'>
<img id="cross-4" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(5)">
<img id="circle-5" class="shape d-none" src='img/circle.svg'>
<img id="cross-5" class="shape d-none" src='img/cross.svg'>
</td>
</tr>
<tr>
<td onclick="fillShape(6)">
<img id="circle-6" class="shape d-none" src='img/circle.svg'>
<img id="cross-6" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(7)">
<img id="circle-7" class="shape d-none" src='img/circle.svg'>
<img id="cross-7" class="shape d-none" src='img/cross.svg'>
</td>
<td onclick="fillShape(8)">
<img id="circle-8" class="shape d-none" src='img/circle.svg'>
<img id="cross-8" class="shape d-none" src='img/cross.svg'>
</td>
</tr>
</table>
</div>
</body>
</html>