-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlostinfinite.html
More file actions
104 lines (100 loc) · 2.51 KB
/
Copy pathlostinfinite.html
File metadata and controls
104 lines (100 loc) · 2.51 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
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
background-image: url('backgound.png'); /* Replace 'background.jpg' with your image name */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
.welcome {
height: 64px;
width: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
color: red;
border-radius: 3px;
font-size: 50px;
display: flex;
justify-content: center;
align-items: center;
}
#enter {
position: absolute;
bottom: 20px;
left: 25%;
transform: translateX(-50%);
background-color: #0817F3;
color: white;
border: none;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
}
#enter1 {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #0817F3;
color: white;
border: none;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
}
#enter2 {
position: absolute;
bottom: 20px;
left: 75%;
transform: translateX(-50%);
background-color: #0817F3;
color: white;
border: none;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
}
</style>
</head>
<body>
<h2 class="welcome">
GAME OVER!!
<form>
<input id="enter" type="button" value="Enter to Play again" onclick="switchtoindex()" />
<input id="enter1" type="button" value="Levels" onclick="switchtolevels()" />
<input id="enter2" type="button" value="Home" onclick="switchtoindexmain()" />
</form>
</h2>
<!-- <form class="welcome"> -->
<!-- </form> -->
<script>
let lostsound=new Audio('lost.wav');
lostsound.play();
function switchtoindex() {
window.location.href = "infinite.html";
}
function switchtolevels() {
window.location.href = "level.html";
}
function switchtoindexmain() {
window.location.href = "index.html";
}
</script>
</body>
</html>