summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index 1ceeedb..5af805a 100644
--- a/index.html
+++ b/index.html
@@ -41,6 +41,10 @@
var mIn = document.getElementById("m");
var dIn = document.getElementById("d");
var game = new Board();
+
+ mIn.addEventListener("change", function(){
+ if(dIn.value !== "0") dIn.value = "0";
+ });
</script>
</body>
</html> \ No newline at end of file