${ring.hops} hop${ring.hops > 1 ? 's' : ''}
${nodeLinks}${extra}
${ring.nodes.length} node${ring.nodes.length > 1 ? 's' : ''}
@@ -675,7 +674,6 @@
});
let html = '
';
Object.entries(byDist).sort((a, b) => +a[0] - +b[0]).forEach(([dist, nodes]) => {
- const opacity = Math.max(0.3, 1 - (+dist) * 0.06);
const nodeLinks = nodes.slice(0, 10).map(n => {
const label = n.name
? `
${esc(n.name)}`
@@ -683,7 +681,7 @@
return label + `
via ${esc(n.observer_name)}`;
}).join(', ');
const extra = nodes.length > 10 ? `
+${nodes.length - 10} more` : '';
- html += `
+ html += `
${dist} hop${+dist > 1 ? 's' : ''}
${nodeLinks}${extra}
${nodes.length} node${nodes.length > 1 ? 's' : ''}