Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| # Require dependencies | |
| # -------------------- | |
| phantomcss = require("./../../node_modules/phantomcss/phantomcss.js") | |
| # Init PhantomCSS magic | |
| # -------------------- | |
| phantomcss.init | |
| # Paths |
| /* | |
| Author: David Fox-Powell | |
| Company: Optimizely | |
| Last updated date: 20 July 2014 | |
| URL: https://github.com/dtothefp/phantomcss-gitdiff | |
| */ | |
| var fs = require('fs'); | |
| var _src = '.'+fs.separator+'screenshots'; |
| [user] | |
| # Credentials. | |
| name = Foo Bar | |
| email = [email protected] | |
| drupal = $(whoami) | |
| [credential] | |
| # Save passwords in ~/.git-credentials. | |
| helper = store |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |