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