-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (109 loc) · 2.25 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Kirang+Haerang" rel="stylesheet">
<style>
canvas{
width: 35vw;
height: 35vw;
box-sizing: border-box;
display: block;
margin: auto;
padding: 0;
cursor: pointer;
}
body{
margin:0;
padding: 0;
height: 100%;
display: grid;
background-image: url('cloud.jpeg');
}
html {
margin:0;
padding: 0;
height: 100%;
}
h1 {
padding: 0;
text-align: center;
font-size: 50px;
position: fixed;
margin: 0;
width: 100%;
font-family: 'Kirang Haerang', cursive;
}
#fixed{
position: fixed;
width: 100%;
bottom: 15px;
}
#button {
display: block;
margin: auto;
padding: 8px;
border-radius: 5px;
font-size: 25px;
font-family: 'Kirang Haerang', cursive;
text-align: center;
width:90px;
background-color: #d7aefb;
border: 1px solid black;
}
#button:hover{
background-color: #dbb2ff;
cursor: pointer;
}
#player1{
top:45%;
}
#player2{
top:50%;
}
#status {
position: fixed;
right: 5%;
background-color: rgba(255,255,255,0.4);
top: 45%;
font-size: 2.5vw;
font-family: 'Kirang Haerang', cursive;
border-radius: 10px;
padding: 10px;
}
#score{
position: fixed;
font-size: 2.5vw;
font-family: 'Kirang Haerang', cursive;
left: 5%;
top: 45%;
background-color: rgba(255,255,255,0.4);
border-radius: 10px;
padding: 10px;
}
</style>
<meta charset="utf-8">
<title>Tic Tac Toe</title>
<meta name="description" content="Simple Tic Tac Toe Game">
<meta name="author" content="JusteenR">
</head>
<body>
<h1> Tic Tac Toe </h1>
<div id="score">
<div id="player1">
Player1 Score: 0
</div>
<div id="player2">
Player2 Score: 0
</div>
</div>
<div id="status">
Player 1's Turn
</div>
<canvas id="outer" width="600px" height="600px">
</canvas>
<div id="fixed">
<button id="button" onclick="tic.reset()" type="reset">Reset</button>
</div>
<script src="tictactoe.js"></script>
</body>
</html>