-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
84 lines (79 loc) · 3.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lights Out Game</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=VT323">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1 class="text-center title-header">Lights Out</h1>
<!-- Add a toggle switch for dark mode -->
<div class="dark-mode-toggle">
<input type="checkbox" id="darkModeToggle">
<label for="darkModeToggle">Dark Mode</label>
</div>
<p id="count">Click Count: 0</p>
<div id="game-over" class="text-center" style="display: none;">
<h1>Game Over!</h1>
<p id="score"></p>
<button id="reset-button">Play Again</button>
</div>
<div class="container" id="container">
<div class="row">
<div class="col-md-6 offset-md-3 animated fadeIn game-cont">
<div class="row text-center">
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
</div>
<div class="row text-center">
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
</div>
<div class="row text-center">
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
</div>
<div class="row text-center">
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
</div>
<div class="row text-center">
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
<div class="lightit"></div>
</div>
</div>
<div class="col-md-3">
<div class="well how-to">
<h3>How to play:</h3>
<p>Click on any of them to turn it and the four direct neighboring lights off or on.</p>
<p><strong>Win by closing all the lights.</strong></p>
<button id="reset-button-now">Reset Game</button>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"></script>
<script src="./script.js"></script>
</body>
</html>