Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
triggereddown committed Mar 5, 2024
0 parents commit 73e6d7b
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 0 deletions.
Binary file added README.md
Binary file not shown.
79 changes: 79 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
.body{
height: 100%;
width: 100%;

}
/* .bigbox{
display: flex;
align-items: center;
justify-content: center;
} */
.content{
width: auto;
height: 100%;
padding-left: 400px;
padding-right: 400px;

/* display: flex;
align-items: center;
justify-content: center;
*/

}
.head{
padding-left: 130px;
font-family: 'Roboto', sans-serif;
}
.smalltext{
padding-left: 300px;
font-family: 'Roboto', sans-serif;
}
.innerpanel{


display: flex;
align-items: center;
justify-content: space-around;

}
.btnbtn-dec{

color: white;
background-color: red;
width: 50px;
padding-left: 10px;
padding-right: 10px;
border-radius: 5px;
padding-top: 10px;
padding-bottom: 10px;

}
.resetbtn{
padding-left: 310px;
}

.btnbtn-inc{
color: white;
background-color: green;
width: 50px;
padding-left: 10px;
padding-right: 10px;
border-radius: 5px;
padding-top: 10px;
padding-bottom: 10px;
}
.resetbtn{
padding-bottom: 30px;
}
.reset{
background-color: aquamarine;
border-radius: 5px;



}
.borderforbutton{
border-style: groove;

}
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<title>Document</title>
<link rel="stylesheet" href="index.css">

</head>

<body>
<div class="bigbox">
<div class="content">
<h1 class="head"> WANNA START THE COUNTER?</h1>
<div class="borderforbutton">
<div class="innerpanel">
<button class="btnbtn-dec">-</button>

<h1 id="text">0</h1>
<button class="btnbtn-inc">+</button>
</div>
<div class="resetbtn">
<button class="reset">TRY AGAIN</button>
</div>
</div>
<p class="smalltext">Made By DEEP</p>

</div>

</div>
<script src="index.js"></script>

</body>

</html>
25 changes: 25 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const btnDec =document.querySelector(".btnbtn-dec");
const text=document.querySelector("#text");
const btnIec =document.querySelector(".btnbtn-inc");
const btnRes= document.querySelector(".reset");

let counter=0;

btnDec.addEventListener("click", () => {
if(counter>0) counter--;

text.innerHTML=counter

});

btnIec.addEventListener("click", () => {
counter++;

text.innerHTML= counter
});
btnRes.addEventListener("click", () => {
counter=0;

text.innerHTML= counter
});

Binary file added pic/Screenshot 2023-04-20 104207.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73e6d7b

Please sign in to comment.