|
|
@ -142,6 +142,7 @@ function playMusic() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (mp3.paused) { |
|
|
|
if (mp3.paused) { |
|
|
|
mp3.play(); |
|
|
|
mp3.play(); |
|
|
|
|
|
|
|
mp3.volume = 0.5; |
|
|
|
playingBtn.className = playingBtn.className.replace(' hide', ''); |
|
|
|
playingBtn.className = playingBtn.className.replace(' hide', ''); |
|
|
|
pausedBtn.className = pausedBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
pausedBtn.className = pausedBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
}else { |
|
|
|
}else { |
|
|
@ -158,6 +159,7 @@ function detectMusicAutoPlaying() { |
|
|
|
pausedBtn = document.getElementById('btn_paused'); |
|
|
|
pausedBtn = document.getElementById('btn_paused'); |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (!mp3.paused) { |
|
|
|
if (!mp3.paused) { |
|
|
|
|
|
|
|
mp3.volume = 0.5; |
|
|
|
playingBtn.className = pausedBtn.className.replace(' hide', ''); |
|
|
|
playingBtn.className = pausedBtn.className.replace(' hide', ''); |
|
|
|
pausedBtn.className = playingBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
pausedBtn.className = playingBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
if (typeof(timer) != 'undefined') {clearInterval(timer);} |
|
|
|
if (typeof(timer) != 'undefined') {clearInterval(timer);} |
|
|
|