2022-01-01 17:53:21 +00:00
|
|
|
<div style="text-align: center">
|
|
|
|
<audio id="audio_player" style="width:80%" onloadeddata="set_volume()" controls>
|
2021-04-11 11:26:43 +00:00
|
|
|
<source src="{{ index .Params 0 }}" type="audio/mpeg">
|
|
|
|
</audio>
|
2022-01-01 17:53:21 +00:00
|
|
|
<script>
|
2022-01-01 18:05:38 +00:00
|
|
|
let audio = document.getElementById("audio_player");
|
2022-01-01 17:53:21 +00:00
|
|
|
function set_volume(){
|
|
|
|
audio.volume = 0.4;
|
|
|
|
}
|
|
|
|
</script>
|
2021-11-27 16:25:19 +00:00
|
|
|
</div>
|