updated bbcshots sample
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -33,8 +33,8 @@ buildPage = -> | ... | @@ -33,8 +33,8 @@ buildPage = -> |
33 | @echo 'Build result page' | 33 | @echo 'Build result page' |
34 | fs = require 'fs' | 34 | fs = require 'fs' |
35 | @viewport 624, 400 | 35 | @viewport 624, 400 |
36 | pageHtml = "<html bgcolor=black><body>" | 36 | pageHtml = "<html><body style='background:black;margin:0;padding:0'>" |
37 | images.forEach (image) -> | 37 | for image in images |
38 | pageHtml += "<img src='file://#{fs.workingDirectory}/#{image}'><br>" | 38 | pageHtml += "<img src='file://#{fs.workingDirectory}/#{image}'><br>" |
39 | pageHtml += "</body></html>" | 39 | pageHtml += "</body></html>" |
40 | fs.write 'result.html', pageHtml, 'w' | 40 | fs.write 'result.html', pageHtml, 'w' | ... | ... |
... | @@ -58,7 +58,7 @@ var buildPage = function() { | ... | @@ -58,7 +58,7 @@ var buildPage = function() { |
58 | this.echo('Build result page'); | 58 | this.echo('Build result page'); |
59 | var fs = require('fs'); | 59 | var fs = require('fs'); |
60 | this.viewport(624, 400); | 60 | this.viewport(624, 400); |
61 | var pageHtml = "<html bgcolor=black><body>"; | 61 | var pageHtml = "<html><body style='background:black;margin:0;padding:0'>"; |
62 | images.forEach(function(image) { | 62 | images.forEach(function(image) { |
63 | pageHtml += '<img src="file://' + fs.workingDirectory + '/' + image + '"><br>'; | 63 | pageHtml += '<img src="file://' + fs.workingDirectory + '/' + image + '"><br>'; |
64 | }); | 64 | }); | ... | ... |
-
Please register or sign in to post a comment