From 91b136156a29882c1566e183edc7901bcb033f97 Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Mon, 11 Sep 2023 00:19:31 +0100 Subject: [PATCH] main.js.download --- index_files/main.js.download | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/index_files/main.js.download b/index_files/main.js.download index ae34728..c2aec44 100644 --- a/index_files/main.js.download +++ b/index_files/main.js.download @@ -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