diff --git a/explanation.js b/explanation.js index c7ec38e..0da141e 100644 --- a/explanation.js +++ b/explanation.js @@ -1,21 +1,12 @@ -{/*
-
- -

説明

-
-
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptas tempore repellat molestiae recusandae esse saepe hic unde sequi temporibus distinctio, nesciunt alias incidunt nostrum iusto voluptatibus. Nihil, quis in! Debitis.
-
*/} - -const explanationButton = document.getElementById("js-explanation"); const entrance = document.getElementById("js-entrance"); +const explanationButton = document.getElementById("js-explanation"); const layout = document.getElementById("js-layout"); +const layoutExplanation = document.getElementById("js-layout-explanation"); explanationButton.addEventListener("click", () => { - explanation = document.createElement('div'); - explanation.classList.add('explanation'); - explanation.innerHTML = ` + entrance.classList.add("hidden"); + layoutExplanation.classList.add("explanation"); + layoutExplanation.innerHTML = `
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptas tempore repellat molestiae recusandae esse saepe hic unde sequi temporibus distinctio, nesciunt alias incidunt nostrum iusto voluptatibus. Nihil, quis in! Debitis.
`; - layout.append(explanation) - entrance.classList.add('hidden'); const backButton = document.getElementById("js-back"); backButton.addEventListener("click", () => { - layout.innerHTML = ` -
-

テトリス

-
- - -
-
- ` - }) -}) + layoutExplanation.innerHTML = ""; + layoutExplanation.classList.remove("explanation"); + entrance.classList.remove("hidden"); + }); +}); diff --git a/index.html b/index.html index d62c692..362b442 100644 --- a/index.html +++ b/index.html @@ -3,14 +3,14 @@ - - + + @@ -18,21 +18,13 @@ team-c -