-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (39 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="warpspeed.min.js"></script>
<script async defer src="script.js"></script>
</head>
<body>
<div style="position:fixed; z-index:0; top:0; left:0; width:100%; height:100%;">
<canvas id="canvas" style="width:100%; height:100%;"></canvas>
<script type="text/javascript">new WarpSpeed("canvas",'"speed":0.9,"speedAdjFactor":0.03,"density":3,"shape":"circle","warpEffect":true,"warpEffectLength":5,"depthFade":true,"starSize":5,"backgroundColor":"hsl(263,45%,7%)","starColor":"#FFFFFF"');</script>
</div>
<div style="position:fixed; z-index:1; top:0; left:0; width:100%; height:100%; overflow:auto;">
<h1 align="center">Tic Tac Toe Game</h1>
<h2 align="center">Turn : Player <span id="player"> X</span></h2>
<a class="aa" onclick="restartGame()">RESTART</a>
<table id="game" align="center">
<tr>
<td onclick="boxClick(1,1)"></td>
<td onclick="boxClick(1,2)"></td>
<td onclick="boxClick(1,3)"></td>
</tr>
<tr>
<td onclick="boxClick(2,1)"></td>
<td onclick="boxClick(2,2)"></td>
<td onclick="boxClick(2,3)"></td>
</tr>
<tr>
<td onclick="boxClick(3,1)"></td>
<td onclick="boxClick(3,2)"></td>
<td onclick="boxClick(3,3)"></td>
</tr>
</table>
</div>
</body>
</html>