This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.open('http://nyt.com/', function() { | |
page.render('github.png'); | |
phantom.exit(); | |
}); |