Skip to content

Instantly share code, notes, and snippets.

@jeefave
Last active June 11, 2016 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeefave/38b004a75daf9732d4d0 to your computer and use it in GitHub Desktop.
Save jeefave/38b004a75daf9732d4d0 to your computer and use it in GitHub Desktop.
javascript

Js express screenshot

$.getScript('https://github.com/niklasvh/html2canvas/releases/download/0.4.1/html2canvas.js', function(){
   html2canvas(document.body, {
       //height: 1024,
       //width: 768,
       //background: '#fff',
       onrendered: function(canvas) {
           window.open(canvas.toDataURL( /* "image/jpeg" */ ));
       }
   });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment