Skip to content

Commit c35f822

Browse files
Merge pull request #135 from vikasganiga05/fix-117-dynamic-copyright-year
Fixed Dynamic Copyright Year
2 parents e231087 + 2500f91 commit c35f822

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ <h2>Get in Touch</h2>
237237
<div class="row">
238238
<div class="col-sm-5 copyright">
239239
<p>
240-
Copyright &copy; 2020 YOUR NAME
240+
Copyright &copy; <span id="current-year">2022</span> YOUR NAME
241241
</p>
242242
</div>
243243
<div class="col-sm-2 top">

js/scripts.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
(function($) {
1414

15+
// Show current year
16+
$("#current-year").text(new Date().getFullYear());
17+
1518
// Remove no-js class
1619
$('html').removeClass('no-js');
1720

0 commit comments

Comments
 (0)