Update examples to v0.5 api

This commit is contained in:
Niklas von Hertzen 2014-09-14 20:04:37 +03:00
parent af965cc3a6
commit 9220eb6def
2 changed files with 4 additions and 8 deletions

View File

@ -173,10 +173,8 @@
</p>
<script type="text/javascript" src="../dist/html2canvas.js"></script>
<script type="text/javascript">
html2canvas(document.body, {
onrendered: function(canvas) {
document.body.appendChild(canvas);
}
html2canvas(document.body).then(function(canvas) {
document.body.appendChild(canvas);
});
</script>
</body>

View File

@ -55,10 +55,8 @@
</div>
<script type="text/javascript" src="../dist/html2canvas.js"></script>
<script type="text/javascript">
html2canvas(document.body, {
onrendered: function(canvas) {
document.body.appendChild(canvas);
}
html2canvas(document.body).then(function(canvas) {
document.body.appendChild(canvas);
});
</script>
</body>