Skip to content

Commit 65a7eeb

Browse files
committed
remove inline popup info
1 parent 9f900a5 commit 65a7eeb

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

css/map.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ body { display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
7575
.popup-toggle:hover { color: #666; }
7676
.popup-section-body { padding-top: 4px; }
7777
.popup-meta { display: block; font-size: 11px; color: #888; margin-top: 2px; }
78-
.popup-trace {
79-
display: block; font-size: 11px; color: #92400e;
80-
background: #fef3c7; padding: 3px 6px; border-radius: 3px;
81-
margin-top: 4px;
82-
}
8378
.popup-signal-count {
8479
display: inline-block; background: #f3f4f6; color: #6b7280;
8580
font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 8px;

index.html

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -347,27 +347,6 @@ <h3>Open source &amp; open data</h3>
347347
}
348348
}
349349

350-
// Hyperscaler trace detection for swiss-based municipalities: flags cases where
351-
// MX is Swiss but outbound/auth DNS still touches Microsoft/Google/AWS.
352-
const HYPERSCALER_PROVIDERS = { microsoft: 'Microsoft', google: 'Google', aws: 'AWS' };
353-
const NON_MX_TRACE_KINDS = { spf: 1, dkim: 1, autodiscover: 1, cname_chain: 1, spf_ip: 1, asn: 1 };
354-
355-
function getHyperscalerNonMxTraces(m) {
356-
if (!m || !m.classification_signals) return [];
357-
const byHs = {};
358-
for (const s of m.classification_signals) {
359-
const label = HYPERSCALER_PROVIDERS[s.provider];
360-
if (!label || !NON_MX_TRACE_KINDS[s.kind]) continue;
361-
if (!byHs[label]) byHs[label] = new Set();
362-
byHs[label].add(SIGNAL_LABELS[s.kind] || s.kind);
363-
}
364-
return Object.keys(byHs).sort().map(name => ({
365-
name,
366-
kinds: Array.from(byHs[name]).sort(),
367-
}));
368-
}
369-
370-
371350
const map = initMap('map');
372351
setupInfoBar(map);
373352
const isMobile = window.innerWidth <= 600;
@@ -538,21 +517,11 @@ <h3>Open source &amp; open data</h3>
538517
if (m.gateway) metaParts.push(`Gateway: ${escapeHtml(m.gateway)}`);
539518
const metaLine = `<div class="popup-meta">${metaParts.join(' &middot; ')}</div>`;
540519

541-
let traceLine = '';
542-
if (cat === 'swiss-based') {
543-
const traces = getHyperscalerNonMxTraces(m);
544-
if (traces.length) {
545-
const parts = traces.map(t => `${t.name} (${t.kinds.join(', ')})`).join(', ');
546-
traceLine = `<div class="popup-trace" title="Mail is routed through a Swiss provider, but outbound or authentication DNS still references a hyperscaler.">&#9888; Outbound DNS also references ${escapeHtml(parts)}</div>`;
547-
}
548-
}
549-
550520
layer.bindPopup(
551521
`<div class="info-popup">` +
552522
`<strong>${nameDisplay}</strong><br>` +
553523
`${eDomain} ${badge}` +
554524
metaLine +
555-
traceLine +
556525
mxSection + spfSection + signalsSection +
557526
`</div>`,
558527
{ maxWidth: isMobile ? 300 : 450 }

0 commit comments

Comments
 (0)