Commit 22cea914 by dosZhang

dos

parent bb0e11ba
......@@ -77,8 +77,6 @@ preloadimages(preloadImageList, function () {
initPage();
$('.page1').show();
$('input[name=name]').val('黄春燕')
$('input[name=job-number]').val('73000060')
$('input[name=name]').attr('placeholder', '请输入姓名').attr('id', 'name');
$('input[name=job-number]').attr('placeholder', '请输入工号').attr('type', 'tel');
// blackUrl = $('.black').css('background-image').replace(/^url\((['"]?)(.*)\1\)$/, '$2');
......@@ -338,8 +336,8 @@ function createPoster() {
setTimeout(function () {
posterCtx.drawImage(posterMask, 0, 0, 640 * 2, 1238 * 2);
drawVerticalText(posterCtx, username, '#595857',32 * 2, 95 * 2, 345 * 2, true, 5 * 2);
drawVerticalText(posterCtx, company, '#595857',32 * 2, 95 * 2, 505 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, username, '#595857',25 * 2, 82 * 2, 300 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, company, '#595857',25 * 2, 82 * 2, 440 * 2, true, 5 * 2);
$('#notification_area').remove();
$('.upload-page').hide();
......@@ -421,8 +419,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
imgInfo.y += movedY * 2;
drawImage(ctx, myCanvas, img, imgInfo);
drawVerticalText(ctx, username, '#595857',32 * 2, 95 * 2, 345 * 2, true, 5 * 2);
drawVerticalText(ctx, company, '#595857',32 * 2, 95 * 2, 505 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, username, '#595857',25 * 2, 82 * 2, 300 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, company, '#595857',25 * 2, 82 * 2, 440 * 2, true, 5 * 2);
}
});
var oldScale = 1;
......@@ -438,8 +436,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
oldScale = event.scale;
imgInfo.scale *= nowScale;
drawImage(ctx, myCanvas, img, imgInfo);
drawVerticalText(ctx, username, '#595857',32 * 2, 95 * 2, 345 * 2, true, 5 * 2);
drawVerticalText(ctx, company, '#595857',32 * 2, 95 * 2, 505 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, username, '#595857',25 * 2, 82 * 2, 300 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, company, '#595857',25 * 2, 82 * 2, 440 * 2, true, 5 * 2);
}
});
var oldRotation = 0;
......@@ -455,8 +453,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
oldRotation = event.rotation;
imgInfo.rotation += nowRotation;
drawImage(ctx, myCanvas, img, imgInfo);
drawVerticalText(ctx, username, '#595857',32 * 2, 95 * 2, 345 * 2, true, 5 * 2);
drawVerticalText(ctx, company, '#595857',32 * 2, 95 * 2, 505 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, username, '#595857',25 * 2, 82 * 2, 300 * 2, true, 5 * 2);
drawVerticalText(uploadCtx, company, '#595857',25 * 2, 82 * 2, 440 * 2, true, 5 * 2);
}
});
}
......
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