Skip to content

Commit

Permalink
Changed the title of the page to be the time
Browse files Browse the repository at this point in the history
  • Loading branch information
czozi authored Nov 25, 2024
1 parent 56914b4 commit 842dd36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,10 @@ function update() {
}
}
}

// Update the time display
document.getElementById("time").innerHTML = `Today is: ${month} ${day}, ${hourd}:${minutes}:${seconds} ${ender}`;
document.getElementById("title").innerHTML = `${month} ${day}`; // Changes title
period.innerHTML = `${selector}`; // Show the current period

document.getElementById("title").innerHTML = `${hourd}:${minutes}`; // Changes title
period.innerHTML = `${selector}`;
requestAnimationFrame(update);
}

Expand Down

0 comments on commit 842dd36

Please sign in to comment.