Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
HastDu authored Oct 24, 2024
1 parent a7e6c5e commit f5f6f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const period = document.getElementById("period");

setInterval(() => {
const now = new Date();
const month = now.getMonth();
const month = now.getMonth());
const day = now.getDate();
const hours = now.getHours();
const minutes = now.getMinutes();
const seconds = now.getSeconds();
document.getElementById("period").innerHTML= `Today is: ${month} ${day}, ${hours}:${minutes}:${seconds}`;
document.getElementById("title").innerHTML= '${month} ${day}';
document.getElementById("title").innerHTML= `${month} ${day}`;
}, 250);

0 comments on commit f5f6f8c

Please sign in to comment.