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
Diffstat (limited to '')
-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;
/src/commit/etc/Light.terminal?id=2b6691af9ce182dea526702a4e530637202987b5&follow=1'>Update Dark.terminalJune McEnroe Why are the blobs so much bigger now? 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe When? Now. 2019-07-24Remove histedit from bitJune McEnroe