changed structure

This commit is contained in:
Fabian 2024-10-08 18:16:38 +02:00
parent 255bc38154
commit 5aee9eea39
4 changed files with 4 additions and 9 deletions

1
.gitignore vendored
View File

@ -130,3 +130,4 @@ dist
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
/.idea/git_toolbox_blame.xml

View File

@ -3,9 +3,9 @@ let count = 0;
// select value and buttons // select value and buttons
const value = document.querySelector("#value"); 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) { btn.addEventListener("click", function (e) {
const styles = e.currentTarget.classList; const styles = e.currentTarget.classList;
if (styles.contains("decrease")) { if (styles.contains("decrease")) {

View File

@ -7,7 +7,7 @@
<title>Counter</title> <title>Counter</title>
<!-- styles --> <!-- styles -->
<link rel="stylesheet" href="./styles.css"/> <link rel="stylesheet" href="/src/styles.css"/>
</head> </head>
<body> <body>
<div class="container"> <div class="container">

View File

@ -176,12 +176,6 @@ Counter
=============== ===============
*/ */
main {
min-height: 100vh;
display: grid;
place-items: center;
}
.container { .container {
text-align: center; text-align: center;
} }