Skip to content

Commit 05a0ea9

Browse files
committed
Get current year in footer trademark
1 parent 8abbba2 commit 05a0ea9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

_includes/footer.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</div>
55
<footer>
66
<p class=" trademark">
7-
"Fields of View" and "FoV" are trademarks of Fields of View Society © 2022. Fields of View. <br>All Rights
7+
"Fields of View" and "FoV" are trademarks of Fields of View Society © <span>2022</span>. Fields of View. <br>All Rights
88
Reserved.
99
</p>
1010
<p class="address">
@@ -124,4 +124,11 @@
124124
width: clamp(30px, 3rem, 40px);
125125
}
126126
}
127-
</style>
127+
</style>
128+
<script>
129+
document.addEventListener('DOMContentLoaded', function() {
130+
const yearSpan = document.querySelector('footer .trademark span');
131+
const currentYear = new Date().getFullYear();
132+
yearSpan.textContent = currentYear;
133+
})
134+
</script>

0 commit comments

Comments
 (0)