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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
/** | |
* @class Flags | |
* @constructor | |
* @param {Array} newFlags Optional array of flag keys to define when the flags module is instantiated | |
*/ | |
Flags = function( newFlags ){ | |
this.flags = 0; | |
this.flagHash = {}; | |
this.keys = 0; | |
if(newFlags){ |
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
Color = function(color) { | |
this.hex = this.parseHex(color); | |
this.rgb = this.hex2rgb(); | |
this.hsl = this.rgb2hsl(); | |
} | |
Color.prototype = (function(){ | |
var _public = {}; | |
_public.parseHex = function(hex){ |