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

This commit is contained in:
Niklas von Hertzen
2011-07-21 03:12:17 +03:00
parent e64416ea44
commit 9d04b0bbec
16 changed files with 841 additions and 178 deletions

View File

@@ -4,15 +4,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();
@@ -49,7 +50,9 @@
});
}
});
},options)
new html2canvas(this.get(0), object);
function throwMessage(msg,duration){