Files
linkspin/public/wallet.html
T
martbost e79d5ae63e Network sign-in with InstantAdPay (Marty approved 2026-11-12): signed in on one site = signed in on the other, no email code
networksso.js (same file in both repos): /go/iap hop for signed-in members' cross-site links; /sso/start (state cookie +
30-minute loop guard) -> InstantAdPay /sso/check -> /sso/in?t=<v1 HMAC-SHA256 token, NETWORK_SSO_SECRET, 60 s, single-use nonce,
bound to the browser's state cookie, email, audience and a same-site relative path>. App host only (not link/pages hosts).
Member sessions only (admin portal never shared), ordinary 4-hour session. An email not here yet (sync not run) or not on
LS_TESTERS gets the normal email-code sign-in, email prefilled; nothing is created. Silent check on every Control Room screen
(cr-shell.js loads public/assets/netsso.js); never for bots/fetches; sign-out pauses it 12 hours. Engine Room, Fuel and the
arrival strip's Back to InstantAdPay go through /go/iap. Chatbot knows it (KNOWLEDGE_DATE 2026-11-12). Off until
NETWORK_SSO_SECRET (32+ chars) is set. ?v= bumped (cr-shell, fuel, engine-room: 20261112sso).

qa: networksso.test.cjs all passed, networksso.e2e.mjs (both servers, real browser) 31/31, run.sh member green (0 bugs)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 07:05:51 -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=20261101t">
<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=20261112sso"></script>
<script src="/assets/wallet-screen.js?v=20261023ov"></script>
</body>
</html>