i think form might be ready
This commit is contained in:
parent
7299fe7890
commit
3d817ef503
5 changed files with 24 additions and 15 deletions
|
|
@ -6,9 +6,11 @@ function min(a, b) {
|
|||
}
|
||||
function increase(id) {
|
||||
input = document.getElementById(id)
|
||||
input.value= min(parseInt(input.value)+1, 0)
|
||||
step = parseFloat(input.step)
|
||||
input.value= min(parseFloat(input.value)+step, 0)
|
||||
}
|
||||
function decrease(id) {
|
||||
input = document.getElementById(id)
|
||||
input.value= min(parseInt(input.value)-1, 0)
|
||||
step = parseFloat(input.step)
|
||||
input.value= min(parseFloat(input.value)-step, 0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue