Skip to content

Commit

Permalink
added current year script for footer
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdahlberg committed Mar 1, 2024
1 parent 62124d5 commit bc627ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/footer_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ <h2>Have a question or need support?</h2>
<div id="globalFooter" class="clearfix">
<img src="{{ site.site_root }}/assets/images/OSC-badge.png" class="clearfix"/>
The Summit Events App is a proud member of the
<a href="https://powerofus.force.com/s/article/SFDO-OSC-Get-Started" target="_blank">Salesforce.org Open Source Commons</a>.
Open Source Commons is a community of mission-driven individuals working together to solve the world's most challenging problems.
<a href="https://trailhead.salesforce.com/trailblazer-community/groups/0F94S000000GwVKSA0?tab=discussion&sort=LAST_MODIFIED_DATE_DESC" target="_blank">Salesforce.org Commons</a>.
The Salesforce.org Commons is a community of mission-driven individuals working together to solve the world's most challenging problems.
We do this by actively listening to each other, educating each other, and bringing our passion, experience, and technical know-how to projects that can be
replicated and shared throughout the Salesforce ecosystem. We work to remove barriers to entry so that everyone can be a part of this vision.
<br/><br/>
<em>Copyright 2022, Salesforce.org. All rights reserved. Use of this source code is governed by a
<em>Copyright <span class="currentYear"></span>, Salesforce.org. All rights reserved. Use of this source code is governed by a
<a href="https://github.com/SFDO-Community/Summit-Events-App/blob/master/LICENSE.md">BSD Revised license.</a></em>
</div>

Expand Down
8 changes: 8 additions & 0 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit bc627ac

Please sign in to comment.