Skip to content

Commit 0c5a05e

Browse files
authored
Make footer year dynamic in config.html
1 parent 92bd43f commit 0c5a05e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,11 @@ <h3>Troubleshooting</h3>
623623

624624
<footer>
625625
<div class="container">
626-
<p>&copy; 2025 TranslucentTB Project. Configuration documentation for better Windows taskbar customization.</p>
626+
<p>&copy; <span id="year"></span> TranslucentTB Project. Configuration documentation for better Windows taskbar customization.</p>
627627
</div>
628628
</footer>
629629

630630
<script>
631-
// Smooth scrolling for navigation links
632631
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
633632
anchor.addEventListener('click', function (e) {
634633
e.preventDefault();
@@ -642,7 +641,6 @@ <h3>Troubleshooting</h3>
642641
});
643642
});
644643

645-
// Highlight current section in navigation
646644
const observerOptions = {
647645
root: null,
648646
rootMargin: '-80px 0px -80px 0px',
@@ -669,6 +667,8 @@ <h3>Troubleshooting</h3>
669667
document.querySelectorAll('.section').forEach(section => {
670668
observer.observe(section);
671669
});
670+
671+
document.getElementById("year").textContent = new Date().getFullYear();
672672
</script>
673673
</body>
674-
</html>
674+
</html>

0 commit comments

Comments
 (0)