Commit 3b5a4795 by doszhang

dos

parent a31d5956
......@@ -51,25 +51,16 @@ if ($('div').length > 0) {
$('.loading-page .loading-gif-block').append('<img class="loading-gif" src="' + picUrl + 'loading.gif" />');
$('.loading-page').show();
preloadimages(preloadImageList, function () {
// let i = 0;
// let timer = setInterval(function () {
// if (i < 100) {
// $('.loading-page .loading-text').text(i + '%');
// i++;
// } else {
// $('.home-page').fadeIn(300);
// $('.home-page .candle-block').addClass('animate');
// $('.home-page .btn-next').addClass('animate');
// clearInterval(timer);
// }
// }, 100);
setTimeout(function () {
$('.loading-page').fadeOut();
$('.home-page').fadeIn(300);
$('.home-page .candle-block').addClass('animate');
$('.home-page .btn-next').addClass('animate');
$('.wrap-inner').prepend($('<div class="font">1</div>'));
}, 700);
let musicTime = setInterval(function () {
if (('#music')[0].currentTime > 0) {
$('.loading-page').fadeOut();
$('.home-page').fadeIn(300);
$('.home-page .candle-block').addClass('animate');
$('.home-page .btn-next').addClass('animate');
$('.wrap-inner').prepend($('<div class="font">1</div>'));
clearInterval(musicTime);
}
});
}, function (progress) {
$('.loading-page .loading-text').text(Math.floor(progress * 100) + '%');
......@@ -376,10 +367,7 @@ $(document).ready(function () {
//自定义输入框焦点
$('input[name=customize-flag]').on('focus', setCustomizeVal);
$('#music').on('play', function () {
alert(1);
})
});
function setCustomizeVal() {
......
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