Commit c4d54148 by doszhang

dos

parent 80f16cae
...@@ -396,7 +396,8 @@ function setCustomizeVal() { ...@@ -396,7 +396,8 @@ function setCustomizeVal() {
} }
function toggleMusic() { function toggleMusic() {
alert($('#music')[0].paused); alert($('#music')[0].paused); //debug
if ($('#music')[0].paused) { if ($('#music')[0].paused) {
$('#music')[0].play(); $('#music')[0].play();
$('.music.stop').hide(); $('.music.stop').hide();
...@@ -902,6 +903,7 @@ function addFlag(e) { ...@@ -902,6 +903,7 @@ function addFlag(e) {
} }
$('#flagMusic')[0].currentTime = 0; $('#flagMusic')[0].currentTime = 0;
$('#flagMusic')[0].play(); $('#flagMusic')[0].play();
$('#music')[0].play();
$(e.currentTarget).find('.star1,.star2').addClass('animate'); $(e.currentTarget).find('.star1,.star2').addClass('animate');
setTimeout(function () { setTimeout(function () {
$(e.currentTarget).find('.star1,.star2').removeClass('animate'); $(e.currentTarget).find('.star1,.star2').removeClass('animate');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment