4 Commits

Author SHA1 Message Date
martbost 47389a4169 Traffic-exchange frames: framed pages open sign-in, Get a Position, My Team, wallet and off-site links in a new tab carrying ?ref=<sponsor>
Traffic exchanges, rotators and Massifly Adpoints show 5xyourteam.com inside another site's frame, where the browser drops the
SameSite=Lax fx.ref and fx.sid cookies, so signing in, buying or joining from the frame lost the sponsor (Marty 2026-11-19).
- common.js: framed (window.top !== window.self) -> /team, /join, /admin, /sso/ and off-site links get target=_blank
  rel=noopener (on load and again at click time); /team, /join and /sso/ links add ?ref= from the page's ?ref= (or ?r=), the
  coach page it is, or the cookie. The wallet buttons ([data-wallet-signin], Pay = [data-full-window]) open this page in a new
  tab with ?ref= instead of signing inside the frame. Public pages stay in the frame.
- server: /sso/start?...&ref=<name> sets fx.ref first-party and 302s to the plain start; /sso/* sends X-Frame-Options DENY
  (/team and /admin already did). Sponsor rules unchanged.
- coach.js marks the coach; join.js keeps Pay clickable when framed; asset tags bumped.
Checked with the fake traffic-exchange harness (cross-site frame, JS a.click()): 11/11 flows open a new tab with the sponsor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 07:21:13 -06:00
martbost 17ab4280f7 Tutorial video: 2.5-minute narrated walkthrough on /guides/how-the-draft-works (Watch how it works) + 'Watch the 2-minute walkthrough' link in the home hero; server sends .mp4/.webm with byte ranges (sendMedia); chatbot fact; fx.css?v=4 (Marty 2026-11-18: tutorial explainer videos for each rebuilt site)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:34:04 -06:00
martbost 234edc9d54 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 <noreply@anthropic.com>
2026-11-17 08:29:11 -06:00
martbost 9fc285d1eb Guides (Marty 2026-11-17): /guides index + How The Draft works, Is 5xYourTeam legit?, Coaching your picks, FAQ
Static pages in the site's look (legal card layout, FX nav/footer via misc.js data-page=guides), canonical + meta + OG,
linked from the nav and footer, in the sitemap, 'guides' reserved from coach URLs. Every number checked against config.js
defaults (no DRAFT_/PICK_/POT_ env overrides on the live app) and DraftPosition on chain (priceCents 1000, 2500/500/1000 bps,
MAX_DEPTH 20, MAX_QTY 10, company + prize wallets). Chatbot: f-guides FAQ entry + GUIDES fact. qa/guides.test.cjs (59 checks)
keeps the pages in step with config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:25:40 -06:00