Commit abfc2edc by doszhang

dos

parent 60157caf
...@@ -69,13 +69,7 @@ let noInfo = { ...@@ -69,13 +69,7 @@ let noInfo = {
let createPosterLock = false; let createPosterLock = false;
$('.loading-page').show(); $('.loading-page').show();
preloadimages(preloadImageList, function () { preloadimages(preloadImageList, function () {
const timestamp = timest();
if(timestamp > 1584633600)
{
$('.loading-page').hide();
$('.end-page').show();
return;
}
let progress = 0.3; let progress = 0.3;
let timer = setInterval(function () { let timer = setInterval(function () {
if (progress < 1) { if (progress < 1) {
...@@ -84,13 +78,20 @@ preloadimages(preloadImageList, function () { ...@@ -84,13 +78,20 @@ preloadimages(preloadImageList, function () {
$('.loading-page .progress').css('width', 368 * progress + 'px'); $('.loading-page .progress').css('width', 368 * progress + 'px');
$('.loading-page .plant').css('transform', 'translateX(' + (-368 + (368 * progress)) + 'px)'); $('.loading-page .plant').css('transform', 'translateX(' + (-368 + (368 * progress)) + 'px)');
} else { } else {
clearInterval(timer); clearInterval(timer);
const timestamp = timest();
if (browser.versions.weixin) { if (browser.versions.weixin) {
let musicTime = setInterval(function () { let musicTime = setInterval(function () {
if ($('#music')[0].currentTime > 0) { if ($('#music')[0].currentTime > 0) {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584633600) {
$('.end-page').show();
}
clearInterval(musicTime); clearInterval(musicTime);
} }
}, 100); }, 100);
...@@ -98,6 +99,9 @@ preloadimages(preloadImageList, function () { ...@@ -98,6 +99,9 @@ preloadimages(preloadImageList, function () {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584633600) {
$('.end-page').show();
}
} }
} }
}, 60); }, 60);
...@@ -576,7 +580,7 @@ function checkIt(bind, maxNum) { ...@@ -576,7 +580,7 @@ function checkIt(bind, maxNum) {
} }
function timest() { function timest() {
var tmp = Date.parse( new Date() ).toString(); var tmp = Date.parse(new Date()).toString();
tmp = tmp.substr(0,10); tmp = tmp.substr(0, 10);
return tmp; return tmp;
} }
\ No newline at end of file \ No newline at end of file
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