Commit 1a18aa78 by doszhang

dos

parent 0d2d9631
......@@ -297,11 +297,20 @@ function createPoster() {
var photo = new Image();
photo.src = getManBase64(uploadCanvas);
photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
$('#notification_area').remove();
$('.upload-page').hide();
$('.poster-page').show();
var posterObj = new Image();
posterObj.src = '/Public/static/image2/poster' + level + '.png';
posterObj.onload = function () {
posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
$('#notification_area').remove();
$('.upload-page').hide();
$('.poster-page').show();
$('.poster-img').append('<img class="posterimg" />');
$('.posterimg').attr('src', getManBase64(uploadCanvas));
}
}
......
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