Remove previous phantomjs.org assets.

Issue #10627 https://github.com/ariya/phantomjs/issues/10627
This commit is contained in:
Jamie Mason
2013-11-11 13:37:35 +00:00
committed by Ariya Hidayat
parent 54c459a289
commit eb99b00aa6
54 changed files with 0 additions and 3714 deletions
-358
View File
@@ -1,358 +0,0 @@
/*
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
*/
/*
Forces backgrounds to span full width,
even if there is horizontal scrolling.
Increase this if your layout is wider.
Note: IE6 works fine without this fix.
*/
body {
min-width: 960px;
}
/* `Container
----------------------------------------------------------------------------------------------------*/
.container_12 {
margin-left: auto;
margin-right: auto;
width: 960px;
}
/* `Grid >> Global
----------------------------------------------------------------------------------------------------*/
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
display: inline;
float: left;
margin-left: 10px;
margin-right: 10px;
}
.push_1, .pull_1,
.push_2, .pull_2,
.push_3, .pull_3,
.push_4, .pull_4,
.push_5, .pull_5,
.push_6, .pull_6,
.push_7, .pull_7,
.push_8, .pull_8,
.push_9, .pull_9,
.push_10, .pull_10,
.push_11, .pull_11 {
position: relative;
}
/* `Grid >> Children (Alpha ~ First, Omega ~ Last)
----------------------------------------------------------------------------------------------------*/
.alpha {
margin-left: 0;
}
.omega {
margin-right: 0;
}
/* `Grid >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .grid_1 {
width: 60px;
}
.container_12 .grid_2 {
width: 140px;
}
.container_12 .grid_3 {
width: 220px;
}
.container_12 .grid_4 {
width: 300px;
}
.container_12 .grid_5 {
width: 380px;
}
.container_12 .grid_6 {
width: 460px;
}
.container_12 .grid_7 {
width: 540px;
}
.container_12 .grid_8 {
width: 620px;
}
.container_12 .grid_9 {
width: 700px;
}
.container_12 .grid_10 {
width: 780px;
}
.container_12 .grid_11 {
width: 860px;
}
.container_12 .grid_12 {
width: 940px;
}
/* `Prefix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .prefix_1 {
padding-left: 80px;
}
.container_12 .prefix_2 {
padding-left: 160px;
}
.container_12 .prefix_3 {
padding-left: 240px;
}
.container_12 .prefix_4 {
padding-left: 320px;
}
.container_12 .prefix_5 {
padding-left: 400px;
}
.container_12 .prefix_6 {
padding-left: 480px;
}
.container_12 .prefix_7 {
padding-left: 560px;
}
.container_12 .prefix_8 {
padding-left: 640px;
}
.container_12 .prefix_9 {
padding-left: 720px;
}
.container_12 .prefix_10 {
padding-left: 800px;
}
.container_12 .prefix_11 {
padding-left: 880px;
}
/* `Suffix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .suffix_1 {
padding-right: 80px;
}
.container_12 .suffix_2 {
padding-right: 160px;
}
.container_12 .suffix_3 {
padding-right: 240px;
}
.container_12 .suffix_4 {
padding-right: 320px;
}
.container_12 .suffix_5 {
padding-right: 400px;
}
.container_12 .suffix_6 {
padding-right: 480px;
}
.container_12 .suffix_7 {
padding-right: 560px;
}
.container_12 .suffix_8 {
padding-right: 640px;
}
.container_12 .suffix_9 {
padding-right: 720px;
}
.container_12 .suffix_10 {
padding-right: 800px;
}
.container_12 .suffix_11 {
padding-right: 880px;
}
/* `Push Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .push_1 {
left: 80px;
}
.container_12 .push_2 {
left: 160px;
}
.container_12 .push_3 {
left: 240px;
}
.container_12 .push_4 {
left: 320px;
}
.container_12 .push_5 {
left: 400px;
}
.container_12 .push_6 {
left: 480px;
}
.container_12 .push_7 {
left: 560px;
}
.container_12 .push_8 {
left: 640px;
}
.container_12 .push_9 {
left: 720px;
}
.container_12 .push_10 {
left: 800px;
}
.container_12 .push_11 {
left: 880px;
}
/* `Pull Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .pull_1 {
left: -80px;
}
.container_12 .pull_2 {
left: -160px;
}
.container_12 .pull_3 {
left: -240px;
}
.container_12 .pull_4 {
left: -320px;
}
.container_12 .pull_5 {
left: -400px;
}
.container_12 .pull_6 {
left: -480px;
}
.container_12 .pull_7 {
left: -560px;
}
.container_12 .pull_8 {
left: -640px;
}
.container_12 .pull_9 {
left: -720px;
}
.container_12 .pull_10 {
left: -800px;
}
.container_12 .pull_11 {
left: -880px;
}
/* `Clear Floated Elements
----------------------------------------------------------------------------------------------------*/
/* http://sonspring.com/journal/clearing-floats */
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
/* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
.clearfix:before,
.clearfix:after,
.container_12:before,
.container_12:after {
content: '.';
display: block;
overflow: hidden;
visibility: hidden;
font-size: 0;
line-height: 0;
width: 0;
height: 0;
}
.clearfix:after,
.container_12:after {
clear: both;
}
/*
The following zoom:1 rule is specifically for IE6 + IE7.
Move to separate stylesheet if invalid CSS is a problem.
*/
.clearfix,
.container_12 {
zoom: 1;
}
-1
View File
@@ -1 +0,0 @@
phantomjs.org
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-ChildProcess" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/Examples" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-FileSystem" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-phantom" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-System" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage" />
-1
View File
@@ -1 +0,0 @@
<meta http-equiv="refresh" content="0;https://github.com/ariya/phantomjs/wiki/API-Reference-WebServer" />
-157
View File
@@ -1,157 +0,0 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PhantomJS: Build Instructions</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="screen.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21665893-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#description p {
line-height: 125%;
text-align: left;
margin-bottom: 10px;
margin-top: 10px;
}
#description h2 {
text-align: left;
margin: 0.8em 0;
}
#description pre {
margin-left: 1em;
}
</style>
</head>
<body>
<div id="intro">
<div id="header" class="container_12">
<a href="index.html" class="grid_4 alpha"><img src="images/phantomjs-logo.png" alt="PhantomJS" id="logo" width="240" height="80"></a>
<ul id="nav" class="grid_8 omega">
<li><a href="https://github.com/ariya/phantomjs">Source Code</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki">Documentation</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/API-Reference">API</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/Examples">Examples</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
<div id="introduction" class="container_12">
<div class="grid_7 alpha">
<h1>Build Instructions</h1>
</div>
</div>
</div>
<div id="description" class="container_12">
<div class="grid_10">
<p><strong>Warning</strong>: Compiling PhantomJS from source takes a long time, mainly due to thousands of files in the WebKit module. With 4 parallel compile jobs on a modern machine, the entire process takes roughly 30 minutes. It is highly recommended to download and install the ready-made <a href="download.html">binary package</a> if it is available.</p>
<h2 id="mac">Mac OS X</h2>
<p>Install <a href="https://developer.apple.com/xcode/">Xcode</a> and the necessary SDK for development (gcc, various tools, libraries, etc).</p>
<pre>
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh
</pre>
<p>This produces a static build <code>bin/phantomjs</code>. This is a self-contained executable, it can be moved to a different directory or another machine.</p>
<h2 id="linux">Linux</h2>
<p>For Ubuntu Linux (tested on a barebone install of Ubuntu 10.04 Lucid Lynx, Ubuntu 11.04 Natty Narwhal, Ubuntu 12.04 Precise Pangolin):</p>
<pre>
sudo apt-get update
sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh
</pre>
<p>For Amazon EC2 AMI (release 2011.09, 2012.03) and CentOS/RHEL 6:</p>
<pre>
sudo yum install gcc gcc-c++ make git openssl-devel freetype-devel fontconfig-devel
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh
</pre>
<p><strong>Note 1</strong>: <code>build.sh</code> by default will launch parallel compile jobs depending on the available CPU cores, e.g. 4 jobs on a modern hyperthreaded dual-core processor. If necessary, e.g. when building on a virtual machine/server or other limited environment, reduce the jobs by passing a number, e.g <code>./build.sh --jobs 1</code> to set only one compile job at a time.</p>
<p><strong>Note 2</strong>: To create an RPM package (EC2 AMI, CentOS, or RHEL), make sure <code>rpm-build</code> package is installed and then
run the following <em>after</em> a successful build:</p>
<pre>
cd rpm
./mkrpm.sh phantomjs
</pre>
<p><strong>Note 3</strong>: Compile time for Ubuntu 12.04 running on Amazon EC2 <em>M1 Extra Large</em> (m1.xlarge, 4 cores): 20 minutes, <em>M1 Large</em> (m1.large, 2 cores): 50 minutes, <em>M1 Medium</em> (m1.medium, 1 core): 100 minutes.</p>
<h2 id="windows">Windows</h2>
<p>Install <a href="http://www.microsoft.com/visualstudio/">Microsoft Visual C++</a>, either version 2010 or 2008 (the <a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express">Express edition</a> should work just fine).</p>
<p>First step is to build OpenSSL static library. Go to <a href="http://www.openssl.org/source/">openssl.org/source</a> and download the source package (tested with version 1.0.1). Unpack the package to a working directory, e.g. <code>C:\openssl</code>. Configure and build OpenSSL:</p>
<pre>
perl Configure VC-WIN32 no-asm --prefix=C:\openssl
ms\do_ms
nmake -f ms\nt.mak install
</pre>
<p>Get PhantomJS source code:</p>
<pre>
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
</pre>
<p>Edit file <code>src\qt\preconfig.cmd</code> and change OPEN_SSL_DIR variable to point to the OpenSSL working directory.</p>
<p>Finally, compile PhantomJS:</p>
<pre>
cd src\qt
preconfig.cmd
cd ..\..
src\qt\bin\qmake -r
nmake
</pre>
<p>This produces a static build <code>bin/phantomjs.exe</code>. This is a self-contained executable, it can be moved to a different directory or another machine.</p>
</div>
</div>
<div id="footer">
<div id="footer-content" class="container_12">
<p>
&copy; Copyright 2010-2013 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> &mdash; Website design by <a href="http://svay.com/">Maurice Svay</a>
</p>
</div>
</div>
</body>
</html>
-90
View File
@@ -1,90 +0,0 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PhantomJS: Contribution Guide</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="refresh" content="0;URL='https://github.com/ariya/phantomjs/blob/master/CONTRIBUTING.md'">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="screen.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21665893-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#description p {
line-height: 125%;
text-align: left;
margin-bottom: 10px;
margin-top: 10px;
}
#description h2 {
text-align: left;
margin: 0.8em 0;
}
#description pre {
margin-left: 1em;
}
#description ul {
list-style-type: disc;
margin-left: 1em;
}
#description li {
margin-left: 1em;
}
</style>
</head>
<body>
<div id="intro">
<div id="header" class="container_12">
<a href="index.html" class="grid_4 alpha"><img src="images/phantomjs-logo.png" alt="PhantomJS" id="logo" width="240" height="80"></a>
<ul id="nav" class="grid_8 omega">
<li><a href="https://github.com/ariya/phantomjs">Source Code</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki">Documentation</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/API-Reference">API</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/Examples">Examples</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
<div id="introduction" class="container_12">
<div class="grid_7 alpha">
<h1>Contribution Guide</h1>
</div>
</div>
</div>
<div id="description" class="container_12">
<div class="grid_10">
<p>The content of this page is moved to <a href="https://github.com/ariya/phantomjs/blob/master/CONTRIBUTING.md">Contributing Guide</a>.</p>
</div>
</div>
<div id="footer">
<div id="footer-content" class="container_12">
<p>
&copy; Copyright 2010-2013 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> &mdash; Website design by <a href="http://svay.com/">Maurice Svay</a>
</p>
</div>
</div>
</body>
</html>
-101
View File
@@ -1,101 +0,0 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PhantomJS: Download and Install</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="screen.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21665893-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#description p {
line-height: 125%;
text-align: left;
margin-bottom: 10px;
margin-top: 10px;
}
#description h2 {
text-align: left;
margin: 0.8em 0;
}
</style>
</head>
<body>
<div id="intro">
<div id="header" class="container_12">
<a href="index.html" class="grid_4 alpha"><img src="images/phantomjs-logo.png" alt="PhantomJS" id="logo" width="240" height="80"></a>
<ul id="nav" class="grid_8 omega">
<li><a href="https://github.com/ariya/phantomjs">Source Code</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki">Documentation</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/API-Reference">API</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/Examples">Examples</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
<div id="introduction" class="container_12">
<div class="grid_7 alpha">
<h1>Download</h1>
</div>
</div>
</div>
<div id="description" class="container_12">
<div class="grid_10">
<p><strong>Note</strong> Binary packages are made available on a volunteer basis. There is no need to
ask when a binary package for a given platform will be ready. The packagers are fully aware of every source release and they give their best effort to make the binaries available.</p>
<p>Download service is kindly provided by <a href="http://code.google.com/p/phantomjs/downloads/">Google Code Project Hosting</a>.</p>
<h2 id="windows">Windows</h2>
<p>Download <a href="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-windows.zip">phantomjs-1.9.2-windows.zip</a> (6.8 MB) and extract (unzip) the content.</p>
<p>The executable <code>phantomjs.exe</code> is ready to use.</p>
<p><strong>Note</strong>: For this static build, the binary is self-contained with no external dependency. It will run on a fresh install of Windows XP or later versions. There is no requirement to install Qt, WebKit, or any other libraries.</p>
<h2 id="mac">Mac OS X</h2>
<p>Download <a href="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-macosx.zip">phantomjs-1.9.2-macosx.zip</a> (9.1 MB) and extract (unzip) the content.</p>
<p>The binary <code>bin/phantomjs</code> is ready to use.</p>
<p><strong>Note</strong>: For this static build, the binary is self-contained with no external dependency. It will run on a fresh install of Snow Leopard or later versions. There is no requirement to install Qt or any other libraries.</p>
<p><strong>Alternative</strong> installation using Homebrew:</p>
<pre>brew update &amp;&amp; brew install phantomjs</pre>
<p><strong>Warning</strong>: MacPorts does not have updated PhantomJS build yet. Installing via MacPorts is not recommended.</p>
<h2 id="linux">Linux</h2>
<p>For 64-bit system, download <a href="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2">phantomjs-1.9.2-linux-x86_64.tar.bz2</a> (12.7 MB).</p>
<p>For 32-bit system, download <a href="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2">phantomjs-1.9.2-linux-i686.tar.bz2</a> (13.0 MB).</p>
<p>This package is built on CentOS 5.8. It should run successfully on Lucid or more modern systems (including other distributions). There is no requirement to install Qt, WebKit, or any other libraries. It is however expected that some base libraries necessary for rendering (<a href="http://www.freetype.org/">FreeType</a>, <a href="http://www.freedesktop.org/wiki/Software/fontconfig">Fontconfig</a>) and the basic font files are available in the system.</p>
<p>For older systems, please compile PhantomJS from source (see below).</p>
<h2 id="source">Source Code</h2>
<p>Download <a href="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-source.zip">phantomjs-1.9.2-source.zip</a> (39 MB) and follow the <a href="build.html">build instructions</a>.</p>
</div>
</div>
<div id="footer">
<div id="footer-content" class="container_12">
<p>
&copy; Copyright 2010-2013 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> &mdash; Website design by <a href="http://svay.com/">Maurice Svay</a>
</p>
</div>
</div>
</body>
</html>
-168
View File
@@ -1,168 +0,0 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PhantomJS: FAQ</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="screen.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21665893-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#description p {
line-height: 125%;
text-align: left;
margin-bottom: 10px;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="intro">
<div id="header" class="container_12">
<a href="index.html" class="grid_4 alpha"><img src="images/phantomjs-logo.png" alt="PhantomJS" id="logo" width="240" height="80"></a>
<ul id="nav" class="grid_8 omega">
<li><a href="https://github.com/ariya/phantomjs">Source Code</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki">Documentation</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/API-Reference">API</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/Examples">Examples</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
<div id="introduction" class="container_12">
<div class="grid_7 alpha">
<h1>FAQ</h1>
</div>
</div>
</div>
<div id="description" class="container_12">
<div class="grid_10">
<p><strong>Q: Why there is no binary package or installer for &lt;insert your
favorite OS&gt;?</strong></p>
<p>A: <a href="download.html">Binary packages</a>, executables, and installer are provided on a volunteer basis.
They may appear later, or they may not exist at all. We are a very small team and we
can't afford to produce all possible combinations of packages for the different
platforms and operating systems out there.</p>
<p><strong>Q: Why does building PhantomJS take a long time?</strong></p>
<p>A: Because PhantomJS build workflow bundles the WebKit module, it needs to compile
thousands of source files. Using the binary package is highly recommended.
It is fast to download and <a href="download.html">easy to install</a>.</p>
<p><strong>Q: Can you give a time estimate of the availability of feature X?</strong></p>
<p>Because nobody is working full time on PhantomJS, there is no way to
predict the exact timing of the completion of a particular feature.
Every contributor to PhantomJS works on his own pace, sometimes it can
take a few release cycles until a certain feature is shipped.</p>
<p><strong>Q: Is there any update on issue XYZ??</strong></p>
<p>Any progress related to an issue, whether it is a change in the plan
or an implementation check-in, will be always posted to the issue
page. This is part of PhantomJS contribution guide, it is essential to
the development workflow. If an issue hasn't received any new update
for a while, a question like "Is there any update?" has an obvious
answer.</p>
<p><strong>Q: Why do I get build failure with PhantomJS 1.5 after successfully
compiled 1.4?</strong></p>
<p>A: PhantomJS has a completely different build workflow in version 1.5 compared to
its previous versions (read <a href=
"http://ariya.ofilabs.com/2012/03/the-evolution-of-phantomjs-build-workflow.html"
rel="nofollow">the details</a>). If the working directory still has some left-over
from 1.4 build process, there will be a compile error, such as:</p>
<pre>phantom.cpp:305: error: no matching function for call to 'QWebFrame::evaluateJavaScript(QString, QString)</pre>
<p>The solution is to completely clean the directory from old build files. The
recommended way is to run <tt>git clean -xfd</tt> from the top-level.
<strong>Warning</strong>: this will remove everything not stored in the Git
repository database (read Git documentation for more info). Please back-up any files
appropriately.</p>
<p>After that, run the build script again.</p>
<p><strong>Q: Why do I get the error message <tt>phantomjs: cannot connect to X
server</tt>?</strong></p>
<p>A: In PhantomJS 1.4 or earlier, X server is still needed. The workaround is to use Xvfb.
Starting with PhantomJS 1.5, it is <strong>pure headless</strong> and there is no need to
run X11/Xvfb anymore.</p>
<p><strong>Q: Which WebKit version is used by PhantomJS?</strong></p>
<p>A: If you want to know HTML5/CSS3/other features supported by PhantomJS, using
WebKit version is not a good idea. See <a href=
"http://code.google.com/p/phantomjs/wiki/SupportedFeatures">Supported Features</a> wiki page for
details.</p>
<p>If you really like to get the WebKit version, find it via the user agent, run the
<tt>examples/useragent.js</tt>. The actual version depends on the libraries with
which PhantomJS was compiled.</p>
<p><strong>Q: Why is PhantomJS not written as Node.js module?</strong></p>
<p>A: The short answer: "No one can serve two masters."</p>
<p>A longer explanation is as follows.</p>
<p>As of now, it is technically very challenging to do so.</p>
<p>Every Node.js module is essentially "a slave" to the core of Node.js, i.e. "the
master". In its current state, PhantomJS (and its included WebKit) needs to have the
full control (in a synchronous matter) over everything: event loop, network stack,
and JavaScript execution.</p>
<p>If the intention is just about using PhantomJS right from a script running within
Node.js, such a "loose binding" can be achieved by launching a PhantomJS process and
interact with it.</p>
<p><strong>Q: When using <tt>render()</tt>, why is the background
transparent?</strong></p>
<p>A: PhantomJS does not set the background color of the web page at all, it is left
to the page to decide its background color. If the page does not set anything, then
it remains transparent.</p>
<p>To set an initial background color for a web page, use the following trick:</p>
<pre>
page.evaluate(function() {
document.body.bgColor = 'white';
});</pre>
</div>
</div>
<div id="footer">
<div id="footer-content" class="container_12">
<p>
&copy; Copyright 2010-2013 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> &mdash; Website design by <a href="http://svay.com/">Maurice Svay</a>
</p>
</div>
</div>
</body>
</html>
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Some files were not shown because too many files have changed in this diff Show More