From fbcb06651a848ae99c00d63de375f8ba7b0555bf Mon Sep 17 00:00:00 2001 From: Diganta Kr Banik Date: Fri, 1 Oct 2021 11:54:59 +0530 Subject: [PATCH] Added dynamic footer year --- contact.html | 2 +- index.html | 2 +- js/script.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contact.html b/contact.html index e820bc0..a885c2c 100755 --- a/contact.html +++ b/contact.html @@ -72,7 +72,7 @@

ProgrammerGaurav

diff --git a/index.html b/index.html index cfb16e6..8d96d67 100755 --- a/index.html +++ b/index.html @@ -410,7 +410,7 @@

Let's Chat

diff --git a/js/script.js b/js/script.js index 4ae0271..1063dd1 100755 --- a/js/script.js +++ b/js/script.js @@ -1,5 +1,8 @@ new WOW().init(); +const footerDate = document.getElementById("footer-date"); +const year = new Date().getFullYear(); +footerDate.innerHTML = year; var frm = document.querySelector('#contact') frm.addEventListener("submit", (e) => { e.preventDefault();