From 18cf6bf2f78f3dbc0069f7f18aedb8a7c386a564 Mon Sep 17 00:00:00 2001 From: Nikolay Belikov Date: Mon, 18 Apr 2022 21:21:56 +0300 Subject: [PATCH] Fix: declare variables with `const` keyword --- .../Japanese Mined Sentences (cyphar)/Production/front.html | 2 +- .../Japanese Mined Sentences (cyphar)/Recognition/back.html | 2 +- .../Japanese Mined Sentences (cyphar)/Recognition/front.html | 2 +- templates/Japanese fallback/Production/front.html | 2 +- templates/Japanese fallback/Recognition/front.html | 2 +- templates/Japanese sentences/Production/front.html | 2 +- templates/Japanese sentences/Recognition/front.html | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/Japanese Mined Sentences (cyphar)/Production/front.html b/templates/Japanese Mined Sentences (cyphar)/Production/front.html index 720d822..67bf9ef 100644 --- a/templates/Japanese Mined Sentences (cyphar)/Production/front.html +++ b/templates/Japanese Mined Sentences (cyphar)/Production/front.html @@ -9,7 +9,7 @@ document.addEventListener('DOMContentLoaded', threeDots(), false); function threeDots() { - for (hidden of document.querySelectorAll(".production b, .production strong")) { + for (const hidden of document.querySelectorAll(".production b, .production strong")) { hidden.style.visibility = "visible"; hidden.innerText = "【" + hidden.innerText.replace(/[^ぁ-んァ-ン]/g, "") + "】"; } diff --git a/templates/Japanese Mined Sentences (cyphar)/Recognition/back.html b/templates/Japanese Mined Sentences (cyphar)/Recognition/back.html index 72a7b8a..90d612f 100644 --- a/templates/Japanese Mined Sentences (cyphar)/Recognition/back.html +++ b/templates/Japanese Mined Sentences (cyphar)/Recognition/back.html @@ -99,7 +99,7 @@ Paints the question word according to its Pitch Accent number. } function paintTargetWord(color) { - for (word of document.querySelectorAll(".jpsentence b, .jpsentence strong")) { + for (const word of document.querySelectorAll(".jpsentence b, .jpsentence strong")) { word.style.color = color; // clear border on back side of cards word.style["border"] = "0px"; diff --git a/templates/Japanese Mined Sentences (cyphar)/Recognition/front.html b/templates/Japanese Mined Sentences (cyphar)/Recognition/front.html index d1a4cf2..4957e40 100644 --- a/templates/Japanese Mined Sentences (cyphar)/Recognition/front.html +++ b/templates/Japanese Mined Sentences (cyphar)/Recognition/front.html @@ -27,7 +27,7 @@ Modified by Aleksa Sarai .