Merge pull request #2 from xixu-me/auto-update-copyright-year-16256968688461913671
Auto-update copyright year
This commit is contained in:
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -474,7 +474,7 @@
|
||||
>
|
||||
</p>
|
||||
<p class="mt-1">
|
||||
Copyright © 2025
|
||||
Copyright © <span id="currentYear">2025</span>
|
||||
<a
|
||||
href="https://xi-xu.me"
|
||||
target="_blank"
|
||||
|
||||
@@ -696,6 +696,12 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
updateSwapButtonState(); // Initialize swap button state
|
||||
lucide.createIcons(); // Initialize Lucide icons
|
||||
|
||||
// Update copyright year
|
||||
const currentYearElement = document.getElementById("currentYear");
|
||||
if (currentYearElement) {
|
||||
currentYearElement.textContent = new Date().getFullYear();
|
||||
}
|
||||
|
||||
// Initial auto-translate if there's existing text
|
||||
if (elements.inputText.value.trim()) {
|
||||
scheduleAutoTranslate();
|
||||
|
||||
Reference in new issue
Block a user