Commit 80f16cae by doszhang

dos

parent a4ae4105
...@@ -58,11 +58,10 @@ preloadimages(preloadImageList, function () { ...@@ -58,11 +58,10 @@ preloadimages(preloadImageList, function () {
// alert(key); // alert(key);
// } // }
// }) // })
setInterval(function () { // setInterval(function () {
$('#music')[0].play(); // $('#music')[0].play();
}, 100) // }, 100)
if (browser.versions.weixin) { if (browser.versions.weixin) {
alert($('#music')[0]);
// let musicTime = setInterval(function () { // let musicTime = setInterval(function () {
// if ($('#music')[0].currentTime > 0) { // if ($('#music')[0].currentTime > 0) {
...@@ -397,6 +396,7 @@ function setCustomizeVal() { ...@@ -397,6 +396,7 @@ function setCustomizeVal() {
} }
function toggleMusic() { function toggleMusic() {
alert($('#music')[0].paused);
if ($('#music')[0].paused) { if ($('#music')[0].paused) {
$('#music')[0].play(); $('#music')[0].play();
$('.music.stop').hide(); $('.music.stop').hide();
......
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