peak refactoring.
- main method was too complex - now its better, **to read**
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user