Files
linkspin/public/ledger.html
T
martbost b84eed3be5 Theme switch: auto | light | dark, stored in localStorage ls.theme and on the account, applied before first paint on every page
themehead.js is the one source of the tiny inline head script (and of AUTO_DEFAULT, the one constant Marty decides later: 0 = nothing stored keeps the page's current look, light for Control Room and public pages, dark for the sapphire pages; 1 = follow the device). The script sets data-theme on <html> from ls.theme (auto follows prefers-color-scheme and tracks changes live) and exposes window.LSTheme. tools/stamp-theme-head.cjs writes it into every static page before the first stylesheet with data-theme-base on <html>; blog, leaderboard, what's-new, the badge page, the unsubscribe page and the wall 404 read the module directly. The site CSP allows inline scripts by hash only, so themehead.CSP_HASH joins script-src (the script was silently blocked until then).

Account side: accounts.theme (JSON store and MySQL, alterSafe column), in the public account JSON and /api/me; POST /api/my/profile {theme} rides the existing profile save path and never touches the username. cr-shell.js renders a Light / Dark / Auto segmented control in the topbar of every Control Room screen and paints every .theme-seg on the page (the Profile pane gains an Appearance card with the same control); a click applies at once, saves locally and to the account when signed in; at sign-in the account value wins over the local one, and a local choice is pushed up when the account has none yet. view.html stops reading an undefined --bg so its light variant has a light stage. ?v= tags bumped on every changed stylesheet and script (20261101t / ls20261101t).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-01 10:44:40 -06:00

72 lines
4.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">
<title>Live ledger | LinkSpin</title>
<meta name="description" content="Every purchase, payout, and pass-up on LinkSpin, streamed straight from the blockchain with a verify link on every line.">
<link rel="canonical" href="{{SITE_URL}}/ledger">
<meta property="og:type" content="website"><meta property="og:site_name" content="LinkSpin">
<meta property="og:url" content="{{SITE_URL}}/ledger">
<meta property="og:title" content="LinkSpin: the live payout ledger">
<meta property="og:description" content="Watch real ad purchases split into instant on-chain payouts, live. Every line links to the raw transaction.">
<meta property="og:image" content="{{SITE_URL}}/banners/linkspin-og-1200x630.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="LinkSpin: the live payout ledger">
<meta name="twitter:description" content="Real ad purchases splitting into instant on-chain payouts, live and verifiable.">
<meta name="twitter:image" content="{{SITE_URL}}/banners/linkspin-og-1200x630.png">
<meta name="theme-color" content="#0B1424">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!--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;800&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/pub.css?v=20261101t">
</head>
<body>
<header class="top">
<div class="wrap">
<a class="brand" href="/" aria-label="LinkSpin home"><span class="mark"></span><span class="word">Link<b>Spin</b></span></a>
<span class="eyebrow" style="color:var(--chrome-sub);padding-left:14px;border-left:1px solid var(--chrome-line)">Live ledger</span>
<span class="grow"></span>
<a href="/contract" class="btn ghost">The contract</a>
<a href="/join" class="btn pri">Start free</a>
</div>
</header>
<main class="sec" style="padding-top:44px">
<div class="wrap" style="gap:18px">
<div class="two" style="align-items:flex-end">
<div class="text" style="gap:12px">
<h1 class="disp" style="margin:0;font-size:44px;line-height:1.04">The ledger does not lie</h1>
<p style="font-size:16px">This page streams every payment the contract has ever made. If it is not here, it did not happen. Every line carries a verify link straight to the block explorer. Go click one.</p>
</div>
<div class="strip" style="margin:0;border-radius:8px;border:1px solid var(--chrome-line)">
<div class="wrap" style="padding:12px 16px"><span><span class="dot off" id="liveDot"></span><b id="liveBadge">connecting</b></span><span id="statLine"></span><span class="grow"></span><a id="contractLink" href="/contract" target="_blank" rel="noopener">contract source →</a></div>
</div>
</div>
<div class="panel" id="adSlotBanner" hidden style="padding:12px"></div>
<div class="panel" style="padding:0;overflow:hidden">
<div class="ph"><h2>Every payment, newest first</h2><span class="meta">read from Polygon · verify link on every line</span></div>
<div class="feed" id="feed"><div class="row muted">Loading recent history…</div></div>
</div>
<div class="panel" id="adSlotText" hidden style="padding:12px 16px;font-size:13px"></div>
</div>
</main>
<footer class="foot">
<div class="wrap">
<span class="word">Link<b>Spin</b></span>
<a href="/">Home</a>
<a href="/contract">The contract</a>
<a href="/terms">Terms</a>
<a href="/privacy">Privacy</a>
<a href="/disclaimer">Disclaimer</a>
<a href="/support">Support</a>
<span class="grow"></span>
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261101t"></script>
<script src="/assets/ledger.js?v=20261007a"></script>
</body>
</html>