Commit 3b5a4795 by doszhang

dos

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