changed code -> sets .selected for all fields to 0
changed index -> script now gets loaded at the end of the bodymaster
parent
120bdb430c
commit
1885fcc517
@ -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)";
|
||||
}
|
Loading…
Reference in New Issue