Skip to content

Commit

Permalink
fix: dynamic copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasganiga05 committed Jan 1, 2022
1 parent e231087 commit 2500f91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2>Get in Touch</h2>
<div class="row">
<div class="col-sm-5 copyright">
<p>
Copyright &copy; 2020 YOUR NAME
Copyright &copy; <span id="current-year">2022</span> YOUR NAME
</p>
</div>
<div class="col-sm-2 top">
Expand Down
3 changes: 3 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

(function($) {

// Show current year
$("#current-year").text(new Date().getFullYear());

// Remove no-js class
$('html').removeClass('no-js');

Expand Down

0 comments on commit 2500f91

Please sign in to comment.