-
Notifications
You must be signed in to change notification settings - Fork 71
/
index.html
180 lines (174 loc) · 4.86 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<!-- FontAwesome -->
<link rel="icon" type="image/x-png" href="images/favicon.png" />
<script
src="https://kit.fontawesome.com/5587893eae.js"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<title>Let's Play the Game !!!</title>
</head>
<body>
<div class="container">
<i
class="fa-solid fa-moon"
id="light-icon"
aria-hidden="true"
onclick="change()"
></i>
<!-- //done by kushaljgec2530 -->
<i
id="home-icon"
onclick="reset()"
class="fa fa-home"
aria-hidden="true"
></i>
</div>
<div class="screen">
<img
src="images/pause-button.svg"
alt="Pause Button"
id="pause-button"
onclick="pauseGame()"
aria-hidden="true"
/>
<h2>Play with your Favorite Edible🎮</h2>
<button class="btn" id="start-btn">
Play Game!
<span></span><span></span><span></span><span></span>
</button>
</div>
<div class="screen">
<div class="screen-page">
<div></div>
<h1>Choose your favorite Fruit</h1>
<ul class="lists">
<li>
<button class="choose-btn">
<p>Apple</p>
<img src="images/apple.png" alt="Apple" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Banana</p>
<img src="images/banana.png" alt="Banana" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Guava</p>
<img src="images/guava.png" alt="Guava" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Mango</p>
<img src="images/mango.png" alt="Mango" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Watermelon</p>
<img src="images/watermelon.png" alt="Watermelon" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Orange</p>
<img src="images/orange.png" alt="Orange" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Grapes</p>
<img src="images/grapes.png" alt="Grapes" />
</button>
</li>
</ul>
<h1>OR</h1>
<h1>Choose your favorite Vegetable to continue..</h1>
<ul class="lists">
<li>
<button class="choose-btn">
<p>Broccoli</p>
<img src="images/broccoli.png" alt="Broccoli" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Cabbage</p>
<img src="images/cabbage.png" alt="Cabbage" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Carrot</p>
<img src="images/carrot.png" alt="Carrot" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Cauliflower</p>
<img src="images/cauliflower.png" alt="Cauliflower" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Tomato</p>
<img src="images/tomato.png" alt="Tomato" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Pumpkin</p>
<img src="images/pumpkin.png" alt="Pumpkin" />
</button>
</li>
<li>
<button class="choose-btn">
<p>Potato</p>
<img src="images/potato.png" alt="Potato" />
</button>
</li>
</ul>
</div>
</div>
<div id="pause-menu">
<p>PAUSED</p>
<div class="options">
<img
src="images/play-button.svg"
alt="Resume Playing"
class="play-button"
onclick="pauseGame()"
/>
<img
src="images/restart-button.svg"
alt="Restart Game"
class="restart-button"
onclick="restartGame()"
/>
<img
src="images/home-button.svg"
alt="Home"
class="home-button"
onclick="reset()"
/>
</div>
</div>
<div class="screen game-container" id="game-container">
<h3 id="time" class="time">Time: 00:00</h3>
<h3 id="score" class="score">Score: 0</h3>
</div>
<script src="script.js"></script>
</body>
</html>