-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (46 loc) · 977 Bytes
/
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="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Est-ce que l'ascenseur de Nantes est utilisable ?</title>
<style>
h1 {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#answer {
position: absolute;
display: block;
top: 30%;
left: 50%;
text-transform: uppercase;
transform: translate(-50%, -50%);
cursor: pointer;
}
#img {
position: absolute;
display: block;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<h1>
<span id="answer" onclick="audio.play();">
Oui
</span>
<img id="img" src="Oui.gif" />
</h1>
</body>
<script type="text/javascript">
const audio = new Audio();
audio.src = './surprise.mp3';
</script>
</html>