source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/technews.js@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 655 bytes
Line 
1var page = require('webpage').create();
2page.viewportSize = { width: 320, height: 480 };
3page.open('http://news.google.com/news/i/section?&topic=t', function (status) {
4 if (status !== 'success') {
5 console.log('Unable to access the network!');
6 } else {
7 page.evaluate(function () {
8 var body = document.body;
9 body.style.backgroundColor = '#fff';
10 body.querySelector('div#title-block').style.display = 'none';
11 body.querySelector('form#edition-picker-form').parentElement.parentElement.style.display = 'none';
12 });
13 page.render('technews.png');
14 }
15 phantom.exit();
16});
Note: See TracBrowser for help on using the repository browser.