-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (31 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="css/style.css" />
<title>DX Ball</title>
</head>
<body>
<h1>DX Ball</h1>
<button id="rules-btn" class="btn rules-btn">Show Rules</button>
<div id="rules" class="rules">
<h2>How To Play:</h2>
<p>
Use your right and left keys to move the paddle to bounce the ball up
and break the blocks.
</p>
<p>If you miss the ball, your score and the blocks will reset.</p>
<button id="close-btn" class="btn">Close</button>
</div>
<section class="result">
<h2>Your score</h2>
<h2 class="score">20</h2>
<button class="btn play-again">Play again</button>
<!-- <h2 class="max-score">0</h2> -->
</section>
<canvas id="canvas" width="800" height="600"></canvas>
<script src="js/script.js"></script>
</body>
</html>