mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
fix: devWeb - update nbRound when nbcolors & nbvalue are modified on new game configuration
This commit is contained in:
@@ -98,7 +98,9 @@
|
|||||||
input.addEventListener("input", () => {
|
input.addEventListener("input", () => {
|
||||||
tooltip.innerHTML = input.value
|
tooltip.innerHTML = input.value
|
||||||
nbRound.max = nbValues.value * nbColors.value;
|
nbRound.max = nbValues.value * nbColors.value;
|
||||||
nbRound.value = nbRound.value > nbRound.max ? nbRound.max : nbRound.value;
|
nbRound.value = parseInt(nbRound.value) > parseInt(nbRound.max) ? nbRound.max : nbRoundtmp;
|
||||||
|
console.log("newValue : " + nbRound.value)
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user