Created
March 9, 2015 19:35
-
-
Save usctrojan/f7efdc953ce216bc2186 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <input type="submit" value="Take Screenshot Of Div" onclick="capture();" /> | |
| <form> | |
| <input type="hidden" name="img_val" id="img_val" value="" /> | |
| </form> | |
| <% content_for :foot do %> | |
| <script type="text/javascript" src="js/html2canvas.js"></script> | |
| <script> | |
| function capture() { | |
| html2canvas( [ document.body ], { | |
| onrendered: function(canvas) { | |
| document.body.appendChild(canvas); | |
| } | |
| }); | |
| } | |
| </script> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment