This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (93 loc) · 5.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TicTacToe</title>
<link rel="stylesheet" href="tictactoe.css">
<script src="tictactoe.js" defer></script>
</head>
<body>
<div class="main-headline">
<h1>Tic Tac Toe</h1>
<h2 class="whosTurn"></h2>
<button class="icon-tl" type="button" onclick="returnToConfigs()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-settings">
<circle cx="12" cy="12" r="3"></circle>
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z">
</path>
</svg>
</button>
</div>
<main>
<h2 class="winner"></h2>
<div>
<div class="game-board">
<button type="button" onclick="setItem(this, 0,0)" class="box"></button>
<button type="button" onclick="setItem(this, 0,1)" class="box"></button>
<button type="button" onclick="setItem(this, 0,2)" class="box"></button>
<button type="button" onclick="setItem(this, 1,0)" class="box"></button>
<button type="button" onclick="setItem(this, 1,1)" class="box"></button>
<button type="button" onclick="setItem(this, 1,2)" class="box"></button>
<button type="button" onclick="setItem(this, 2,0)" class="box"></button>
<button type="button" onclick="setItem(this, 2,1)" class="box"></button>
<button type="button" onclick="setItem(this, 2,2)" class="box"></button>
</div>
<div class="playerConfigurations">
<button class="icon-tr" type="button" onclick="hideConfigs()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-x-square">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="9" y1="9" x2="15" y2="15"></line>
<line x1="15" y1="9" x2="9" y2="15"></line>
</svg>
</button>
<section>
<div class="top">
<div class="headline">
<h1><span class="playerOneColor">Config</span>u<span class="playerTwoColor">ration</span>
</h1>
</div>
</div>
<div class="bottom">
<div class="playerConfiguration">
<h1 class="playerOneColor">Player One</h1>
<label for="name">Name</label>
<input type="text" placeholder="(2 to 20 characters)" id="namePlayerOne" name="name"
required minlength="2" maxlength="20" value="">
<button type="button" class="button" onclick="chooseName()">Confirm Name</button>
<label for="color">Choose a color (Default is blue)</label>
<input id="colorPlayerOne" name="color" type="color" value="#00ffff">
<button type="button" class="button" onclick="chooseColor()">Confirm Color</button>
</div>
<div class="playerConfiguration">
<h1 class="playerTwoColor">Player Two</h1>
<label for="name">Name</label>
<input type="text" placeholder="(2 to 20 characters)" id="namePlayerTwo" name="name"
required minlength="2" maxlength="20" value="">
<button type="button" class="button" onclick="chooseName()">Confirm Name</button>
<label for="color">Choose a color (Default is red)</label>
<input id="colorPlayerTwo" name="color" type="color" value="#ff1491">
<button type="button" class="button" onclick="chooseColor()">Confirm Color</button>
</div>
</div>
</section>
</div>
</div>
<button class="buttonClassic" onclick="newGame()">New Game</button>
</main>
<div class="score">
<h2>Scores:</h2>
<div class="scorePlayerOne">
<h3 class="scorePlayerOne">Player One:</h3>
</div>
<div class="scorePlayerTwo">
<h3 class="scorePlayerTwo">Player Two:</h3>
</div>
</div>
</body>
</html>