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

@@ -10,6 +10,7 @@
<body>
<h1 class="specialboi">Hello from RSTTP</h1>
<h2 style="font-style: italic;font-weight: bold;">Special Heading2</h2>
<p id="javascriptdate">
<p>
<script src="script.js"></script>

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