develop #1
1
.gitignore
vendored
1
.gitignore
vendored
@ -130,3 +130,4 @@ dist
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
/.idea/git_toolbox_blame.xml
|
||||
|
||||
@ -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")) {
|
||||
@ -7,7 +7,7 @@
|
||||
<title>Counter</title>
|
||||
|
||||
<!-- styles -->
|
||||
<link rel="stylesheet" href="./styles.css"/>
|
||||
<link rel="stylesheet" href="/src/styles.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@ -176,12 +176,6 @@ Counter
|
||||
===============
|
||||
*/
|
||||
|
||||
main {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user