-
Notifications
You must be signed in to change notification settings - Fork 0
/
end.html
36 lines (33 loc) · 1.2 KB
/
end.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
<!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" />
<title>Congrats!</title>
<link rel="stylesheet" href="style.css" />
<link rel="shortcut icon" href="Assets/congratulation.png" type="image/x-icon">
</head>
<body>
<div class="container">
<div id="end" class="flex-center flex-column">
<h1 id="finalScore"></h1>
<!-- Form for saving the user's score -->
<form class="name_form">
<input type="text" name="username" id="username" placeholder="username" autocomplete="off" />
<!-- Error message for username validation -->
<div id="name_error">The user name field is required</div>
<!-- Button to save the score -->
<button type="submit" class="btn" id="saveScoreBtn" onclick="saveHighScore(event)">
Save
</button>
</form>
<!-- Links to play again or go home -->
<a class="btn" href="/game.html">Play Again</a>
<a class="btn" href="/">Go Home</a>
</div>
</div>
<!-- JavaScript file for end page functionality -->
<script src="end.js"></script>
</body>
</html>