Skip to content

Commit

Permalink
🎉 Auto-Updating Year! 📅
Browse files Browse the repository at this point in the history
  • Loading branch information
RhythmusByte authored Apr 17, 2024
1 parent c4c2b5a commit ea251c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ async function copyText(e) {
copyBtn.forEach(copyBtn =>
copyBtn.addEventListener('click', copyText))

const year = document.getElementById("year");
year.textContent = new Date().getFullYear();

0 comments on commit ea251c4

Please sign in to comment.