Skip to content

Commit

Permalink
Update testing.html
Browse files Browse the repository at this point in the history
  • Loading branch information
udontur authored Mar 21, 2024
1 parent cd68111 commit a9b8cfb
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions testing.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
<title>Clock</title>
<style>
body {
background-color: #181818;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 25em;
font-family: Arial, sans-serif;
color: white;
margin: 0;
font-weight: 600;
}
</style>
</head>
<body>
<h1>Testing</h1>
<script>
function updateClock() {
const now = new Date();
const hours = now.getHours().toString().padStart(2, "0");
const minutes = now.getMinutes().toString().padStart(2, "0");
const seconds = now.getSeconds().toString().padStart(2, "0");
document.body.textContent = `${hours}:${minutes}:${seconds}`;
}
updateClock();
setInterval(updateClock, 1000);
</script>
</body>
</html>

0 comments on commit a9b8cfb

Please sign in to comment.