//e is the object, and 'op' is a parameter passed that tells us
//if we're increasing or decreasing the value.
function step_change(e, op) {
...

JavaScript An incrementor function tha...

by Danny Peck, June 08, 2009 15:58, 2 refactorings, tagged with javascript, math, increment

Essentially there is a text...

8f5553306c2cf7f4b14153f6117f8e9b Talk
function formatCurrency(num) {
    num = num.toString().replace(/\\$|\\,/g,'');
    if (isNaN(num)) num = '0';
...

JavaScript Format Currency

by slf, January 20, 2009 20:01, 7 refactorings, tagged with math, regex, formatting

During a code review we fou...

098e5c1a565b47e9860539fbebc3fa98 Talk
<script type="text/javascript">
var feature_stuff = new Array(
'<li><a href="#">URL 1</a></li>',
...

JavaScript Random URL

by DeathfireD, October 29, 2007 15:21, 7 refactorings, tagged with random, url, math

Outputs one of the 5 urls r...

421453710d51d7daaea8069af0aa4126 Talk