-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalas.html
More file actions
68 lines (55 loc) · 1.25 KB
/
alas.html
File metadata and controls
68 lines (55 loc) · 1.25 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
html, body {
margin: 0;
padding: 0;
background: transparent !important;
}
:root {
color-scheme: light;
}
.audio-container {
display: flex;
align-items: center;
gap: 0px;
background: transparent;
}
#btnRepetir {
width: 35px; /* ajusta tamaño si quieres */
cursor: pointer;
margin-right: -10px;
}
audio {
width: 100%;
background: transparent !important;
}
audio::-webkit-media-controls,
audio::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-panel {
background: transparent !important;
box-shadow: none !important;
}
</style>
</head>
<body>
<div class="audio-container">
<!-- BOTÓN PERSONALIZADO -->
<img src="replay_icon.png" id="btnRepetir" alt="Repetir">
<!-- REPRODUCTOR -->
<audio id="miAudio" controls loop>
<source src="https://raw.githubusercontent.com/Sphirox/ESRI-Botella/main/menosdosalas.mp3" type="audio/mpeg">
</audio>
</div>
<script>
const audio = document.getElementById("miAudio");
const boton = document.getElementById("btnRepetir");
boton.addEventListener("click", function() {
audio.currentTime = 0;
audio.play();
});
</script>
</body>
</html>