From a56a37543ba1c663a81e92c7e98aa8733fc57861 Mon Sep 17 00:00:00 2001 From: Nikos Vougioukakis Date: Mon, 2 Dec 2024 14:52:35 +0200 Subject: [PATCH] dynamic year --- index.html | 9 ++++++--- script.js | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1bae4b0..9794df8 100644 --- a/index.html +++ b/index.html @@ -77,9 +77,12 @@

- -

Nikolaos Vougioukakis 2024

-

Background designed by Freepik, icons by Icons8 and svgrepo, music by UNIVERSFIELD from Pixabay, click sound by Heshl

+ + diff --git a/script.js b/script.js index 9d93ee1..82f0cd1 100644 --- a/script.js +++ b/script.js @@ -1,7 +1,8 @@ -//todo: add ambient bg sound and sound effects on click let click_audio = document.getElementById("click-sound"); let muted = 0; +document.getElementById("curr-year").innerHTML = new Date().getFullYear(); + function loadContent(contentId) { const mainContent = document.getElementById("mainContent");