Skip to content

Instantly share code, notes, and snippets.

@asimpson
Last active August 29, 2015 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asimpson/d1e95361459487894d27 to your computer and use it in GitHub Desktop.
Save asimpson/d1e95361459487894d27 to your computer and use it in GitHub Desktop.
A little phantomjs script to emulate a large cinema display if you're working on a laptop or smaller screen.
var page = require ('webpage').create();
page.viewportSize = {
width: 2560,
height: 1440
};
page.open('http://seesparkbox.com', function(status) {
console.log("Status:", status);
if(status === "success") {
page.render('cinema-size.png');
}
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment