Files
linkspin/public/wallet.html
T
martbost b2669cfed7 Network hub sign-in, step 3 (Marty 2026-11-15)
networksso.js (the same file on every network site): with HUB_SSO=on /sso/start asks the network hub, /sso/in takes the hub's h1. token (this site's HUB_SECRET, iss hub, aud linkspin, 60 s, single use, state cookie) and falls back once to the pairwise InstantAdPay check when the hub has nobody. networksso.page() on every GET of the main host: a signed-in member's page load tells the hub once (nsso.hp) and pings /v1/activity once a day, only while the hub answers /health.
Sessions: SESSION_TTL_HOURS (168 = 7 days in production), renewed on use at most hourly; cookie 30 days, the server's sliding expiry decides. auth.endSessions.
Sign out everywhere: POST /api/auth/logout-everywhere; the account menu's Sign out asks "Only LinkSpin or every network site"; cr-shell.js?v=20261115hub. hubsync: member.blocked and member.signedout end every session of that member here.
Chatbot: a sign-in lasts 7 days and renews; the silent check is every 2 minutes.
Tests: qa/networksso-hub.e2e.mjs (same file as InstantAdPay, in run.sh). qa sso: ALL PASSED; qa member: ALL PASSED (known warnings).

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

43 lines
3.6 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>Wallet · 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) 380px;gap:16px}
.pay .hd,.pay .rw{grid-template-columns:110px minmax(120px,1.4fr) 70px 80px 110px 110px}
/* the payouts card shares its row with a 380px panel, so it is narrow on mid-size screens: switch to the stacked rows by the card's
own width, not the window's (Michael 2026-11-09: From and Level drew on top of each other) */
.pay{container-type:inline-size}
@container (max-width:700px){.pay .hd{display:none}.pay .rw{grid-template-columns:1fr 1fr}}
.pos .rw{grid-template-columns:minmax(0,1fr) 120px 100px}
@media (max-width:900px){.two{grid-template-columns:1fr}.pay .hd{display:none}.pay .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 style="display:grid;gap:16px;align-content:start">
<div class="tbl pay"><div class="hd"><span>When</span><span>From</span><span>Level</span><span>Package</span><span class="r">You got</span><span>Transaction</span></div><div id="payRows"></div><div class="ft" id="payFoot"></div></div>
<div class="tbl pos"><div class="hd" style="grid-template-columns:minmax(0,1fr) 120px 100px"><span>Position</span><span>Credits</span><span>Status</span></div><div id="posRows"></div><div class="ft">linked positions share this account's credits; levels pay on the main position</div></div>
</div>
<div style="display:grid;gap:16px;align-content:start">
<div class="panel"><h2>This wallet</h2><div id="walletBox" class="ink2">loading</div><div style="display:flex;gap:8px;flex-wrap:wrap"><a class="btn sm" href="/credits">Link a wallet, switch on payouts, buy</a></div><div class="muted">Linking a wallet and buying a package live on the Credits screen.</div></div>
<div class="panel"><h2>How you get paid</h2><div class="ink2">Every package splits in the same transaction: 50% direct sponsor, 20% level 2, 10% level 3, 20% platform. Nothing is held by the site, ever. Your sponsor is paid the moment your purchase settles.</div></div>
</div>
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261115hub"></script>
<script src="/assets/wallet-screen.js?v=20261023ov"></script>
</body>
</html>