Permalink
Browse files

Merge pull request #13 from ndizazzo/master

Updates README with a working example to hide the logo on the PhantomJS site
  • Loading branch information...
2 parents ae5deac + 6a93fef commit 6628796f6061b5347dd8a29232e65d705a0b0f42 @superbrothers committed Feb 20, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -30,21 +30,21 @@
## Quick Start
% capturejs --uri http://phantomjs.org/ \
- --selector '#header' \
+ --selector '.header' \
--viewportsize 1400x1400 \
--output 'phantomjs.org.png'
![phantomjs org](https://f.cloud.github.com/assets/230185/659051/081f6cf6-d651-11e2-9b1f-a62d192135b3.png)
% capturejs --uri http://phantomjs.org/ \
- --selector '#header' \
+ --selector '.header' \
--viewportsize 1400x1400 \
--javascript-file ./hidelogo.js \
--output 'phantomjs.org_hide_logo.png'
```javascript
// hidelogo.js
-document.querySelector('#logo').style.visibility = 'hidden';
+document.querySelector('.header img').style.visibility = 'hidden';
```
![phantomjs org_hide_logo](https://f.cloud.github.com/assets/230185/659053/808bf312-d651-11e2-8485-b490a10f7eca.png)

0 comments on commit 6628796

Please sign in to comment.