rudimentary form

This commit is contained in:
bronku 2026-11-08 15:40:41 +01:00
parent eab2134685
commit b86f7f6ea0
7 changed files with 121 additions and 23 deletions

14
js/order.js Normal file
View file

@ -0,0 +1,14 @@
function min(a, b) {
if (a > b) {
return a
}
return b
}
function increase(id) {
input = document.getElementById(id)
input.value= min(parseInt(input.value)+1, 0)
}
function decrease(id) {
input = document.getElementById(id)
input.value= min(parseInt(input.value)-1, 0)
}