Skip to content

Instantly share code, notes, and snippets.

@umbrae
umbrae / dashCaseToLowerCamelCase.js
Created April 22, 2011 13:24
Convert from Dash Case (some-string-like-this) to lowerCamelCase in Javascript
function dashCaseToLowerCamelCase(dashCaseString) {
return dashCaseString.replace(/-\w/g, function ($0) { return $0.substr(-1).toUpperCase(); });
}
readability.article.smoothScrolling = {
reversePageScroll : false, // If they hold shift and hit space, scroll up
/**
* How long it takes to scroll the page, in ms.
**/
scrollSpeed: 500,
/**
* The scrollable element, which changes depending on browser. Initialized via initScrollable.
/**
* HTML5 Placeholder Deprecation JS.
* Automatically support the placeholder attribute in browsers that don't support it.
*
* To emulate webkit, placeHolderActive class should probably contain something like:
* .placeholderActive { color: darkGray; }
*
* Chris Dary - [email protected]
* Released under the WTFPL License : http://sam.zoy.org/wtfpl/
**/