-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tic-Tac-Toe</title>
<!-- Bootstrap CDN -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<!-- Your custom styles -->
<link rel="stylesheet" href="style.css" />
<!-- JavaScript for game logic -->
<script src="script.js" defer></script>
</head>
<body class="container text-center">
<div class="row justify-content-center">
<div class="col-lg-6">
<!-- Game Title -->
<h1 class="mb-4">Tic-Tac-Toe</h1>
<!-- Dark/Light Mode Toggle Button -->
<button id="modeToggleBtn" class="btn btn-secondary" onclick="toggleMode()">
Toggle Dark Mode
</button>
<!-- Game Board -->
<div id="board"></div>
<!-- Status message -->
<div id="status" class="mt-3"></div>
<!-- Reset Button -->
<button id="resetBtn" class="btn btn-primary mt-4" onclick="resetGame()">Reset Game</button>
</div>
</div>
<!-- Optional Bootstrap JavaScript and dependencies -->
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
></script>
</body>
</html>