-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
66 lines (62 loc) · 2.42 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
<!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>Breakout!</title>
</head>
<body>
<div id="theBody">
<ul class="images">
<li> <img class="firstCloud" src="./Background_images/cloud.png" alt=""></li>
<li> <img class="secondCloud" src="./Background_images/cloud.png" alt=""></li>
<li> <img class="thirdCloud" src="./Background_images/cloud.png" alt=""></li>
</ul>
<div id="hello" style="display: none;"></div>
<h1>Breakout!</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>
<div id="dificulty">
<div id="formCont">
<span></span>
<span></span>
<span></span>
<span></span>
<form id="form">
<label for="name" style="font-weight: bold"
>Please enter your name:</label
><br /><br />
<input type="text`" id="name" name="name" /><br />
<br />
<button class="easy-btn level-btn" style="background-color: green">Easy</button>
<button class="med-btn level-btn" style="background-color: orange">Medium</button>
<button class="hard-btn level-btn" style="background-color: red">Hard</button
><br />
<input type="button" id="start" value="Start" required class="start-btn"/>
<div class="error-div"></div>
</form>
</div>
<canvas id="canvas" width="800" height="600" style="display: none;"></canvas>
<div class="popup" id="popup">
<h2 class="pop-up-header">Game Over</h2>
<h3 id="finalScore"></h3>
<button type="button" onclick="repeatGame()">Repeat</button>
</div>
</div>
<script src="./javascript/Paddle.js"></script>
<script src="./javascript/Ball.js"></script>
<script src="./javascript/Bricks.js"></script>
<script src="./javascript/BonusLife.js"></script>
<script src="./javascript/main.js"></script>
</body>
</html>