Skip to content

Instantly share code, notes, and snippets.

View jayseeg's full-sized avatar

Jake Gibbons jayseeg

View GitHub Profile
@jayseeg
jayseeg / README.md
Created January 30, 2014 17:47 — forked from mbostock/.block
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
//See more at: http://www.syntacticsugr.com/23-javascript/sugr_cubes/112-detect-html5-placeholder-attribute-support#sthash.g81NfAk7.dpuf
placeholderSupport = ("placeholder" in document.createElement("input"));
if(!placeholderSupport){
//This browser does not support the placeholder attribute
//use javascript instead
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() === input.attr('placeholder')) {