summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-11-14 12:03:13 -0500
committerJune McEnroe <june@causal.agency>2023-11-14 12:03:13 -0500
commitb7833b842d6be60b9170a3cebe94a515d49066bd (patch)
tree30c1e3be3827bc69b177bb2ea43be84ce4252b0c
parentAdd Magic Lands Quiz (diff)
downloadsrc-b7833b842d6be60b9170a3cebe94a515d49066bd.tar.gz
src-b7833b842d6be60b9170a3cebe94a515d49066bd.zip
Declare for loop variables
-rw-r--r--www/causal.agency/lands.html6
1 files changed, 3 insertions, 3 deletions
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;