/
index.html
175 lines (154 loc) · 8.93 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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8">
<title>Tic-Tac-Toe</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" type="png/icon" href="assets/Group.png" />
</head>
<body>
<h1 style="color: #00F5B8;">Welcome to <a style="color: hsl(86, 94%, 56%); text-decoration: none;" href="http://ankurrev.tech/" target="_blank">Ankur</a>'s Tic-Tac-Toe</h1>
<br>
<br>
<div class="container">
<svg class="ghost" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="60px" height="60px" viewBox="0 0 127.433 132.743" enable-background="new 0 0 127.433 132.743"
xml:space="preserve">
<path fill="#00F5B8" d="M116.223,125.064c1.032-1.183,1.323-2.73,1.391-3.747V54.76c0,0-4.625-34.875-36.125-44.375
s-66,6.625-72.125,44l-0.781,63.219c0.062,4.197,1.105,6.177,1.808,7.006c1.94,1.811,5.408,3.465,10.099-0.6
c7.5-6.5,8.375-10,12.75-6.875s5.875,9.75,13.625,9.25s12.75-9,13.75-9.625s4.375-1.875,7,1.25s5.375,8.25,12.875,7.875
s12.625-8.375,12.625-8.375s2.25-3.875,7.25,0.375s7.625,9.75,14.375,8.125C114.739,126.01,115.412,125.902,116.223,125.064z"/>
<circle fill="#364544" cx="86.238" cy="57.885" r="6.667"/>
<circle fill="#364544" cx="40.072" cy="57.885" r="6.667"/>
<path fill="#013E51" d="M71.916,62.782c0.05-1.108-0.809-2.046-1.917-2.095c-0.673-0.03-1.28,0.279-1.667,0.771
c-0.758,0.766-2.483,2.235-4.696,2.358c-1.696,0.094-3.438-0.625-5.191-2.137c-0.003-0.003-0.007-0.006-0.011-0.009l0.002,0.005
c-0.332-0.294-0.757-0.488-1.235-0.509c-1.108-0.049-2.046,0.809-2.095,1.917c-0.032,0.724,0.327,1.37,0.887,1.749
c-0.001,0-0.002-0.001-0.003-0.001c2.221,1.871,4.536,2.88,6.912,2.986c0.333,0.014,0.67,0.012,1.007-0.01
c3.163-0.191,5.572-1.942,6.888-3.166l0.452-0.453c0.021-0.019,0.04-0.041,0.06-0.061l0.034-0.034
c-0.007,0.007-0.015,0.014-0.021,0.02C71.666,63.771,71.892,63.307,71.916,62.782z"/>
<circle fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" cx="18.614" cy="99.426" r="3.292"/>
<circle fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" cx="95.364" cy="28.676" r="3.291"/>
<circle fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" cx="24.739" cy="93.551" r="2.667"/>
<circle fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" cx="101.489" cy="33.051" r="2.666"/>
<circle fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" cx="18.738" cy="87.717" r="2.833"/>
<path fill="#00F5B8" stroke="#00F5B8" stroke-miterlimit="10" d="M116.279,55.814c-0.021-0.286-2.323-28.744-30.221-41.012
c-7.806-3.433-15.777-5.173-23.691-5.173c-16.889,0-30.283,7.783-37.187,15.067c-9.229,9.736-13.84,26.712-14.191,30.259
l-0.748,62.332c0.149,2.133,1.389,6.167,5.019,6.167c1.891,0,4.074-1.083,6.672-3.311c4.96-4.251,7.424-6.295,9.226-6.295
c1.339,0,2.712,1.213,5.102,3.762c4.121,4.396,7.461,6.355,10.833,6.355c2.713,0,5.311-1.296,7.942-3.962
c3.104-3.145,5.701-5.239,8.285-5.239c2.116,0,4.441,1.421,7.317,4.473c2.638,2.8,5.674,4.219,9.022,4.219
c4.835,0,8.991-2.959,11.27-5.728l0.086-0.104c1.809-2.2,3.237-3.938,5.312-3.938c2.208,0,5.271,1.942,9.359,5.936
c0.54,0.743,3.552,4.674,6.86,4.674c1.37,0,2.559-0.65,3.531-1.932l0.203-0.268L116.279,55.814z M114.281,121.405
c-0.526,0.599-1.096,0.891-1.734,0.891c-2.053,0-4.51-2.82-5.283-3.907l-0.116-0.136c-4.638-4.541-7.975-6.566-10.82-6.566
c-3.021,0-4.884,2.267-6.857,4.667l-0.086,0.104c-1.896,2.307-5.582,4.999-9.725,4.999c-2.775,0-5.322-1.208-7.567-3.59
c-3.325-3.528-6.03-5.102-8.772-5.102c-3.278,0-6.251,2.332-9.708,5.835c-2.236,2.265-4.368,3.366-6.518,3.366
c-2.772,0-5.664-1.765-9.374-5.723c-2.488-2.654-4.29-4.395-6.561-4.395c-2.515,0-5.045,2.077-10.527,6.777
c-2.727,2.337-4.426,2.828-5.37,2.828c-2.662,0-3.017-4.225-3.021-4.225l0.745-62.163c0.332-3.321,4.767-19.625,13.647-28.995
c3.893-4.106,10.387-8.632,18.602-11.504c-0.458,0.503-0.744,1.165-0.744,1.898c0,1.565,1.269,2.833,2.833,2.833
c1.564,0,2.833-1.269,2.833-2.833c0-1.355-0.954-2.485-2.226-2.764c4.419-1.285,9.269-2.074,14.437-2.074
c7.636,0,15.336,1.684,22.887,5.004c26.766,11.771,29.011,39.047,29.027,39.251V121.405z"/>
</svg>
<p class="shadowFrame"><svg version="1.1" class="shadow" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="61px" y="20px"
width="122.436px" height="39.744px" viewBox="0 0 122.436 39.744" enable-background="new 0 0 122.436 39.744"
xml:space="preserve">
<!-- <ellipse fill="#00F5B8" cx="61.128" cy="10" rx="30" ry="6"/> -->
</svg></p>
</div>
<br>
<br>
<div style="align-content: center;">
<section >
<div class="button">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div style = "background-color: #00F5B8 !important; color: #364544; margin: -15px -34px 0px -34px !important; height: 30px; border-radius: 2px;">
<h3 >BOT mode</h3>
</div>
<div style = "background-color: #364544 !important;"></div>
<div class="column">
<p>Choose ur destiny :/</p>
<div style="margin-top: -10px;" class="row">
<button id = "cross" for="cross" class="button button2" onClick="selectX()" >X</button>
<button id = "circle" for="circle" class="button button2" onClick="selectO()">O</button>
</div>
<br>
<div style = "background-color: #00F5B8!important; color: #364544; margin: -18px -34px 0px -34px !important; height: 30px;">
<h3>FRIEND mode</h3>
</div>
<div style = "background-color: #364544 !important;"></div>
<div class="column">
<p>Choose ur destiny :/</p>
<div class="row" style="margin-top: -7px;">
<button class="buttona button2" onClick="selectmX()">X</button>
<button class="buttona button2" onClick="selectmO()">O</button>
</div>
<br>
</div>
<div style = "background-color: #00F5B8!important; color: #364544; margin: -20px -34px 6px -34px !important; height: 30px;">
<h3>Enjoy the game :)</h3>
</div>
</section>
</div>
<br>
<br>
<br>
<section id="#table">
<table style="margin-top: -100px !important; margin-bottom: 155px !important;">
<tr>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="0"></td>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="1"></td>
<td style="border: 2px solid #364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="2"></td>
</tr>
<tr>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="3"></td>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="4"></td>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="5"></td>
</tr>
<tr>
<td style="border: 2px solid#364544 !important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="6"></td>
<td style="border: 2px solid #364544!important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="7"></td>
<td style="border: 2px solid #364544!important; background-color: #00F5B8; border-radius: 20px;" class="cell" id="8"></td>
</tr>
</table>
<div class="row">
<div class="row">
<h2 style="color: #00F5B8;" class="game--status"></h2>
<h2 style="color: #00F5B8;" class="game--count"></h2>
</div>
<div class="row">
<h2 style="color: #00F5B8;" class="game--status1"></h2>
<h2 style="color: #00F5B8;" class="game--count1"></h2>
</div>
</div>
<br>
<button class="button button2" onClick="refresh()">Reset</button>
</section>
<br>
<div>
<div style="margin-top: 577px; font-family: 20px !important;" class="endgame">
<div class="game--status text"></div>
<br>
<button class="buttonc button1 " onclick="refresh()">Retry</button>
</div>
</div>
<div>
<div style="margin-top: 577px; font-family: 20px !important;" class="endgamemulti">
<div class="text"></div>
<br>
<button class="buttonc button1 " onclick="refresh()">Retry</button>
</div>
</div>
<div style="background-color: #4c5a59f6 !important; height:150px; margin-left: -7.5px; margin-right: -7.5px;">
<h2 style="color: #00F5B8; padding-top:12px; margin-bottom: -3px;">Made with 🧡 and 🍵<h2>
<h4 style="color: #00F5B8;" >To get the code, visit this github repo</h4>
<a href="https://github.com/ankur12-1610/Tic-Tac-Toe" target="_blank"><i class="fa fa-github" style="font-size:30px; color: #00F5B8; padding-bottom: 10px;"></i></a>
</div>
<script>
$('button').on('click', function(){
$('button').removeClass('selected');
$(this).addClass('selected');
})
;</script>
<script src="main.js"></script>
</body>
</html>