Commit 85ccdba9 by doszhang

dos

parent 3d6cd092
......@@ -186,6 +186,11 @@ let countDownCtx;
let posterCanvas;
let posterCtx;
//home next
let homeNext = true;
//page1 next
let page1Next = true;
//记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize'));
......@@ -316,12 +321,16 @@ $(document).ready(function () {
});
function showPage1() {
if (homeNext) {
homeNext = false;
$('.home-page .candle').css('opacity', 1);
$('.home-page .btn-next').removeClass('animate');
setTimeout(function () {
$('.home-page').fadeOut(300);
$('.page1').show();
}, 2000);
}
}
function createPoster() {
......@@ -716,6 +725,8 @@ function addFlagToList(text) {
}
function showFlagPage() {
if (page1Next) {
page1Next = false;
$('.red-line').addClass('animate');
setTimeout(function () {
// $('.red-line').removeClass('animate');
......@@ -731,6 +742,7 @@ function showFlagPage() {
setTimeout(function () {
$('.flag-choose-tip').addClass('active');
}, 2500);
}
}
function changeFlag() {
......
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