Commit 9d233abd by doszhang

DOS

parent 043890ce
...@@ -171,42 +171,6 @@ body { ...@@ -171,42 +171,6 @@ body {
-webkit-animation: cloud2 5s linear infinite; -webkit-animation: cloud2 5s linear infinite;
} }
@keyframes leaves {
0% {
top: -100%;
transform: translateX(0);
}
10% {
transform: translateX(50px);
}
20% {
transform: translateX(-50px);
}
50% {
transform: translateX(-80px);
}
58% {
transform: translateX(-40px);
}
70% {
transform: translateX(40px);
}
90% {
transform: translateX(80px);
}
100% {
top: 100%;
transform: translateX(60px);
}
}
@-webkit-keyframes luo { @-webkit-keyframes luo {
0% { 0% {
top: -1%; top: -1%;
......
...@@ -239,24 +239,30 @@ function createPoster(resultFlag) { ...@@ -239,24 +239,30 @@ function createPoster(resultFlag) {
posterCanvas = canvasinfo[0]; posterCanvas = canvasinfo[0];
posterCtx = canvasinfo[1]; posterCtx = canvasinfo[1];
var posterObj = new Image(); var posterObj = new Image();
posterObj.src = '/Public/static/image2/result-' + resultFlag + '.jpg'; posterObj.src = '/Public/static/image2/result.png';
posterObj.onload = function () { posterObj.onload = function () {
posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height); posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
setTimeout(function () {
drawNum(resultFlag); var guardObj = new Image();
}, 100); guardObj.src = `/Public/static/image2/result-${resultFlag}.png`;
setTimeout(function () { guardObj.onload = function () {
$('.poster-canvas').append('<img class="posterimg" />'); posterCtx.drawImage(guardObj, 184, 350, 276, 484);
$('.posterimg').attr('src', getManBase64(posterCanvas)); setTimeout(function () {
$('.page').hide(); drawNum(resultFlag);
$('.page7').show(); }, 100);
$('#notification_area').remove(); setTimeout(function () {
my_notify('请长按页面保存海报'); $('.poster-canvas').append('<img class="posterimg" />');
$('#posterCanvas').css({ $('.posterimg').attr('src', getManBase64(posterCanvas));
height: fixHeight + 'px' $('.page').hide();
}); $('.page7').show();
createPosterLock = false; $('#notification_area').remove();
}, 200); my_notify('请长按页面保存海报');
$('#posterCanvas').css({
height: fixHeight + 'px'
});
createPosterLock = false;
}, 200);
}
} }
} }
......
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