changed structure
This commit is contained in:
parent
255bc38154
commit
5aee9eea39
1
.gitignore
vendored
1
.gitignore
vendored
@ -130,3 +130,4 @@ dist
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
/.idea/git_toolbox_blame.xml
|
||||||
|
|||||||
@ -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")) {
|
||||||
@ -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">
|
||||||
@ -176,12 +176,6 @@ Counter
|
|||||||
===============
|
===============
|
||||||
*/
|
*/
|
||||||
|
|
||||||
main {
|
|
||||||
min-height: 100vh;
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user