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
// Ch2 from Pro JavaScript Design Patterns | |
// Interfaces in JS!! | |
/* | |
interface Composite { | |
function add(child); | |
function remove(child); | |
function getChild(index); | |
} | |
interface FormItem { |
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 | |
*/ | |
body { | |
text-align:center; | |
} | |
div { | |
color:#eac; |
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
<div class="column"> | |
<a class="btn red">Button</a> | |
<div class="swatch red"></div> | |
<a class="btn darkRed">Button</a> | |
<div class="swatch darkRed"></div> | |
<a class="btn burntRed">Button</a> | |
<div class="swatch burntRed"></div> | |
<a class="btn brightBlue">Button</a> | |
<div class="swatch brightBlue"></div> | |
<a class="btn blue">Button</a> |
NewerOlder