Commit beb5ca28 by doszhang

dos

parent 42585af0
...@@ -51,23 +51,24 @@ let rand = ...@@ -51,23 +51,24 @@ let rand =
$('.loading-page .loading-gif-block').append('<img class="loading-gif" src="' + picUrl + 'loading.gif" />'); $('.loading-page .loading-gif-block').append('<img class="loading-gif" src="' + picUrl + 'loading.gif" />');
$('.loading-page').show(); $('.loading-page').show();
preloadimages(preloadImageList, function () { preloadimages(preloadImageList, function () {
let i = 0; // let i = 0;
let timer = setInterval(function () { // let timer = setInterval(function () {
if (i < 100) { // if (i < 100) {
$('.loading-page .loading-text').text(i + '%'); // $('.loading-page .loading-text').text(i + '%');
i++; // i++;
} else { // } 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').fadeIn(300);
$('.home-page .candle-block').addClass('animate'); $('.home-page .candle-block').addClass('animate');
$('.home-page .btn-next').addClass('animate'); $('.home-page .btn-next').addClass('animate');
clearInterval(timer);
}
}, 100);
}, function (progress) { }, function (progress) {
// $('.loading-page .loading-text').text(Math.floor(progress * 50) + '%'); $('.loading-page .loading-text').text(Math.floor(progress * 100) + '%');
}); });
const flag = [ 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