Код: Выделить всё
Код: Выделить всё
var audioPlayer = document.getElementById("audio-player")
const audioButton = document.getElementById('play-audio')
audioPlayer.src = `/static/audio.mp3`
audioButton.addEventListener('click', () => {
audioPlayer.volume = document.getElementById('audio-level').value
audioPlayer.play()
})
Подробнее здесь: https://stackoverflow.com/questions/793 ... not-safari
Мобильная версия