Commit ddcf4b9c by doszhang

dos

parent f441351f
...@@ -118,8 +118,8 @@ $(document).ready(function () { ...@@ -118,8 +118,8 @@ $(document).ready(function () {
var top = 0; var top = 0;
if (custom) { if (custom) {
top = 440; top = 0;
ctx2.fillStyle = '#FFFFFF'; ctx2.fillStyle = '#000000';
ctx2.font = 'bolder 70px fzlt'; ctx2.font = 'bolder 70px fzlt';
} else if (firstSwiper.realIndex === 0) { } else if (firstSwiper.realIndex === 0) {
top = 490; top = 490;
...@@ -135,7 +135,7 @@ $(document).ready(function () { ...@@ -135,7 +135,7 @@ $(document).ready(function () {
ctx2.textBaseline = 'top'; ctx2.textBaseline = 'top';
var left = (img.width - ctx2.measureText(text).width) / 2; var left = (img.width - ctx2.measureText(text).width) / 2;
ctx2.shadowBlur = 0; ctx2.shadowBlur = 0;
// ctx2.fillText(text, left, top * 2); ctx2.fillText(text, left, top * 2);
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">'); $('.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