Commit 58fa6bbd by doszhang

dos

parent 118b485d
......@@ -38,7 +38,14 @@ preloadImageList.push('/Public/static/image2/cover/1.jpg');
// preloadImageList.push('/Public/static/image2/cover/' + i + '.png');
// }
preloadimages(preloadImageList, function () {
// init();
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);
}, function (progress) {});
var canvas = false,
......@@ -50,14 +57,7 @@ var canvas = 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();
......
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