Commit 2b69f9bb by doszhang

dos

parent 8088b749
...@@ -60,15 +60,16 @@ preloadimages(preloadImageList, function () { ...@@ -60,15 +60,16 @@ preloadimages(preloadImageList, function () {
// }) // })
$('#music')[0].play(); $('#music')[0].play();
if (browser.versions.weixin) { if (browser.versions.weixin) {
let musicTime = setInterval(function () { // let musicTime = setInterval(function () {
if ($('#music')[0].currentTime > 0) { // if ($('#music')[0].currentTime > 0) {
$('.loading-page').fadeOut();
$('.home-page').fadeIn(300); // clearInterval(musicTime);
$('.home-page .btn-next').addClass('animate'); // }
$('.wrap-inner').prepend($('<div class="font">1</div>')); // }, 100);
clearInterval(musicTime); $('.loading-page').fadeOut();
} $('.home-page').fadeIn(300);
}, 100); $('.home-page .btn-next').addClass('animate');
$('.wrap-inner').prepend($('<div class="font">1</div>'));
} else { } else {
$('.loading-page').fadeOut(); $('.loading-page').fadeOut();
$('.home-page').fadeIn(300); $('.home-page').fadeIn(300);
......
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