Add internal connection, update NL latencies
All checks were successful
/ deploy (push) Successful in 34s

This commit is contained in:
Minecon724 2025-08-10 15:46:26 +02:00
commit 4a30d304cd
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

View file

@ -56,11 +56,12 @@ const nodes = {
}
const connections = [
{ from: 'nl1', to: 'se1', latency: 20 },
{ from: 'nl1', to: 'de1', latency: 10 },
{ from: 'nl1', to: 'fr1', latency: 10 },
{ from: 'nl1', to: 'se1', latency: 24 },
{ from: 'nl1', to: 'de1', latency: 12 },
{ from: 'nl1', to: 'fr1', latency: 17 },
{ from: 'de1', to: 'pl1', latency: 25 },
{ from: 'de1', to: 'fr1', latency: 16 },
{ from: 'pl1', to: 'se1', latency: 33 }
];
/* ------ */
@ -141,7 +142,7 @@ for (let nodeId of Object.keys(nodes)) {
let node = nodes[nodeId];
console.log(`Adding node: ${nodeId} (${node.city}; ${node.hostname})`);
let marker = L.marker(node.location).addTo(map).bindPopup(`<strong>${node.city}</strong><br>DC: ${node.datacenter}`);
let marker = L.marker(node.location).addTo(map).bindPopup(`<strong>${node.city}</strong><br>${node.datacenter}`);
let ele = document.createElement("div");
ele.innerHTML = `<strong>${node.city}</strong>`;
@ -175,4 +176,6 @@ for (let connection of connections) {
).addTo(map).bindPopup(label);
}
sidebarContent.onclick = dismissPopup;
sidebarContent.onclick = dismissPopup;
L.marker([12.6278528, -7.9979628], {opacity: 0.1}).addTo(map).bindPopup(`what's a server?`);