aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee18
1 files changed, 0 insertions, 18 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee b/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee
deleted file mode 100644
index 6e97db75..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/pizza.coffee
+++ /dev/null
@@ -1,18 +0,0 @@
-# Find pizza in Mountain View using Yelp
-
-page = require('webpage').create()
-url = 'http://lite.yelp.com/search?find_desc=pizza&find_loc=94040&find_submit=Search'
-
-page.open url,
- (status) ->
- if status isnt 'success'
- console.log 'Unable to access network'
- else
- results = page.evaluate ->
- pizza = []
- list = document.querySelectorAll 'address'
- for item in list
- pizza.push(item.innerText)
- return pizza
- console.log results.join('\n')
- phantom.exit()