Commit 118b485d by doszhang

dos

parent 730ae30c
......@@ -48,6 +48,16 @@ var canvas = false,
firstSwiper, images = [],
custom = 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 () {
if ($('.page').height() < document.documentElement.clientHeight) {
var scale = document.documentElement.clientHeight / $('.page').height();
......@@ -76,7 +86,8 @@ $(document).ready(function () {
}
});
$('.again').on('click', function () {
$('.make,.username').show();
$('input').val('');
$('.make,.username,.demo').show();
$('.again,.saveTip').hide();
$('.inputTip').show();
$('.page').hide().filter('.page1').show();
......@@ -102,15 +113,8 @@ $(document).ready(function () {
}
$('.make,.username,.demo').hide();
$('.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
// 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