Commit 4c771caa by doszhang

dos

parent ef222381
......@@ -81,10 +81,10 @@ $(document).ready(function () {
$('.again,.saveTip').hide();
$('.inputTip').show();
$('.page').hide().filter('.page0').show();
// ctx.save();
// ctx.clearRect(0, 0, canvas.width, canvas.height);
// ctx.fillStyle = "#ffffff";
// ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.save();
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#ffffff";
ctx.fillRect(0, 0, canvas.width, canvas.height);
})
$('.make').on('click', function () {
if (!inited) {
......@@ -147,6 +147,7 @@ $(document).ready(function () {
var left = (img.width - ctx2.measureText(text).width) / 2;
ctx2.shadowBlur = 0;
ctx2.fillText(text, left, top * 2);
console.log(123)
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">');
});
})
......
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