-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
80 lines (73 loc) · 2.49 KB
/
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
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
<!DOCTYPE html>
<html lang="en">
<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>Harry Potter</title>
<link rel="shortcut icon" href="images/favicon.png" type="image/png" />
<link rel="stylesheet" href="css/all.min.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<section class="bg">
<div class="player">
<button class="play" onclick="document.getElementById('player').play()">
<i class="fas fa-play"></i>
</button>
<button
class="pause"
onclick="document.getElementById('player').pause()"
>
<i class="fas fa-pause"></i>
</button>
<button
class="volup"
onclick="document.getElementById('player').volume += 0.1"
>
<i class="fas fa-volume-up"></i>
</button>
<button
class="voldown"
onclick="document.getElementById('player').volume -= 0.1"
>
<i class="fas fa-volume-down"></i>
</button>
</div>
<audio autoplay loop id="player" src="audio/harry_potter_theme.mp3">
Your browser does not support the element.
</audio>
<img src="./images/text.png" alt="Harry Potter" class="text" />
<div class="middle">
<div class="icons">
<img src="./images/memo.png" class="token memo" alt="Pensieve" />
<button class="button">
<a href="memo.html">Memory Game</a>
</button>
</div>
<div class="options">
<img src="./images/badge.png" class="token" />
<button class="button">
<a href="getyourhouse.html">Get your House</a>
</button>
</div>
<div class="options">
<img src="./images/map.png" class="token" />
<button class="button">
<a href="map.html">Treasure Hunt</a>
</button>
</div>
</div>
<script>
function move(event) {
let X = event.clientX || event.touches[0].clientX;
let Y = event.clientY || event.touches[0].clientY;
document.documentElement.style.setProperty("--X", X + "px");
document.documentElement.style.setProperty("--Y", Y + "px");
}
document.addEventListener("mousemove", move);
document.addEventListener("touchpad", move);
</script>
</section>
</body>
</html>