jquery-levelup
Simple +1/-1 Animation similar to point accumulation in a video game.
Plans
See issues.
Usage
counter 0
Options
You should specify options like in usage example above.
Name | Type | Default | Description |
---|---|---|---|
start | integer | 0 |
Start value for span. |
incrementer/decrementer.bold | boolean | true | Whether the incrementer |
incrementer/decrementer.color | CSS color string | null | Change the incrementer |
incrementer/decrementer.class | string | null | Add a class to the incrementer |
showThousands | boolean | false | Whether to use a thousands separate everywhere |
thousandSep | string | "," | The thousand separator to use |
Methods | Params |
---|---|
increment |
integer by which to increment |
decrement |
absolute value of integer by which to decrement (always positive) |
reset |
|
get |