diff --git a/public/assets/team.js b/public/assets/team.js index a51ea5b..50fa896 100644 --- a/public/assets/team.js +++ b/public/assets/team.js @@ -17,11 +17,15 @@ ms.sort((a, b) => (b.lastSeen || 0) - (a.lastSeen || 0)); return ms; } + // where a direct came from + how they joined (2026-11-13): src = first-touch referrer with the link's ?src= tag, via = the path + const VIA_LABEL = { carried: 'came over from InstantAdPay', btc4hits: 'moved over from BTC4Hits', direct: 'your invite link', stack: 'Stack POL', zones: 'an ad zone', tank: 'adopted from the holding tank' }; + const srcLabel = s => !s ? '' : s === 'direct' ? 'no referring site' : s === 'network' ? 'InstantAdPay' : /^legacy:/.test(s) ? s.split(':')[1] : s; + const originText = m => { const a = srcLabel(m.src), b = m.via ? (VIA_LABEL[m.via] || ('link "' + m.via + '"')) : ''; return (a ? 'from ' + a : '') + (a && b ? ' · ' : '') + (b ? 'via ' + b : ''); }; function render() { const ms = rows(); const L = (LINE && LINE.levels || []).find(x => x.level === LEVEL); const total = L ? L.members.length : 0; $('rows').innerHTML = ms.length ? ms.map(m => { const today = (m.lastSeen || 0) >= dayStart(); const sg = stageOf(m), q = quiet(m); - return '