peak refactoring.

- main method was too complex
- now its better, **to read**
This commit is contained in:
2025-07-23 23:22:25 +02:00
parent 01f3de7f3b
commit 795ae64aa2
4 changed files with 52 additions and 31 deletions

View File

@@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", () => {
function updateDateTime() {
const now = new Date();
dateElement.textContent = `Current date and time: ${now.toLocaleString()}`;
dateElement.textContent = `Current date and time: ${now}`;
}
// Update once on load