mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Update examples to v0.5 api
This commit is contained in:
parent
af965cc3a6
commit
9220eb6def
@ -173,10 +173,8 @@
|
|||||||
</p>
|
</p>
|
||||||
<script type="text/javascript" src="../dist/html2canvas.js"></script>
|
<script type="text/javascript" src="../dist/html2canvas.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
html2canvas(document.body, {
|
html2canvas(document.body).then(function(canvas) {
|
||||||
onrendered: function(canvas) {
|
document.body.appendChild(canvas);
|
||||||
document.body.appendChild(canvas);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -55,10 +55,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="../dist/html2canvas.js"></script>
|
<script type="text/javascript" src="../dist/html2canvas.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
html2canvas(document.body, {
|
html2canvas(document.body).then(function(canvas) {
|
||||||
onrendered: function(canvas) {
|
document.body.appendChild(canvas);
|
||||||
document.body.appendChild(canvas);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user