5xYourTeam The Draft v1 (phase 1, local only): weekly earned-order draft of holding-tank people, picks as adoptions (stub tank), coaching tools, cards, boards, trust pack
$10 one-time DraftPosition purchases (sponsor 25%, L2-5 5%, 10% Best Coach pot, 45% company) with keeper-signed hub-line vouchers; pure draft engine with a mocked clock; no contact data anywhere; Telegram to an outbox unless TG_LIVE=1. Unit 60/60, smoke 156/156 (Playwright 1280/390). Not deployed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// A coach page, 5xyourteam.com/<username>: the coach card (since, positions, picks started) and the team as trading cards. Public:
|
||||
// milestones only, never earnings or contact details.
|
||||
(async function () {
|
||||
FX.renderNav(''); FX.renderFooter();
|
||||
const $ = FX.$, esc = FX.esc;
|
||||
const u = decodeURIComponent(location.pathname.replace(/^\/|\/$/g, ''));
|
||||
const d = await FX.getJSON('/api/coach?u=' + encodeURIComponent(u));
|
||||
if (d.error) { $('cName').textContent = 'No coach by that name yet'; return; }
|
||||
$('cName').textContent = '@' + d.username;
|
||||
$('cSince').textContent = 'Coach since ' + FX.when(d.since);
|
||||
$('cStats').innerHTML = '<div class="kvr"><span>Positions</span><b>' + FX.n(d.positions) + '</b></div><div class="kvr"><span>On the team</span><b>' + FX.n(d.team.length) + '</b></div><div class="kvr"><span>Picks started</span><b>' + FX.n(d.started) + '</b></div>';
|
||||
$('cTeam').innerHTML = d.team.length ? d.team.map(x => FX.card(x)).join('') : '<p class="muted">Their first picks show here.</p>';
|
||||
$('cJoin').href = d.joinUrl; $('cJoin').textContent = 'Join the network free under @' + d.username;
|
||||
})();
|
||||
Reference in New Issue
Block a user