Skip to content

Commit

Permalink
simple changes made here
Browse files Browse the repository at this point in the history
  • Loading branch information
Yubraj977 committed Nov 15, 2023
1 parent b16fa35 commit 3fcca25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
4 changes: 3 additions & 1 deletion digital clock/digital.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

<div class="main">

<strong> <p class="time"> 00 00 00 </p></strong>
<p class="time">

</p>



Expand Down
3 changes: 2 additions & 1 deletion digital clock/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ function updateClock(){
const minutes=String(now.getMinutes()).padStart(2,"0")
const seconds=String(now.getSeconds()).padStart(2,"0")
const millisec=String(now.getMilliseconds()).padStart(3,"0")


timestring=`${hours}:${minutes}:${seconds}`
updateElement.textContent=timestring
updateElement.innerText=timestring
}
updateClock();
setInterval(updateClock,200)
Expand Down
27 changes: 16 additions & 11 deletions digital clock/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,34 @@
.main{
width: 100%;
height: 100vmin;
display: flex;
/* display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
overflow: hidden; */


}
strong{
width: 100%;
display: flex;
justify-content: center;
text-align: center;
}
.time{


position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16rem;
font-family: 'Technology', sans-serif;
letter-spacing: 1.1rem;
min-width: 100px; /* Set your desired maximum width */
margin: 0 auto;

font-weight: bolder;
width: 1000px;
text-align: center;



margin: auto;
width: 758px;
padding-left: 60px;
/* text-align: center; */
font-weight: bolder


}
Expand Down

0 comments on commit 3fcca25

Please sign in to comment.