Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Last active August 13, 2017 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/8690dd96d41128fc27a10c86fea9df5e to your computer and use it in GitHub Desktop.
Save angelovstanton/8690dd96d41128fc27a10c86fea9df5e to your computer and use it in GitHub Desktop.
// ...
// all of the rest HTML2Canvas.js
(function() {
html2canvas(document.body, {
onrendered: function(canvas) {
var img = document.createElement('img');
img.src = canvas.toDataURL("image/png");
img.style.visibility = 'hidden';
img.id = "fullPageScreenshotId";
document.body.appendChild(img);
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment