diff --git a/.gitignore b/.gitignore index ceaea36..3715fa6 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,4 @@ dist .yarn/install-state.gz .pnp.* +/.idea/git_toolbox_blame.xml diff --git a/.idea/src/01_counter/app.js b/src/01_counter/app.js similarity index 89% rename from .idea/src/01_counter/app.js rename to src/01_counter/app.js index b609b85..44f3afb 100644 --- a/.idea/src/01_counter/app.js +++ b/src/01_counter/app.js @@ -3,9 +3,9 @@ let count = 0; // select value and buttons const value = document.querySelector("#value"); -const btns = document.querySelectorAll(".btn"); +const buttons = document.querySelectorAll(".btn"); -btns.forEach(function (btn) { +buttons.forEach(function (btn) { btn.addEventListener("click", function (e) { const styles = e.currentTarget.classList; if (styles.contains("decrease")) { diff --git a/.idea/src/01_counter/index.html b/src/01_counter/index.html similarity index 90% rename from .idea/src/01_counter/index.html rename to src/01_counter/index.html index c43c7f4..12bb760 100644 --- a/.idea/src/01_counter/index.html +++ b/src/01_counter/index.html @@ -7,7 +7,7 @@