e545343fe0
1. Top-up across positions: an ad burns from ONE position, and topUpCampaign only looked at the ad's
own position (or the main one when the list row had no memberId), so credits bought on a linked
position could never top up the ad. Ported from InstantAdPay 2026-09-27 (Jim Watts): the ad's real
member id is read from the campaign row; when it cannot cover, the refusal names where the free
credits are and offers switchOptions; with the member's yes (switchTo, only a position on the
account) moveFunding settles what the ad already ran up on the OLD position, moves the ad, then
tops up. Ads screen asks in-page (own dialog) and retries. Create already had the largest-position guard.
2. Toasts: errors stay until closed (close button, role=alert), other notes 3.5 to 9 s by length.
3. Banner Spin per-banner clicks: his 3 clicks were all unmatched (no view on record for that browser),
so they landed on the fallback row and every banner said 0. Click matching now also tries the same
connection (daily-salted IP-only hash) when the browser key finds nothing (mail/exchange app view,
click opened in the phone browser), view notes last 60 min instead of 15, and the stats split
'Fallback shown' from 'Clicks not tied to a banner' so the rows add up to the total. History is not
backfilled: views were never stored per visitor, so old clicks cannot be tied reliably.
4. Holding tank: hub-made waiting accounts with no sponsor are in the tank (waiting, rescue, readyTick
read listAll with { shells: true }; 'hub-shell' no longer holds anyone back). Locked / sponsored /
unknown, grace, 2-adoption cap unchanged; readyTick still never switches a shell on;
accounts.listAll default unchanged (mailings skip shells).
Assets: cr.css, cr-shell.js, ads-screen.js ?v=20261114tu, banner-spin.js ?v=20261114bc.
QA: walk member 0 bugs (36 ok), netconv 57/57, networksso ALL PASSED, tank-hold all passed (new hub
shell part), profile policy 16/16, new topup-positions 8/8, new bannerspin-attrib 7/7, bannerspin e2e
75/75, hubsync 15 checks, tank-cap 15/15, sponsorfollow 30/30.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
91 lines
6.8 KiB
HTML
91 lines
6.8 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>Credits · 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) 360px;gap:16px;align-items:start}
|
|
.pkgs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
|
|
.pk{border:1px solid var(--line);border-radius:8px;padding:12px 12px 10px;background:var(--panel);display:flex;flex-direction:column;gap:4px;cursor:pointer;text-align:left;font:inherit;color:inherit;min-height:44px;box-shadow:var(--sh)}
|
|
.pk:hover{border-color:var(--accent)}
|
|
.pk.on{border-color:var(--sig);box-shadow:0 0 0 3px color-mix(in srgb,var(--sig) 18%,transparent);background:linear-gradient(180deg,var(--panel),var(--hi-row))}
|
|
.pk .k{font:700 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
|
|
.pk.on .k{color:var(--sig-2)}
|
|
.pk .price{font-family:var(--display);font-weight:700;font-size:28px;line-height:1;letter-spacing:.02em}
|
|
.pk.on .price{color:var(--accent-hi)}
|
|
.pk .cr{font-size:12px;color:var(--ink-2)}
|
|
.pk .tag{align-self:flex-start;margin-top:2px}
|
|
.row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
|
|
.row:last-child{border-bottom:0}
|
|
.buys .hd,.buys .rw{grid-template-columns:150px 110px 130px minmax(0,1fr)}
|
|
.acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
|
|
.acts[hidden]{display:none}
|
|
@media (max-width:900px){.two{grid-template-columns:1fr}.pkgs{grid-template-columns:repeat(2,minmax(0,1fr))}.buys .hd{display:none}.buys .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="panel" id="buyPanel" style="padding:0">
|
|
<div class="ph"><h3>Buy a package</h3><span class="meta" id="buyMeta">priced in dollars · settled in POL at the live rate · one transaction</span></div>
|
|
<div style="padding:14px 16px 16px;display:grid;gap:14px">
|
|
<div class="pkgs" id="pkgs"><div class="muted">loading packages…</div></div>
|
|
<div class="acts">
|
|
<span class="led"><span style="font-size:10px;letter-spacing:.1em;text-transform:uppercase">you pay</span><b id="payPol">·</b><span id="payUsd"></span></span>
|
|
<span class="mono muted" style="font-size:11px" id="rateLine"></span>
|
|
</div>
|
|
<div class="acts" id="fromWrap" hidden><label class="lbl" style="min-width:min(100%,320px)">Buy from<select class="field" id="buyFrom"></select></label><span class="muted" style="font-size:12px" id="fromHint"></span></div>
|
|
<div class="acts" id="buyActs">
|
|
<button class="btn pri" type="button" id="buyBtn" disabled>Connect a wallet to buy</button>
|
|
<span class="muted" style="font-size:12px">SafePal recommended. MetaMask, Phantom and WalletConnect wallets also work.</span>
|
|
</div>
|
|
<div id="holdBox" class="warn" style="font-size:13px" hidden></div>
|
|
<p class="ink2" style="margin:0;font-size:12.5px;line-height:1.5" id="sponsorLine">Loading your sponsor…</p>
|
|
</div>
|
|
</div>
|
|
<div class="tbl buys">
|
|
<div class="ph"><h3>Your purchases</h3><span class="meta" id="buysMeta">every row links to the transaction</span></div>
|
|
<div class="hd"><span>When</span><span>Package</span><span>Paid</span><span>Transaction</span></div>
|
|
<div id="buyRows"></div>
|
|
<div class="ft">credits appear in Ads the moment the transaction settles · nothing is held by the site</div>
|
|
</div>
|
|
</div>
|
|
<div style="display:grid;gap:16px;align-content:start">
|
|
<div class="panel" id="rfPanel" hidden style="padding:0" aria-live="polite"><div class="ph"><h3>Monthly Refuel</h3><span class="meta" id="rfMeta"></span></div><div style="padding:12px 16px 14px;font-size:13px" class="ink2" id="rfBody"></div></div>
|
|
<div class="panel" style="padding:0">
|
|
<div class="ph"><h3 id="goesTitle">Where it goes</h3><span class="meta">same transaction</span></div>
|
|
<div style="padding:10px 16px 14px" id="goesRows"></div>
|
|
</div>
|
|
<div class="panel" style="padding:0">
|
|
<div class="ph"><h3>Your wallet</h3><span class="meta" id="walletMeta"></span></div>
|
|
<div style="padding:12px 16px 14px;display:grid;gap:10px" id="walletBox"></div>
|
|
</div>
|
|
<div class="panel" style="padding:0">
|
|
<div class="ph"><h3>Earn instead</h3><span class="meta">free credits</span></div>
|
|
<div style="padding:12px 16px 14px;display:grid;gap:8px;font-size:13px" class="ink2">
|
|
<div style="display:flex;justify-content:space-between;gap:10px"><span>View 5 ads, claim 5 credits</span><a href="/ads" style="font-weight:700;text-decoration:none">Ads →</a></div>
|
|
<div style="display:flex;justify-content:space-between;gap:10px"><span>Run a zone on your site</span><a href="/zones" style="font-weight:700;text-decoration:none">Zones →</a></div>
|
|
<div style="display:flex;justify-content:space-between;gap:10px"><span>Sign-in ad, once a day</span><span class="mono muted" style="font-size:11px">automatic</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/common.js?v=20261114ns"></script>
|
|
<script src="/assets/wallet.js?v=20261021a"></script>
|
|
<script src="/assets/cr-shell.js?v=20261114tu"></script>
|
|
<script src="/assets/credits-screen.js?v=20261107tg"></script>
|
|
<script src="/assets/fuel.js?v=20261112sso"></script>
|
|
</body>
|
|
</html>
|