-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (37 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Breakout Game</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
</head>
<body>
User name: <input type="text" id="username" maxlength="5" /> <button id="buttonStart" onclick="start()">Start</button>
Score: <span id="score"></span>
Level: <span id="level"></span>
<a id="restart" class="hide" href onclick="location.reload()">Restart</a>
<div class="grid"></div>
<table id="scoreboard" border="1">
<thead>
<tr>
<td>User</td>
<!-- <td>Level</td> -->
<td>Score</td>
</tr>
</thead>
<tbody id="scoreboard-body">
</tbody>
</table>
<ul>
<li>Type your name in "User name"</li>
<li>Press "Start"</li>
<li>Controll the base/platform with "Arrow Keys"</li>
</ul>
<script src="https://www.gstatic.com/firebasejs/8.2.5/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.5/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.5/firebase-firestore.js"></script>
<script src="index.js"></script>
</body>
</html>