Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d9398c31
...
d9398c31ba336e81577fdb58a24a60dc8ce28ad6
authored
2012-01-17 19:10:49 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated bbcshots sample
1 parent
45b095ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
samples/bbcshots.coffee
samples/bbcshots.js
samples/bbcshots.coffee
View file @
d9398c3
...
...
@@ -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'
...
...
samples/bbcshots.js
View file @
d9398c3
...
...
@@ -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>'
;
});
...
...
Please
register
or
sign in
to post a comment