Skip to content

Commit

Permalink
add currentYear script
Browse files Browse the repository at this point in the history
  • Loading branch information
goldipl committed Jun 11, 2024
1 parent 4568916 commit b83e229
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Hamburger menu
$(document).ready(function(){
const currentYear = new Date().getFullYear();
$('.header-2-0 .hamburger-menu').click(function(){
$(this).toggleClass('open');
});
$('footer .footer-wrapper-bottom span').text(currentYear);
});

0 comments on commit b83e229

Please sign in to comment.