Commit d9398c31 d9398c31ba336e81577fdb58a24a60dc8ce28ad6 by Nicolas Perriault

updated bbcshots sample

1 parent 45b095ec
......@@ -33,8 +33,8 @@ buildPage = ->
@echo 'Build result page'
fs = require 'fs'
@viewport 624, 400
pageHtml = "<html bgcolor=black><body>"
images.forEach (image) ->
pageHtml = "<html><body style='background:black;margin:0;padding:0'>"
for image in images
pageHtml += "<img src='file://#{fs.workingDirectory}/#{image}'><br>"
pageHtml += "</body></html>"
fs.write 'result.html', pageHtml, 'w'
......
......@@ -58,7 +58,7 @@ var buildPage = function() {
this.echo('Build result page');
var fs = require('fs');
this.viewport(624, 400);
var pageHtml = "<html bgcolor=black><body>";
var pageHtml = "<html><body style='background:black;margin:0;padding:0'>";
images.forEach(function(image) {
pageHtml += '<img src="file://' + fs.workingDirectory + '/' + image + '"><br>';
});
......