Commit 6013956f by doszhang

dos

parent 368f02ba
......@@ -51,14 +51,22 @@ 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 = 50;
let timer = setInterval(function () {
if (i < 100) {
$('.loading-page .loading-text').text(Math.floor(progress * 50) + '%');
} else {
$('.home-page').fadeIn(300);
$('.home-page .candle-block').addClass('animate');
$('.home-page .btn-next').addClass('animate');
clearInterval(timer);
}
}, 100);
// $('.home-page').fadeIn(300);
// $('.home-page .candle-block').addClass('animate');
// $('.home-page .btn-next').addClass('animate');
}, function (progress) {
$('.loading-page .loading-text').text(Math.floor(progress * 100) + '%');
$('.loading-page .loading-text').text(Math.floor(progress * 50) + '%');
});
const flag = [
......
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