Commit 68b32572 68b3257281d7ca4fddd36d429cd4346b65fad1cb by Nicolas Perriault

added jshint directives to samples

1 parent 443a2647
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* Create a mosaic image from all headline photos on BBC homepage
*/
var casper = require("casper").create();
var nbLinks = 0;
var currentLink = 1;
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create();
var dump = require("utils").dump;
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create();
// listening to a custom event
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* A basic custom logging implementation. The idea is to (extremely) verbosely
* log every received resource.
*/
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* download the google logo image onto the local filesystem
*/
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create({
verbose: true
});
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create();
var links = [
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* This script will add a custom HTTP status code handler, here for 404 pages.
*/
var casper = require("casper").create();
casper.on("http.status.200", function(resource) {
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create({
loadImages: false,
logLevel: "debug",
......@@ -34,4 +37,4 @@ Object.keys(links).forEach(function(url) {
fantomas.run(function() {
this.renderJSON(links);
this.exit();
});
\ No newline at end of file
});
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var links = [];
var casper = require("casper").create();
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* Takes provided terms passed as arguments and query google for the number of
* estimated results each have.
*
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* Capture multiple pages of google search results
*
* Usage: $ casperjs googlepagination.coffee my search terms
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create({
logLevel: "debug"
});
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create({
verbose: true,
logLevel: "debug"
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create();
var url = casper.cli.get(0);
var metas = [];
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var casper = require("casper").create({
verbose: true
});
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* This script will capture a screenshot of a twitter account page
* Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]>
*/
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* This script will add a custom HTTP status code handler, here for 404 pages.
*/
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
var failed = [];
var start = null;
var links = [
......
/*
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* Just a silly game.
*
* $ casperjs samples/timeout.js 500
......
/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* Translation using the Google Translate Service.
*
......