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
/** | |
* webkit y u know 1px rule with linear-gradient? | |
*/ | |
div { | |
background: #eee; | |
height: 650px; | |
background-image: linear-gradient( | |
transparent, | |
transparent 50px, |
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 Controls = { | |
init: function (container) { | |
// Matches "control-something" | |
var typeRegex = /control-([a-z0-9\-]+)(\s|$)/i; | |
container.select('.init').each(function (el) { | |
var control_name = typeRegex.exec(el.className)[1].camelize().ucfirst(); | |
try { | |
this.createnewControl(control_name, el); |
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
/* 1 - keep js separate */ | |
// these are the same but #2 can be passed around. | |
function myFunc(a) { | |
} | |
var myFunc = function(a) { | |
} |