Commit 118b485d by doszhang

dos

parent 730ae30c
...@@ -48,6 +48,16 @@ var canvas = false, ...@@ -48,6 +48,16 @@ var canvas = false,
firstSwiper, images = [], firstSwiper, images = [],
custom = false, custom = false,
uploadedImg = false; uploadedImg = false;
var img, canvas2, ctx2;
img = loadedImages['/Public/static/image2/cover/1.jpg'];
canvas2 = document.createElement('CANVAS'),
ctx2 = canvas2.getContext('2d');
ctx2.scale(2, 2);
canvas2.height = img.height;
canvas2.width = img.width;
ctx2.drawImage(img, 0, 0);
$(document).ready(function () { $(document).ready(function () {
if ($('.page').height() < document.documentElement.clientHeight) { if ($('.page').height() < document.documentElement.clientHeight) {
var scale = document.documentElement.clientHeight / $('.page').height(); var scale = document.documentElement.clientHeight / $('.page').height();
...@@ -76,7 +86,8 @@ $(document).ready(function () { ...@@ -76,7 +86,8 @@ $(document).ready(function () {
} }
}); });
$('.again').on('click', function () { $('.again').on('click', function () {
$('.make,.username').show(); $('input').val('');
$('.make,.username,.demo').show();
$('.again,.saveTip').hide(); $('.again,.saveTip').hide();
$('.inputTip').show(); $('.inputTip').show();
$('.page').hide().filter('.page1').show(); $('.page').hide().filter('.page1').show();
...@@ -102,15 +113,8 @@ $(document).ready(function () { ...@@ -102,15 +113,8 @@ $(document).ready(function () {
} }
$('.make,.username,.demo').hide(); $('.make,.username,.demo').hide();
$('.again,.saveTip').show(); $('.again,.saveTip').show();
var img, canvas2, ctx2;
img = loadedImages['/Public/static/image2/cover/1.jpg'];
canvas2 = document.createElement('CANVAS'),
ctx2 = canvas2.getContext('2d');
ctx2.scale(2, 2);
canvas2.height = img.height;
canvas2.width = img.width;
ctx2.drawImage(img, 0, 0);
//模板1 //模板1
// top = 0; // top = 0;
......
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