-
Notifications
You must be signed in to change notification settings - Fork 17
/
map.html
73 lines (55 loc) · 2.35 KB
/
map.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
<!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>Treasure Hunt</title>
<link rel="stylesheet" href="css/map.css">
<link rel="stylesheet" href="css/all.min.css">
<link rel="shortcut icon" href="images/favicon.png" type="image/png">
</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>
<button class="goback"><a href="./index.html"><i class="fas fa-home"></i></a></button>
</div>
<audio autoplay
loop
src="audio/memory.mp3" id="player">
Your browser does not support the
element.
</audio>
<section class="hunt">
<div class="token" id="token">
<img class="goblet" src="./images/goblet.png">
<img class="cup" src="./images/cup.png" alt="Cup">
<img class="sorted" src="./images/sorted.png" alt="Sorting Hat">
<div class="wand">
Toggle your wand around and look for the treasures!
</div>
</div>
<div class="second">
<img class="coat" src="images/coat.png" alt="Coat">
<img class="snitch" src="./images/snitch.png" alt="Snitch">
<img src="./images/gem.png" class="gem" alt="Gem">
</div>
</div>
</section>
<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>