From c30ae08221168e93aae4c84efd410e121dd809b3 Mon Sep 17 00:00:00 2001 From: zlaytan25 Date: Thu, 1 Oct 2020 18:45:50 +0200 Subject: [PATCH] 14-dynamic-copyright-date second try --- index.html | 2 +- js/script.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a01991e..353db56 100644 --- a/index.html +++ b/index.html @@ -277,7 +277,7 @@

Get in touch

diff --git a/js/script.js b/js/script.js index d2d30c5..4227f50 100644 --- a/js/script.js +++ b/js/script.js @@ -27,4 +27,7 @@ function onScroll() { } else { navbar.classList.remove("sticky"); } -} \ No newline at end of file +} + +var date = new Date(); +document.getElementById("year").innerHTML = date.getFullYear();