From bc627acaf0cf559c53f734057cb1fd48c05f9e92 Mon Sep 17 00:00:00 2001 From: Thaddaeus Dahlberg <16785863+tcdahlberg@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:55:36 -0600 Subject: [PATCH] added current year script for footer --- _includes/footer_custom.html | 6 +++--- assets/js/scripts.js | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/_includes/footer_custom.html b/_includes/footer_custom.html index 48a53fde..dd789a87 100644 --- a/_includes/footer_custom.html +++ b/_includes/footer_custom.html @@ -25,12 +25,12 @@

Have a question or need support?

diff --git a/assets/js/scripts.js b/assets/js/scripts.js index ab0995a3..8ea0be2d 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -36,6 +36,14 @@ document.addEventListener('DOMContentLoaded', function (event) { imageModal.style.display = "none"; } + let currentDate = new Date(); + let currentYear = currentDate.getFullYear(); + + // Find the element with the id "currentYear" + document.querySelectorAll(".currentYear").forEach(function (currentYearElement) { + currentYearElement.textContent = currentYear.toString(); + }); + setIframeVideo(); });