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:
811 bytes
|
Line | |
---|
1 | // Show BBC seasonal food list.
|
---|
2 |
|
---|
3 | var cbfunc = function (data) {
|
---|
4 | var list = data.query.results.results.result,
|
---|
5 | names = ['January', 'February', 'March',
|
---|
6 | 'April', 'May', 'June',
|
---|
7 | 'July', 'August', 'September',
|
---|
8 | 'October', 'November', 'December'];
|
---|
9 | list.forEach(function (item) {
|
---|
10 | console.log([item.name.replace(/\s/ig, ' '), ':',
|
---|
11 | names[item.atItsBestUntil], 'to',
|
---|
12 | names[item.atItsBestFrom]].join(' '));
|
---|
13 | });
|
---|
14 | phantom.exit();
|
---|
15 | };
|
---|
16 |
|
---|
17 | var el = document.createElement('script');
|
---|
18 | el.src = 'http://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20bbc.goodfood.seasonal%3B&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=cbfunc';
|
---|
19 | document.body.appendChild(el);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.