This file contains hidden or 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
/** | |
* RGBA & Hex Fallback | |
* | |
* Takes a hex code with comma separated alpha value. | |
* Falls back to just the hex if no alpha is provided. | |
* | |
* Params: | |
* $prop: The CSS property to apply the color value to | |
* $color: A hex code, or bracketed Hex + Opacity figure. eg: (#fff, 0.5) | |
* |
This file contains hidden or 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> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="date"></div> | |
</body> |
This file contains hidden or 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
# .gitignore Boilerplate | |
# | |
# For noise that might accidentally end up in Repos | |
# And anything that should be in S3 | |
# ------------------------------------------------- | |
# Noise | |
# ----- |
This file contains hidden or 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
Number.prototype.currency = function (format) { | |
var amt = this, neg; | |
// If no formatting string supplied | |
// or amount is not a number, return as is | |
if (!format || isNaN(amt)) return amt; | |
// Extract placeholders from format string | |
var formFig = format.match(/\#(.*)\#/g).pop(); | |
This file contains hidden or 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
{ | |
"AD": { | |
"currency": { | |
"primary": "EUR" | |
}, | |
"iso": { | |
"code2": "AD", | |
"code3": "AND", | |
"num": "020" | |
}, |
This file contains hidden or 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
{ | |
"AF": { | |
"name": "Afghanistan" | |
}, | |
"AX": { | |
"name": "Åland Islands" | |
}, | |
"AL": { | |
"name": "Albania" | |
}, |
This file contains hidden or 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
// Setup an icon array of name modifer keys + content values | |
// eg. "pencil": "\e602"; becomes a class of .icon--pencil | |
$icon-types: ( | |
"pencil": "\e602", | |
"ticket": "\e60d", | |
"cart2": "\e60f", | |
"credit": "\e627", | |
"location": "\e612", | |
"map": "\e634", | |
"clock": "\e614", |
This file contains hidden or 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
// Transmitter | |
var storedHeight = 0, payload; | |
setInterval(function() { | |
var currentHeight = $('.ng-scope').height(); | |
if (currentHeight == storedHeight) { | |
return false; | |
} else { | |
storedHeight = currentHeight; | |
payload = JSON.stringify({ height: currentHeight }); |
This file contains hidden or 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
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled.active, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled.focus, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled:active, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled:focus, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close.disabled:hover, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close[disabled], | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close[disabled].active, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close[disabled].focus, | |
[core-date-range] [core-morph-popup] .content-box .footer .btn.close[disabled]:active, |
This file contains hidden or 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
/** | |
* Basic input field wrapped with FormField HOC | |
*/ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import FormFieldWrapper from './FormFieldWrapper' | |
import './BasicField.css' |
OlderNewer