added support for proxys, fixed a lot of background position issues, added test console

This commit is contained in:
MoyuScript
2011-07-21 03:12:17 +03:00
parent fb4601c630
commit db9a1d16ad
16 changed files with 841 additions and 178 deletions

View File

@@ -1,5 +1,5 @@
/*
* html2canvas v0.20 <http://html2canvas.hertzen.com>
* html2canvas v0.25 <http://html2canvas.hertzen.com>
* Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
* http://www.twitter.com/niklasvh
*
@@ -34,15 +34,16 @@
*/
(function( $ ){
$.fn.html2canvas = function() {
$.fn.html2canvas = function(options) {
var date = new Date();
var message,
timeoutTimer,
timer = date.getTime();
new html2canvas(this.get(0), {
logging: true,
var object = $.extend({},{
logging: false,
proxyUrl: "http://html2canvas.appspot.com/", // running html2canvas-python proxy
ready: function(renderer) {
var finishTime = new Date();
@@ -79,7 +80,9 @@
});
}
});
},options)
new html2canvas(this.get(0), object);
function throwMessage(msg,duration){