-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (71 loc) · 2.59 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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi-player Tic Tac Toe Game</title>
<link rel="stylesheet" type="text/css" href="tictac.css">
<script src="https://kit.fontawesome.com/ac97327f06.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="main">
<div class="game-name">
<div class="text-bg"><h1>T</h1></div>
<div class="text-bg"><h1>i</h1></div>
<div class="text-bg"><h1>c</h1></div>
<div class="text-bg"><h1>T</h1></div>
<div class="text-bg"><h1>a</h1></div>
<div class="text-bg"><h1>c</h1></div>
<br>
<!-- <h2 id="toe">Toe</h2> -->
</div>
<h3>Toe</h3>
<!--Space to show player's turn-->
<p id="print">Click on one box to start</p>
<div class="btn-bg">
<!-- My 3-box grid-->
<input type="text" id="box1" onclick="myfunc_3(); myfunc(); " readonly>
<input type="text" id="box2" onclick="myfunc_4(); myfunc(); " readonly>
<input type="text" id="box3" onclick="myfunc_5(); myfunc(); " readonly>
<input type="text" id="box4" onclick="myfunc_6(); myfunc(); " readonly>
<input type="text" id="box5" onclick="myfunc_7(); myfunc(); " readonly>
<input type="text" id="box6" onclick="myfunc_8(); myfunc(); " readonly>
<input type="text" id="box7" onclick="myfunc_9(); myfunc(); " readonly>
<input type="text" id="box8" onclick="myfunc_10(); myfunc(); " readonly>
<input type="text" id="box9" onclick="myfunc_11(); myfunc(); " readonly>
<!--End of grid-->
</div>
<!--Reset button-->
<button id="reset" onclick="myfunc_2()">
RESET
</button>
<div class="myhandles">
<a href="https://www.linkedin.com/in/mohammed-awal-dev" target="_blank" title="Linkedin Profile"><i class="fa-brands fa-linkedin"></i></a>
<a href="https://github.com/wanez17" title="Github repository"><i class="fa-brands fa-github"></i></a>
<a href="https://mohammedawaldev.netlify.app" title="Portfolio website"><i class="fa-solid fa-globe"></i></a>
</div>
</div>
<div class="o-style">
<h1>O</h1>
</div>
<div class="x-style">
<h1>X</h1>
</div>
<!-- Creating a DIV for animating the background -->
<div class="area">
<ul class="circles">
<li>O</li>
<li>X</li>
<li>O</li>
<li></li>
<li>X</li>
<li>O</li>
<li></li>
<li></li>
<li></li>
<li>X</li>
</ul>
</div>
<script src="tictac.js"></script>
</body>
</html>