Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- jQuery(document).ready(function($) {
- $('body').click(function(event) {
- html2canvas(document.getElementById("content"),
- {
- scale: 5.5,
- }
- ).then(function(canvas) {
- // Export the canvas to its data URI representation
- var base64image = canvas.toDataURL("image/png");
- // console.log(base64image);
- $('.entry-content').after(`
- <img src="`+base64image+`" alt="">
- `);
- });
- });
Add Comment
Please, Sign In to add comment