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

6 Commits

Author SHA1 Message Date
Zack Weinberg
bced581501 Fix whitespace errors introduced in recent commits 2016-01-19 10:38:21 -05: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
jmiller76
afd679297b phantomwebintro.js demo fix for #13196
Tested on Windows 7 with 2.0 release.
2015-05-01 11:50:32 -05:00
petercoles
d831dea8c8 Update example
Since this example was written the phantomjs home page has been redesigned and the targeted ID no longer exists. This tweaks the example so that it can again find content to report.
2014-03-29 11:09:51 +00:00
Ivan De Marino
e0e5535e0e Updated examples to use "require('webpage').create()" instead of "new WebPage()". 2011-09-12 21:17:54 +01:00
Ivan De Marino
75403737c4 Added "includeJs()" to "page".
* It includes a script in the page
* It uses a callback to ensure any code dependent on the include runs afterwards
* It uses the signal "javaScriptAlertSent" to do the trick (is there another way to be notified of the "onLoad" event from outside the page context?)
* It uses a "private" slot "_appendScriptElement" to pass the script url in the page context (is there a better way?)
2011-06-10 17:08:46 +01:00