-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (182 loc) · 8.51 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!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">
<meta name="keywords"
content="XO Game, XO, Online, Tic Tac Toe, game, online game, multiplayer game, strategy game, board game, free game, play Tic Tac Toe">
<meta name="description"
content="Play Tic Tac Toe online for free! Challenge your friends or test your skills against the computer. Enjoy a classic game of strategy and tactics.">
<meta name="robots" content="index, follow"> <!-- Control search engine indexing behavior -->
<meta name="author" content="XO Game">
<meta name="language" content="English">
<meta name="category" content="Games">
<meta name="referrer" content="origin">
<meta name="copyright" content="2024, Rishi Vishwakarma [Developer]">
<meta name="generator" content="Rishi Vishwakarma [Developer]">
<meta name="revised" content="2024-04-07">
<meta name="distribution" content="global">
<meta name="rating" content="General">
<meta name="theme-color" content="#ffffff">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="XO Game">
<meta property="og:description"
content="Challenge your friends to a game of Tic Tac Toe! Play strategically to outsmart your opponent and claim victory. Tic Tac Toe Challenge brings classic fun to your fingertips.">
<meta property="og:url" content="https://rishiwebdeveloper1.github.io/tic-tac-toe/">
<meta property="og:image" content="https://rishiwebdeveloper1.github.io//tic-tac-toe/images/XO_icon.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="XO Game">
<meta property="twitter:description"
content="Challenge your friends to a game of Tic Tac Toe! Play strategically to outsmart your opponent and claim victory. Tic Tac Toe Challenge brings classic fun to your fingertips.">
<meta property="twitter:image" content="https://rishiwebdeveloper1.github.io//tic-tac-toe/images/XO_icon.png">
<!-- WhatsApp -->
<meta property="og:site_name" content="XO Game">
<meta property="og:whatsapp" content="send">
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "Tic Tac Toe Game",
"url": "https://example.com/tic-tac-toe",
"description": "Play Tic Tac Toe online for free! Enjoy classic Tic Tac Toe gameplay with friends or against the computer. Have fun and test your strategic skills!",
"keywords": "Tic Tac Toe, game, online game, multiplayer game, strategy game, board game, free game, play Tic Tac Toe",
"author": {
"@type": "Person",
"name": "Your Name or Your Company"
}
}
</script>
<title>XO Game</title>
<link rel="shortcut icon" href="images\XO_icon.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="script.js">
</head>
<body>
<header>
<div class="logo">OX Game</div>
<input type="checkbox" id="nav_check" hidden>
<nav>
<ul>
<li style=" width: 50px;">
<a href="../index.html" class="active" style=" width: 40px;">HoMe</a>
</li>
<li style="width: 58px;">
<a href="../html/contact.html" style="width: 48px;">Event</a>
</li>
<li style="width: 55px;">
<a href="../html/about.html" style="width: 45px;">About</a>
</li>
<li style="width: 45px;">
<a href="../html/help.html" style="width: 35px;">More</a>
</li>
<!-- <li>
<a href="">About</a>
</li> -->
</ul>
</nav>
<label for="nav_check" class="hamburger">
<div></div>
<div></div>
<div></div>
</label>
</header>
<main>
<div class="megacontainer">
<div class="score-board">
<div class="player" id="playerBox1">
<div class="player-name">
<div class="player-image" style="width: 17px;">
<img src="images/cross.png" alt="">
</div>
<div contenteditable="True">Player 1</div>
</div>
<div class="score" id="playerScore1">
0
</div>
</div>
<div class="player" id="playerBox2">
<div class="player-name">
<div class="player-image" style="width: 20px;">
<img src="images/circle.png" alt="">
</div>
<div contenteditable="True">Player 2</div>
</div>
<div class="score" id="playerScore2">
0
</div>
</div>
</div>
<div class="container">
<div class="mainBox">
<div class="box">
<div class="img-box" id="box1" onclick="boxShow1('box1')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box2" onclick="boxShow1('box2')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box3" onclick="boxShow1('box3')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box4" onclick="boxShow1('box4')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box5" onclick="boxShow1('box5')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box6" onclick="boxShow1('box6')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box7" onclick="boxShow1('box7')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box8" onclick="boxShow1('box8')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
<div class="box">
<div class="img-box" id="box9" onclick="boxShow1('box9')">
<!-- <img src="images\cross.png" alt=""> -->
</div>
</div>
</div>
</div>
<div class="container2">
<div class="result-show">
<div class="winner-image" id="winImg">
<!-- <img src="images\cross.png" alt=""> -->
</div>
<div class="winner-name" id="winName">
</div>
</div>
<div class="button-box">
<div class="button" class="reset" onclick="gameReset()">
<div>Clear</div>
</div>
<div class="button restart" onclick="gameRestart()">
<div>Restart</div>
</div>
</div>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>