mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
moved common code into tests/test.js
This commit is contained in:
parent
753ab77ef6
commit
2e494bde23
25
tests/test.js
Normal file
25
tests/test.js
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
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>';
|
||||
document.write(scrStart + '../external/jquery-1.6.2.min.js' + scrEnd);
|
||||
var html2canvas = ['Core', 'Generate', 'Parse', 'Preload', 'Queue', 'Renderer', 'plugins/jquery.plugin.html2canvas'], i;
|
||||
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({
|
||||
logging: true
|
||||
});
|
||||
}, 100);
|
||||
};
|
||||
}(document, window));
|
Loading…
Reference in New Issue
Block a user