-
Notifications
You must be signed in to change notification settings - Fork 0
/
audio.html
65 lines (55 loc) · 1.55 KB
/
audio.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
<head>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" />
<script>
function load() {
switch (localStorage.getItem('id')) {
case "KEKW":
document.getElementById("play").src = './audio/KEKW.mp3';
document.getElementById("view").src = './images/kekW.jpg';
break;
}
}
</script>
<style>
.close {
opacity: 0.7;
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
text-decoration: none;
}
.play {
opacity: 0.7;
position: absolute;
bottom: 40vh;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
text-decoration: none;
}
body {
overflow: hidden;
margin: 1px;
}
div {
-webkit-app-region: drag;
}
a {
-webkit-app-region: no-drag;
}
</style>
</head>
<body onload="load()">
<audio id="play">
<source src="" type="audio/mp3" />
</audio>
<div class="d">
<img id="view" class="vw-100 vh-100" src="" >
<a class="play" href="javascript:document.getElementById('play').play()">
<img style="height: 64px; width: 64px;" src="./images/play.png" >
</a>
</div>
<a class="close" href="javascript:window.close()">Close</a>
</body>