Sha256: 8830b3b871f11fa1ab971fa66b741e558e738b2fdd374ae7a5e799c18e6ad213
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
var fs = require('fs'); ['top','bottom'].forEach(function(v){ ['left','right'].forEach(function(h){ ['1','2','3','4','5'].forEach(function(t){ var inFile = 'out/'+ t +v.charAt(0) + h.charAt(0) + '.html'; var outFile = 'pic/'+ t + v.charAt(0) + h.charAt(0) + '.png'; var path = 'file://' + fs.absolute(inFile) var page = require('webpage').create(); page.viewportSize = { width: 1000, height: 800 };; page.open(path, function(status) { window.setTimeout(function () { console.log(status); page.render(outFile); setTimeout(function(){ phantom.exit(); }, 0); },2000); }); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radius-rails-3.1.4 | app/assets/components/eonasdan-bootstrap-datetimepicker/test/screen-capture/index.js |