From b7833b842d6be60b9170a3cebe94a515d49066bd Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 14 Nov 2023 12:03:13 -0500 Subject: Declare for loop variables --- www/causal.agency/lands.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/causal.agency/lands.html') diff --git a/www/causal.agency/lands.html b/www/causal.agency/lands.html index fecd06bf..7aaadd80 100644 --- a/www/causal.agency/lands.html +++ b/www/causal.agency/lands.html @@ -75,7 +75,7 @@ function showCard(card) { } function resetChecks() { - for (c of "wubrg") { + for (let c of "wubrg") { let input = document.getElementById(c); input.checked = false; input.disabled = false; @@ -87,7 +87,7 @@ function checkChecks(card) { let score = 0; let total = 0; let checked = 0; - for (c of "wubrg") { + for (let c of "wubrg") { let input = document.getElementById(c); let produced = card.produced_mana.includes(c.toUpperCase()); if (produced) { @@ -104,7 +104,7 @@ function checkChecks(card) { } document.onkeydown = function(event) { - for (c of "wubrg") { + for (let c of "wubrg") { if (event.key == c) { let input = document.getElementById(c); if (!input.disabled) input.checked ^= true; -- cgit 1.4.1