From 234edc9d54f80951c45e453019047a38c41e0f1a Mon Sep 17 00:00:00 2001 From: martbost Date: Tue, 17 Nov 2026 08:29:11 -0600 Subject: [PATCH] Network ad zones (punch list, Marty 2026-11-17): LinkSpin zones on Marty's account made through LinkSpin's admin zone route (footer wide 728x90, footer phone 320x50, ledger 468x60, not-found 300x250), the ViralAdBlitz pattern; common.js ?v=20261117z Zones: ls-e5d152 / ls-1a1b1f / ls-20fdd0 / 404 ls-a8a737. Also GET /api/admin/member-lookup (read-only) for the network hub's admin lookup, like ViralAdBlitz. Co-Authored-By: Claude Opus 5.5 --- public/admin.html | 2 +- public/assets/common.js | 20 ++++++++++++++++++++ public/builder.html | 2 +- public/cards.html | 2 +- public/coach.html | 2 +- public/contract.html | 2 +- public/disclaimer.html | 2 +- public/draftday.html | 2 +- public/guides.html | 2 +- public/index.html | 2 +- public/join.html | 2 +- public/ledger.html | 2 +- public/privacy.html | 2 +- public/promote.html | 2 +- public/team.html | 2 +- public/terms.html | 2 +- server.js | 15 ++++++++++++++- 17 files changed, 49 insertions(+), 16 deletions(-) diff --git a/public/admin.html b/public/admin.html index bca0532..6d0ea99 100644 --- a/public/admin.html +++ b/public/admin.html @@ -28,7 +28,7 @@

Best Coach pot (last week)

Old-link map (JSON {"oldrefs": {"old": "network username"}})

- + diff --git a/public/assets/common.js b/public/assets/common.js index f15ffa2..fccfed6 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -118,3 +118,23 @@ window.FX = (function () { if (/^\/(draftday|admin)/.test(location.pathname)) return; var s = document.createElement('script'); s.src = '/assets/netweekend.js?v=20261117'; s.defer = true; s.setAttribute('data-site', 'fivex'); document.head.appendChild(s); })(); + +// network ad zones (2026-11-17, the ViralAdBlitz pattern): LinkSpin zones on Marty's LinkSpin account for 5xyourteam.com, made through +// LinkSpin's named admin zone route: footer wide 728x90 (ls-e5d152), footer phone 320x50 (ls-1a1b1f), ledger 468x60 +// (ls-20fdd0); the not-found page carries ls-a8a737. Admin pages get none. +(function () { + const ZONES = { footWide: 'ls-e5d152', footPhone: 'ls-1a1b1f', ledger: 'ls-20fdd0' }; + function zone(el, id) { + if (!el || el.dataset.zoned) return; el.dataset.zoned = '1'; el.className = 'net-zone'; el.style.cssText = 'margin:18px auto;text-align:center;max-width:100%'; + const lab = document.createElement('div'); lab.textContent = 'Network'; lab.style.cssText = 'font-size:11px;letter-spacing:1px;opacity:.7;margin-bottom:4px'; + const s = document.createElement('script'); s.async = true; s.src = 'https://linkspin.app/z.js'; s.setAttribute('data-zone', id); + el.appendChild(lab); el.appendChild(s); + } + function run() { + const p = location.pathname.replace(/\/$/, '') || '/'; + if (p === '/admin' || document.body.dataset.noZones) return; + if (p === '/ledger') { const t = document.getElementById('rows'); const sec = t && t.closest('section'); if (sec && sec.parentNode) { const d = document.createElement('div'); sec.parentNode.insertBefore(d, sec.nextSibling); zone(d, ZONES.ledger); } } + const za = document.createElement('div'); document.body.appendChild(za); zone(za, window.innerWidth >= 760 ? ZONES.footWide : ZONES.footPhone); + } + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', run); else run(); +})(); diff --git a/public/builder.html b/public/builder.html index db89a1a..9ce2d36 100644 --- a/public/builder.html +++ b/public/builder.html @@ -28,7 +28,7 @@
- + diff --git a/public/cards.html b/public/cards.html index 0ef4e87..d214252 100644 --- a/public/cards.html +++ b/public/cards.html @@ -28,7 +28,7 @@

The five tiers

Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Tap a card to flip it for the stats on the back.

- + diff --git a/public/coach.html b/public/coach.html index d643ff9..80a4a9a 100644 --- a/public/coach.html +++ b/public/coach.html @@ -27,7 +27,7 @@

The team

Milestones only. Every Monday this coach drafts people who joined the network without a sponsor and helps them get started.

- + diff --git a/public/contract.html b/public/contract.html index 95825cf..f637950 100644 --- a/public/contract.html +++ b/public/contract.html @@ -26,7 +26,7 @@

CONTRACT

Check the contract yourself

Read live from Polygon. No owner withdraw, no proxy, the split fixed in the code.

- + diff --git a/public/disclaimer.html b/public/disclaimer.html index fe3408e..2488599 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -30,7 +30,7 @@

Prices and taxes

Positions are priced in US dollars and paid in POL, whose price moves. You are responsible for any taxes on what you receive where you live.

Who to ask

TrustClickz. Network support.

- + diff --git a/public/draftday.html b/public/draftday.html index 52ef77f..ed7ad73 100644 --- a/public/draftday.html +++ b/public/draftday.html @@ -15,4 +15,4 @@ h1{margin:0;font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:108px
5XYOURTEAM

DRAFT DAY
RESULTS

5xyourteam.com
- + diff --git a/public/guides.html b/public/guides.html index b152e81..b8c1804 100644 --- a/public/guides.html +++ b/public/guides.html @@ -30,7 +30,7 @@

Check it yourself

The contract page reads the DraftPosition contract live from Polygon, and the ledger lists every payment with its transaction. The card collection shows how picks level up.

Still stuck? Ask the chat assistant on any page, or open network support.

A position buys a draft spot and coaching tools, not income. Nothing is promised.

- + diff --git a/public/index.html b/public/index.html index 1e6478e..e7208d2 100644 --- a/public/index.html +++ b/public/index.html @@ -55,7 +55,7 @@ - + diff --git a/public/join.html b/public/join.html index 89b5e6d..c65ed85 100644 --- a/public/join.html +++ b/public/join.html @@ -34,7 +34,7 @@

Your sponsor gets 25% and levels 2 to 5 of your network sponsor line get 5% each. Only people who hold a position can receive a share: anyone in your line who does not is passed over and the share goes up to the next person who does. 10% goes to the weekly Best Coach pot and 45% to 5xYourTeam. The contract keeps nothing. Check it on the contract page and every payment on the ledger.

A position buys a draft spot and coaching tools, not income. Nothing is promised.

- + diff --git a/public/ledger.html b/public/ledger.html index f2071c3..0bc93aa 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -28,7 +28,7 @@
WHENPOSITIONPAID IN THE SAME TRANSACTION

Best Coach payouts

WEEKCOACHPOL
- + diff --git a/public/privacy.html b/public/privacy.html index 95e25ed..4e185d3 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -32,7 +32,7 @@

Your choices

You can ask us to remove your account and messages here. Records on the blockchain cannot be removed by anyone.

Contact

TrustClickz. Network support. Last updated November 15, 2026.

- + diff --git a/public/promote.html b/public/promote.html index dc5b259..63a420d 100644 --- a/public/promote.html +++ b/public/promote.html @@ -28,7 +28,7 @@
- + diff --git a/public/team.html b/public/team.html index edeb9a0..944df62 100644 --- a/public/team.html +++ b/public/team.html @@ -52,7 +52,7 @@ - + diff --git a/public/terms.html b/public/terms.html index af943cb..621e767 100644 --- a/public/terms.html +++ b/public/terms.html @@ -37,7 +37,7 @@

The service

The site is provided as it is. We work to keep it running but cannot promise it will always be available or free of errors. The smart contract runs on Polygon on its own; its rules are public on the contract page. We may change features, draft settings, the price of future positions or these terms; changes apply from the date they are posted here. As far as the law allows, our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.

Contact

TrustClickz. Network support. Last updated November 15, 2026.

- + diff --git a/server.js b/server.js index b0e7620..b41042c 100644 --- a/server.js +++ b/server.js @@ -450,6 +450,19 @@ const server = http.createServer(async (req, res) => { const row = { rank: Number(b.rank) || l.length + 1, coach: String(b.coach).toLowerCase(), username: display(String(b.coach).toLowerCase()), wei: String(BigInt(b.wei || 0)), tx: String(b.tx).toLowerCase(), at: Date.now() }; l.push(row); store.save(); proof.payoutLine(b.week, row).catch(() => {}); return json(res, 200, { ok: true, row }); } + // the network hub's admin member lookup (2026-11-17, read-only, like ViralAdBlitz): ?q= -> + // { address, record, positions, purchases, picks, credits }; never a session or contact data + if (p === '/api/admin/member-lookup' && req.method === 'GET') { + const q = String(u.searchParams.get('q') || '').trim().replace(/^@/, ''); let a = null; + if (ADDR_RE.test(q)) a = q.toLowerCase(); else if (NAME_RE.test(q)) { const m = store.memberByName(q); a = m ? m.address : null; } + if (!a) return json(res, 404, { error: 'not found' }); + const m = store.member(a); if (!m && !store.positionsOf(a)) return json(res, 200, { address: a, known: false }); + const rec = m ? { username: m.username || null, hubId: m.hubId || null, joinedAt: m.joinedAt || null, lastSeen: m.lastSeen || null, via: m.via || null, netOk: !!m.netOk } : null; + const mine = store.picksOf(a); const cnt = s => mine.filter(x => x.status === s).length; + return json(res, 200, { address: a, record: rec, positions: store.positionsOf(a), credits: store.credits(a), + purchases: store.purchases().filter(x => x.buyer === a).map(x => ({ at: x.blockAt ? x.blockAt * 1000 : x.at || null, qty: Number(x.qty) || 1, tx: String(x.key || '').split(':')[0] || x.tx || null })), + picks: { all: mine.length, open: cnt('open'), done: cnt('done'), returned: cnt('returned'), kept: cnt('kept') } }); + } if (p === '/api/admin/oldrefs' && req.method === 'POST') { let b; try { b = JSON.parse((await readRaw(req, 4 * 1024 * 1024)).toString('utf8')); } catch (e) { return json(res, 400, { error: 'bad json' }); } if (!b || !b.oldrefs || typeof b.oldrefs !== 'object') return json(res, 400, { error: 'oldrefs object required' }); @@ -462,7 +475,7 @@ const server = http.createServer(async (req, res) => { if (p.startsWith('/api/')) return json(res, 404, { error: 'Not found' }); res.writeHead(404, headers({ 'Content-Type': 'text/html; charset=utf-8' })); - return res.end('Not found | 5xYourTeam

Not found.

Back to the draft board

'); + return res.end('Not found | 5xYourTeam

Not found.

Back to the draft board

Network

'); } catch (e) { console.error('request', p, e.message); if (!res.headersSent) json(res, 500, { error: 'Server error' });