-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (78 loc) · 1.88 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
<!DOCTYPE html>
<html>
<head>
<title> TIC TAC TOE</title>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box
}
.gameboard {
background: #000;
color: #fff;
width: 300px;
overflow: hidden;
margin: 50px auto 0 auto;
}
#turn {
width: 100%;
display: block;
text-align: center;
font-family: sans-serif;
color: #000;
font-size: 25px;
background: #909497;
}
.gameboard .box {
float: left;
width: 100px;
height: 100px;
border: 1px solid #fff;
transition: all .25s ease-in-out;
font-family: sans-serif;
font-size: 85px;
text-align: center;
line-height: 100px;
cursor: pointer;
}
.gameboard .box:hover {
background: #BAB4B3;
color: #fff;
}
button {
background: #E74C3C;
color: #fff;
font-weight: bold;
border: 1px solid yellow;
cursor: pointer;
width: 200px;
height: 40px;
font-size: 22px;
display: block;
margin: 10px auto
}
.win {
background: #26C281;
color: #fff
}
</style>
</head>
<body>
<div class="gameboard" id="main">
<span id="turn">Play</span>
<div class="box" id="b1"></div>
<div class="box" id="b2"></div>
<div class="box" id="b3"></div>
<div class="box" id="b4"></div>
<div class="box" id="b5"></div>
<div class="box" id="b6"></div>
<div class="box" id="b7"></div>
<div class="box" id="b8"></div>
<div class="box" id="b9"></div>
</div>
<button id="replay">Re-Start</button>
<script type="text/javascript" src="TicTacToe.js"></script>
</body>
</html>