Skip to content

Commit

Permalink
Updated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuks committed Jul 5, 2022
1 parent 6ab0568 commit 9764f24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h3>Project Six</h3>
/>
</a>
</div>
<p>Copyright &copy; Communitypro 2022, All rights reserved</p>
<p>Copyright &copy; Communitypro <span id="datee"></span>, All rights reserved</p>
</div>
</footer>
<script src="js/script.js"></script>
Expand Down
7 changes: 7 additions & 0 deletions src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ if (currentTheme) {
toggleSwitch.checked = true;
}
}

//Adding date

let myDate = document.querySelector("#datee");

const yes = new Date().getFullYear();
myDate.innerHTML = yes;

0 comments on commit 9764f24

Please sign in to comment.