Skip to content

Instantly share code, notes, and snippets.

View CoderCookE's full-sized avatar

Eric Cook CoderCookE

View GitHub Profile
### Keybase proof
I hereby claim:
* I am codercooke on github.
* I am ecook (https://keybase.io/ecook) on keybase.
* I have a public key ASAo-ZIoBpGfo-LpeilrCD64eCaJcY2AVWbLBYOP2USI4Ao
To claim this, I am signing this object:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html style="margin-top: 0px !important; padding-top: 0px !important; width: 100%">
<head>
<style type="text/css">
html, body{ width:100%; margin-top: 0px !important; padding-top: 0px !important; }
body{ background-color:#FFFFFF; margin-top: 0px !important; padding-top: 0px !important; font-family:sans-serif; }
table{ margin-top: 0px !important; padding-top: 0px !important; }
a img{ color:#000001 !important; }
body{ padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size:13px; line-height:17px; }
(function(jQuery) {
"use strict";
var numberOfProducts;
var subTotal;
//Fetches and scrapes cart for number of products and subtotal
var getData = function(){
jQuery.get('http://www.warbyparker.com/checkout/cart', function(data){
numberOfProducts = jQuery('.cart-total-qty').text();
subTotal = jQuery(data).find('.price').last().text();
var page = require('webpage').create();
page.open('http://nyt.com/', function() {
page.render('github.png');
phantom.exit();
});