This code is part of a YouTube tutorial. The demo is aimed to convert a html elements or "poster canvas" into a jpeg that can be downloaded. To make this happen I've used a JavaScript libary called html2canvas.
Link to YouTube Video Html2Canvas Link
Quote
"There are no limits to what you can accomplish, except the limits you place on your own thinking."
- BRIAN TRACY -