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 | |
---|
1 | var page = require('webpage').create();
|
---|
2 | page.viewportSize = { width: 320, height: 480 };
|
---|
3 | page.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.