Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

<title>Digital Clock</title> <style> body { background: #1a1a1a; color: #00ffcc; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: "Courier New", Courier, monospace; margin: 0; }
.clock {
  font-size: 60px;
  padding: 20px 40px;
  background: #000;
  border: 3px solid #00ffcc;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffcc;
}
</style>
00:00:00
<script> function updateClock() { const now = new Date(); let hours = now.getHours().toString().padStart(2, "0"); let minutes = now.getMinutes().toString().padStart(2, "0"); let seconds = now.getSeconds().toString().padStart(2, "0"); document.getElementById("clock").textContent = `${hours}:${minutes}:${seconds}`; } setInterval(updateClock, 1000); updateClock(); // initial call </script> # Digital-clock-

About

No description, website, or topics provided.

Resources

Stars

19 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors