-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path2try_again.html
More file actions
98 lines (84 loc) · 2.57 KB
/
2try_again.html
File metadata and controls
98 lines (84 loc) · 2.57 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Try Again</title>
<style>
body {
font-family: 'Trebuchet MS', sans-serif;
background-image: url('Images/Level 2/tryagain.png');
background-size: cover;
background-color: #0e0d0d47;
background-blend-mode: darken;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
.container {
background-color: rgba(0, 0, 0, 0.5); /* Darken the background */
padding: 20px;
border-radius: 10px;
text-align: center;
}
.logo {
width: 150px;
height: auto;
position: absolute;
top: 20px;
left: 20px;
animation: wiggle 4s linear infinite;
}
h1 {
color: #ffffff;
margin-bottom: 20px;
}
p {
color: #c1c1c1;
margin-bottom: 30px;
}
.score {
font-size: 20px;
color: #eadda7;
font-weight: bolder;
}
.try-again-button {
background-color: #d92809;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-family: 'Trebuchet MS', Arial, sans-serif;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.try-again-button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<img src="Images/LogoR.png" alt="Green Gamify Logo" class="logo">
<div class="container">
<h1>TRY AGAIN!</h1>
<p>Unfortunately, you didn't score enough points to proceed to the next level.</p>
<p class="score">Your score: <span id="score"></span></p>
<button class="try-again-button">Try Again</button>
</div>
<script>
// JavaScript code to retrieve and display the score from the URL parameter
// Redirect to level2.html when Try Again button is clicked
document.querySelector('.try-again-button').addEventListener('click', function () {
window.location.href = 'level2.html';
});
</script>
</body>
</html>