mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2024-11-16 09:27:17 +03:00
ip little fix
This commit is contained in:
parent
28e7c58fde
commit
818956867a
@ -21,10 +21,10 @@ function fetchIPDetails(ip) {
|
|||||||
function updateDetailsOnPage(ipDetails) {
|
function updateDetailsOnPage(ipDetails) {
|
||||||
if (ipDetails) {
|
if (ipDetails) {
|
||||||
const ipElement = document.getElementById("ip");
|
const ipElement = document.getElementById("ip");
|
||||||
ipElement.textContent = `IP: ${ipDetails.ip}, ASN: ${ipDetails.asn}`;
|
ipElement.textContent = `${ipDetails.ip}, ${ipDetails.asn}`;
|
||||||
|
|
||||||
const countryElement = document.getElementById("country");
|
const countryElement = document.getElementById("country");
|
||||||
countryElement.textContent = `Country Code: ${ipDetails.countryCode}, City: ${ipDetails.city}, Org: ${ipDetails.org}`;
|
countryElement.textContent = `${ipDetails.countryCode}, ${ipDetails.city}, ${ipDetails.org}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user