2020-02-08 22:13:01 +01:00
|
|
|
// dip service
|
2023-07-21 23:30:17 +02:00
|
|
|
var dip;
|
|
|
|
function get_elements() {
|
|
|
|
dip = document.getElementById("dip");
|
|
|
|
}
|
2020-02-08 22:13:01 +01:00
|
|
|
|
2023-07-21 23:30:17 +02:00
|
|
|
function get_ip() {
|
|
|
|
let a = fetch("https://ip.paulbsd.com/json");
|
|
|
|
a.then((resp) => {
|
|
|
|
resp.json().then(js => {
|
|
|
|
dip.innerHTML = js["ip"];
|
|
|
|
dip.href = `https://ip.paulbsd.com/${js["ip"]}`;
|
|
|
|
});
|
|
|
|
});
|
2020-02-08 22:13:01 +01:00
|
|
|
}
|
2023-07-21 23:30:17 +02:00
|
|
|
|
|
|
|
get_elements();
|
|
|
|
get_ip();
|