1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 04:46:09 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Zachary T Jones
9bbd1ab0a3 Update selector in useragent example to prevent TypeError
The DOM structure of the page that is retrieved by useragent.js
has changed since the example was last updated, and the selector
for the user agent value no longer exists. This causes a TypeError
to be output to the user when running the example. This updates
the example to use a selector that exists on the page.

https://github.com/ariya/phantomjs/issues/15392
2018-06-02 01:09:14 -07:00
Steven Masala
9ac8cccf0a Add "use strict"; declaration to all example scripts.
modernizr.js is not modified because it's not our code.

En passant fixes:
 * Delete two scripts that depended on a Yahoo service that
   appears no longer to exist.
 * The PhantomJS website no longer has a leading www.
 * One script needed correction to *work* in strict mode.
 * One script would only exit if a page loaded successfully.
   (There may be other instances of this problem, this is the
   one I noticed.)
2015-12-22 10:29:53 +03:00
Ivan De Marino
e0e5535e0e Updated examples to use "require('webpage').create()" instead of "new WebPage()". 2011-09-12 21:17:54 +01:00
Ariya Hidayat
7e099abaf2 User-agent is part of WebPage settings, not WebPage object itself. 2011-05-27 22:50:33 -07:00
Ariya Hidayat
5f018b32b2 useragent.js: Port to WebPage object. 2011-05-25 14:37:25 -07:00
Ariya Hidayat
04cc4193ca Change phantom.storage to phantom.state. 2010-12-31 22:09:02 -08:00
Ariya Hidayat
24d433ea13 Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
Ariya Hidayat
5346072a90 useragent.js: Custom user agent example. 2010-12-26 23:12:31 -08:00