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
this.scriptObject=document.createElement('script'); | |
this.scriptObject.type='text/javascript'; | |
this.scriptObject.src='https://html2canvas.hertzen.com/dist/html2canvas.js'; | |
var ssc = document.getElementsByTagName('script')[0]; | |
ssc.parentNode.insertBefore(this.scriptObject, ssc); | |
function screenshot(elem) | |
{ | |
return html2canvas(elem, {logging: true, profile: true, useCORS: true }) | |
} |