const music = document.getElementById('music');
music.volume = 0.1;
const toggle_btn = document.getElementById('toggle_music')
toggle_btn.addEventListener('click', () => {
music.classList.toggle('active')
if (music.className.indexOf('active') === -1)
music.pause()
else
music.play()
})