-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (49 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Speed_game</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Odibee+Sans&family=Press+Start+2P&display=swap"
rel="stylesheet"
/>
</head>
<body>
<section>
<h1>Water the Flower 🌻</h1>
<div class="game-area">
<h2>Your score is: <span id="score">0</span></h2>
<div class="container">
<div class="circle"><span class="flower">🌻</span></div>
<div class="circle"><span class="flower">🌻</span></div>
<div class="circle"><span class="flower">🌻</span></div>
<div class="circle"><span class="flower">🌻</span></div>
</div>
<div class="container">
<button type="button" id="start" onclick="play()">Start game</button>
<button type="button" id="stop">Stop game</button>
</div>
</div>
</section>
<section id="overlay">
<div class="modal">
<p>UPs... game over !</p>
<p id="result"></p>
<button type="button" id="close">Close</button>
</div>
</section>
<audio
id="startMusic"
src="./forest-with-birds.ogg"
type="audio/ogg"
></audio>
<audio id="failMusic" src="./game-over.ogg" type="audio/ogg"></audio>
<script src="main.js"></script>
</body>
</html>