-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (117 loc) · 4.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
integrity="sha512-Avb2QiuDEEvB4bZJYdft2mNjVShBftLdPG8FJ0V7irTLQ8Uo0qcPxh4Plq7G5tGm0rU+1SPhVotteLpBERwTkw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./main.css" />
<title>Tic Tac Toe Game</title>
</head>
<body>
<!-- Dialog start -->
<dialog id="settingsDialog">
<div class="form-container">
<form id="form" method="dialog">
<div class="group">
<label for="game-mode">Game Mode</label>
<select name="game-mode" id="game-mode" required>
<option class="placeholder" selected disabled value="">Select Game Mode</option>
<option value="player-player">Player VS Player</option>
<option value="player-machine">Player VS Machine</option>
</select>
</div>
<div class="group">
<label for="player-name-one">Player Name One</label>
<input
type="text"
name="player-name-one"
id="player-name-one"
placeholder="Player One"
maxlength="15"
title="maximum 15 characters"
required
/>
</div>
<div class="group">
<label for="token-one">Token of Player One</label>
<select name="token-one" id="token-one">
<option class="placeholder" selected disabled value="">Select Token</option>
<option value="X">X</option>
<option value="O">O</option>
</select>
</div>
<div id="machine-group" class="group">
<label for="player-name-two">Player Name Two</label>
<input
type="text"
name="player-name-two"
id="player-name-two"
placeholder="Player Two"
maxlength="15"
title="maximum 15 characters"
required
/>
</div>
<div class="group">
<input id="submitBtn" type="submit" value="Send" />
</div>
<div class="group">
<button id="closeBtn" type="button">Close</button>
<button id="cleanBtn" type="reset">Clean</button>
</div>
</form>
</div>
</dialog>
<!-- End Dialog -->
<header>
<h1 class="title">TIC TAC TOE</h1>
<i id="ambient-btn" class="fa fa-sun" aria-hidden="true"></i>
</header>
<div class="main">
<div class="btn-container">
<button type="button" class="settings-btn">
<i class="fa-solid fa-gear"></i> Settings
</button>
<button type="button" class="reset-btn">
<i class="fa-solid fa-arrow-rotate-left"></i> Reset
</button>
</div>
<div class="turn-box">
<h2 class="turn-message"></h2>
</div>
<div class="board-container">
<div class="grid-container">
<div id="cell-0" class="cell"></div>
<div id="cell-1" class="cell"></div>
<div id="cell-2" class="cell"></div>
<div id="cell-3" class="cell"></div>
<div id="cell-4" class="cell"></div>
<div id="cell-5" class="cell"></div>
<div id="cell-6" class="cell"></div>
<div id="cell-7" class="cell"></div>
<div id="cell-8" class="cell"></div>
</div>
</div>
<div class="message-box">
<h2 class="message"></h2>
</div>
</div>
<footer class="footer">
<a
class="footer-link"
target="_blank"
href="https://github.com/carlosfrontend"
><i class="fa-brands fa-github-alt"></i><small> Coded by Carlosfrontend</small>
©</a
>
</footer>
<script src="./index.js"></script>
</body>
</html>