-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathend.html
More file actions
31 lines (30 loc) · 989 Bytes
/
end.html
File metadata and controls
31 lines (30 loc) · 989 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Battle</title>
</head>
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
rel="stylesheet"
/>
<body class="end" id="end">
<div id="title"></div>
<video autoplay loop muted id="myVideo" width="100%" height="100%">
<source src="./img/ending.mp4" type="video/mp4" />
</video>
</body>
<script>
if (localStorage.getItem("isHeroDead") === "true") {
document.getElementById("title").innerHTML = `<h1>${localStorage.getItem(
"name"
)} est mort</h1>`;
} else {
document.getElementById("title").innerHTML = `<h1>Ennemi est mort</h1>`;
}
</script>
<script src="./controllers/index.js" type="module"></script>
</html>