Commit beb5ca28 by doszhang

dos

parent 42585af0
......@@ -51,23 +51,24 @@ let rand =
$('.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);
// 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);
$('.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 * 50) + '%');
$('.loading-page .loading-text').text(Math.floor(progress * 100) + '%');
});
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