2011-12-11 21:06:57 +04:00
|
|
|
/*
|
|
|
|
html2canvas @VERSION@ <http://html2canvas.hertzen.com>
|
|
|
|
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
|
|
|
|
http://www.twitter.com/niklasvh
|
|
|
|
|
|
|
|
Released under MIT License
|
|
|
|
*/
|
|
|
|
(function(document, window) {
|
|
|
|
var scrStart = '<script type="text/javascript" src="', scrEnd = '"></script>';
|
2012-02-26 02:19:16 +04:00
|
|
|
document.write(scrStart + '../external/jquery-1.6.2.js' + scrEnd);
|
2012-02-21 10:51:53 +04:00
|
|
|
var html2canvas = ['Core', 'Generate', 'Parse', 'Preload', 'Queue', 'Renderer', 'Util', 'plugins/jquery.plugin.html2canvas'], i;
|
2011-12-11 21:06:57 +04:00
|
|
|
for (i = 0; i < html2canvas.length; ++i) {
|
|
|
|
document.write(scrStart + '../src/' + html2canvas[i] + '.js' + scrEnd);
|
|
|
|
}
|
|
|
|
window.onload = function() {
|
|
|
|
if (window.setUp) {
|
|
|
|
window.setUp();
|
|
|
|
}
|
|
|
|
setTimeout(function() {
|
|
|
|
$(document.body).html2canvas({
|
2012-02-04 18:32:09 +04:00
|
|
|
logging: true,
|
2012-03-01 21:44:25 +04:00
|
|
|
profile: true,
|
|
|
|
useCORS: true
|
2011-12-11 21:06:57 +04:00
|
|
|
});
|
|
|
|
}, 100);
|
|
|
|
};
|
2012-02-04 18:32:09 +04:00
|
|
|
}(document, window));
|