main.js.download

This commit is contained in:
Adil Sadqi 2023-09-11 00:19:31 +01:00 committed by GitHub
parent 04a2ef56bc
commit 91b136156a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -373,16 +373,3 @@ function getLocalIpAddress() {
});
}
// Update the banner content with current date, time, and local IP address
async function updateBanner() {
const formattedDateTime = getCurrentDateTime();
const localIpAddress = await getLocalIpAddress();
document.getElementById("datetime").innerText = formattedDateTime;
document.getElementById("ipaddress").innerText = `Local IP Address: ${localIpAddress}`;
}
// Execute the updateBanner function when the page loads
window.addEventListener("load", updateBanner);
// Define your banner array with the updated HTML content