Files
linkspin/public/team.html
T
martbost 73bee6c826 Login ad on a clock, hop back to the asking site, 5xYourTeam in the wallets map, signed-out login slot refused (Marty 2026-11-15)
Login ad: every Control Room page asks (cr-shell.js loginAd, the per-tab sessionStorage guard is gone); the server answers with an ad only when the member's last finished view on LinkSpin is older than loginAdEveryHours (site setting, default 3). loginadclock.js (the same file as InstantAdPay), MySQL table login_ad_views through DOCSTORE_URL. POST /api/ads/login/seen at the end of the countdown restarts the clock only if the serve was dwell-2 s earlier. Member erase forgets the row. Admin site setting label.
Signed out: /api/ads/slot?type=login draws nothing and counts no view (bots, probes, previews cannot run up an advertiser's numbers).
Hop: a member who signed in here because another network site asked ("Sign in with LinkSpin", nsso.back) goes back there after the login ad (/sso/resume), from every Control Room screen, not only the retired /my.
networksso.js: the network-wide copy (loop guard 120 s, fivex, unknown r refused); fivex added to the wallets map (FIVEX_URL, default https://5xyourteam.com).
Tests: qa/networksso-partner.e2e.mjs (same file as InstantAdPay, in run.sh): partner via LinkSpin, LinkSpin clock, signed-out slot; networksso e2e retries a keep-alive ECONNRESET. qa sso: ALL PASSED; qa member: ALL PASSED (2 known warnings; networksso e2e flaked on ECONNRESET once, passes with the retry).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:03:14 -06:00

45 lines
4.2 KiB
HTML

<!doctype html>
<html lang="en" data-theme-base="light">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex, nofollow">
<title>Team · LinkSpin</title>
<!--theme-head--><script>(function(){var A=0,h=document.documentElement,b=h.getAttribute("data-theme-base")||"light",m=window.matchMedia?matchMedia("(prefers-color-scheme: dark)"):{matches:false},v;function g(){try{v=localStorage.getItem("ls.theme")}catch(e){v=null}return v==="light"||v==="dark"||v==="auto"?v:(A?"auto":b)}function ap(){var c=g();h.setAttribute("data-theme",c==="auto"?(m.matches?"dark":"light"):c);h.setAttribute("data-theme-choice",c)}ap();if(m.addEventListener)m.addEventListener("change",ap);else if(m.addListener)m.addListener(ap);window.LSTheme={base:b,get:g,apply:ap,set:function(c,quiet){try{if(c==="light"||c==="dark"||c==="auto")localStorage.setItem("ls.theme",c);else localStorage.removeItem("ls.theme")}catch(e){}ap();if(!quiet)try{dispatchEvent(new CustomEvent("ls-theme",{detail:g()}))}catch(e){}}}})()</script><!--/theme-head-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261114tu">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
.line .hd,.line .rw{grid-template-columns:minmax(0,2fr) 100px 140px 100px 110px}
.lvl{display:flex;gap:4px;padding:10px 16px;border-bottom:1px solid var(--line);align-items:center;flex-wrap:wrap}
.lvl button{background:transparent;border:1px solid transparent;border-radius:var(--r);color:var(--muted);font-family:var(--display);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;cursor:pointer}
.lvl button.on{background:var(--panel);border-color:var(--accent);color:var(--accent-hi);box-shadow:0 1px 2px rgba(15,27,46,.08)}
@media (max-width:900px){.two{grid-template-columns:1fr}.line .hd{display:none}.line .rw{grid-template-columns:1fr 1fr}.body{padding:12px 16px}}
</style>
</head>
<body>
<div id="page">
<div class="body">
<div class="tiles" id="tiles"></div>
<div class="two">
<div class="tbl line">
<div class="lvl"><button type="button" class="on" data-l="1">Directs</button><button type="button" data-l="2">Level 2</button><button type="button" data-l="3">Level 3</button><span class="grow"></span><span class="chips" id="chips"><button class="chip" type="button" data-f="today" data-st="bought">Active today</button><button class="chip" type="button" data-f="quiet" data-st="quiet">Quiet 3+ days</button><button class="chip" type="button" data-f="wallet">Wallet linked</button><button class="chip" type="button" data-f="nopay" data-st="wallet">Wallet, payouts off</button><button class="chip" type="button" data-f="nowallet" data-st="joined">No wallet</button></span></div>
<div class="hd"><span>Member</span><span>Last seen</span><span>Stage</span><span class="r">Paid you</span><span>Came from</span></div>
<div id="rows"></div>
<div class="ft" id="foot"></div>
</div>
<div style="display:grid;gap:16px;align-content:start">
<div class="panel"><h2>Your invite link</h2><span class="code" id="invite"></span><div style="display:flex;gap:8px"><button class="btn sm" type="button" id="copyInvite">Copy</button><a class="btn sm" href="/links">Put it in a spin</a></div><div class="muted">Everyone who joins through it becomes part of your line. Payouts lock to you once your payouts are on.</div></div>
<div class="panel"><h2>Your sponsor</h2><div id="sponsor" class="ink2">loading</div></div>
<div class="panel" id="claimPanel" hidden><h2 class="warn">Waiting on a wallet</h2><div id="claims" class="ink2"></div></div>
<div class="panel"><h2>Message your line</h2><div class="muted">One broadcast a day, on-site and email.</div><a class="btn sm" href="/tools#line" style="justify-self:start">Write one in the classic dashboard</a></div>
</div>
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261115la"></script>
<script src="/assets/team.js?v=20261113org"></script>
</body>
</html>