Last active
August 13, 2017 14:28
-
-
Save angelovstanton/8690dd96d41128fc27a10c86fea9df5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
// 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