Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing whitespace

  • Loading branch information...
commit c5a4c6da2106dee613be1fe1c81e99dc20f686f8 1 parent 994cde5
@carimura carimura authored
Showing with 18 additions and 18 deletions.
  1. +18 −18 binary/phantomjs/nearme.js
View
36 binary/phantomjs/nearme.js
@@ -1,21 +1,21 @@
var page = require('webpage').create(),
- url = 'https://maps.google.com/maps?q='+phantom.args[0]+'+near+san+francisco';
- console.log("Finding "+phantom.args[0]+" near San Francisco")
- console.log('URL: '+url)
+ url = 'https://maps.google.com/maps?q=' + phantom.args[0] + '+near+san+francisco';
+console.log("Finding " + phantom.args[0] + " near San Francisco")
+console.log('URL: ' + url)
- page.open(url, function (status) {
- if (status !== 'success') {
- console.log('Unable to access network');
- } else {
- var results = page.evaluate(function() {
- var list = document.querySelectorAll('span.pp-place-title'), stuffs = [], i;
- for (i = 0; i < list.length; i++) {
- stuffs.push(list[i].innerText);
- }
- return stuffs;
- });
- console.log(results.join('\n'));
- }
- phantom.exit();
- });
+page.open(url, function (status) {
+ if (status !== 'success') {
+ console.log('Unable to access network');
+ } else {
+ var results = page.evaluate(function () {
+ var list = document.querySelectorAll('span.pp-place-title'), stuffs = [], i;
+ for (i = 0; i < list.length; i++) {
+ stuffs.push(list[i].innerText);
+ }
+ return stuffs;
+ });
+ console.log(results.join('\n'));
+ }
+ phantom.exit();
+});
Please sign in to comment.
Something went wrong with that request. Please try again.