Commit 0ab81146 by Yutaka Kobayashi

変数名をキャメルケースで統一

1 parent f74a4f9f
Showing with 2 additions and 2 deletions
...@@ -10,7 +10,7 @@ class Home { ...@@ -10,7 +10,7 @@ class Home {
const button = document.querySelectorAll(".novelList__button"); const button = document.querySelectorAll(".novelList__button");
const modalBack = document.querySelector(".modalBackground"); const modalBack = document.querySelector(".modalBackground");
const modal = document.querySelectorAll(".modal"); const modal = document.querySelectorAll(".modal");
const closebutton = document.querySelector(".modal__button"); const closeButton = document.querySelector(".modal__button");
// モーダルを表示する // モーダルを表示する
for (let i = 0; i < button.length; i++) { for (let i = 0; i < button.length; i++) {
...@@ -24,7 +24,7 @@ class Home { ...@@ -24,7 +24,7 @@ class Home {
} }
// モーダルを非表示にする // モーダルを非表示にする
closebutton.addEventListener("click", () => { closeButton.addEventListener("click", () => {
body.classList.remove("open"); body.classList.remove("open");
modalBack.classList.remove("open"); modalBack.classList.remove("open");
for (let i = 0; i < modal.length; i++) { for (let i = 0; i < modal.length; i++) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!