diff --git a/code.js b/code.js index 2232eb5..3bc07e7 100644 --- a/code.js +++ b/code.js @@ -1,3 +1,9 @@ +let fieldId = 0; +for(let i = 0; i < 64; i++){ + fieldId = i.toString(); + document.getElementById("field"+fieldId).selected = 0; +} function selectField(field){ - + console.log(field.id); + field.style.backgroundColor = "rgb(227,8,8, 0.3)"; } \ No newline at end of file diff --git a/index.html b/index.html index 1a15961..f8d2d63 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,6 @@ Title -