1aec9caf6c
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, dark everywhere on InstantAdPay; 1 = follow the device). It mirrors LinkSpin's themehead.js with only the storage key (iap.theme), the global (window.IAPTheme) and the event name (iap-theme) changed. The script sets data-theme on <html> from iap.theme (auto follows prefers-color-scheme and tracks changes live). tools/stamp-theme-head.cjs writes it into all 28 static site.css pages before the first stylesheet with data-theme-base="dark" on <html>; the blog, the 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 (without it the script is silently blocked).
Account side: accounts.theme (JSON store and MySQL, alterSafe theme VARCHAR(8)), in the public account JSON and /api/me; POST /api/my/profile {theme} rides the existing profile save path, never touches the username, and does not tap changed() (appearance is not mirrored to LinkSpin, same as LinkSpin's side). common.js owns the client side for every page: paints every .theme-seg, saves a click to the account, and IAP.themeSync lets the account value win over the local one at sign-in (a local choice is pushed up when the account has none yet); my.js calls it from render(). The Light / Dark / Auto segmented control sits in the member-area header (#boTheme) and in a Profile pane "Appearance" card, and in the admin header for the same session. shorts.html pins the dark ink set on its black video stage; view.html stops reading an undefined --bg. ?v= tags bumped on every changed stylesheet and script (20261101th): site.css on all 28 pages, common.js on 25, welcome.js on 17, support.js, my.js, engine-room.js, admin.js, admin-kits.js, blog-page.js.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
55 lines
4.2 KiB
HTML
55 lines
4.2 KiB
HTML
<!doctype html>
|
|
<html lang="en" data-theme-base="dark">
|
|
<head>
|
|
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Banner wall | InstantAdPay</title>
|
|
<!--OG-->
|
|
<!--theme-head--><script>(function(){var A=0,h=document.documentElement,b=h.getAttribute("data-theme-base")||"dark",m=window.matchMedia?matchMedia("(prefers-color-scheme: dark)"):{matches:false},v;function g(){try{v=localStorage.getItem("iap.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.IAPTheme={base:b,get:g,apply:ap,set:function(c,quiet){try{if(c==="light"||c==="dark"||c==="auto")localStorage.setItem("iap.theme",c);else localStorage.removeItem("iap.theme")}catch(e){}ap();if(!quiet)try{dispatchEvent(new CustomEvent("iap-theme",{detail:g()}))}catch(e){}}}})()</script><!--/theme-head-->
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap">
|
|
<link rel="icon" type="image/png" href="/logo-icon.png">
|
|
<link rel="stylesheet" href="/assets/site.css?v=20261101th">
|
|
</head>
|
|
<body>
|
|
<div id="nav"></div>
|
|
<section>
|
|
<div class="wrap" style="max-width:920px">
|
|
<div class="wall-hero" style="text-align:center;padding:26px 0 18px">
|
|
<p style="margin:0 0 8px;font-family:var(--disp);font-weight:800;font-size:clamp(22px,3vw,30px);color:var(--ink);letter-spacing:-.01em">Instant<span style="color:var(--mint)">AdPay</span> <span style="font-weight:500;font-size:.62em;color:var(--muted)">member wall</span></p>
|
|
<h1 style="font-size:clamp(28px,4.4vw,44px);margin:0 0 10px;line-height:1.1">Advertise and earn. <em style="font-style:normal;color:var(--mint)">Paid on-chain, instantly.</em></h1>
|
|
<p class="muted" style="max-width:640px;margin:0 auto;font-size:15.5px">Real ad packages from $5. Every payout arrives as <b style="color:var(--ink)">POL on Polygon</b> in your own wallet, in the same transaction the package sells, on a public ledger. Free to join by email, and <span id="wallHost">this member</span> is your sponsor if you join from here.</p>
|
|
</div>
|
|
<div class="bio-head" id="bioHead" hidden>
|
|
<img id="bioAvatar" class="bio-avatar" alt="" hidden>
|
|
<img id="bioBadge" class="bio-badge" alt="achievement badge" hidden>
|
|
<div class="bio-meta">
|
|
<p class="eyebrow">Your sponsor on InstantAdPay</p>
|
|
<h2 id="wallTitle" style="margin:.1em 0">Loading…</h2>
|
|
<p id="bioText" class="lead" style="font-size:16px"></p>
|
|
<div id="bioSocials" class="bio-socials"></div>
|
|
</div>
|
|
<div class="bio-qr"><img id="bioQr" alt="Join QR code" width="150" height="150"><div class="small muted" style="text-align:center">scan to join</div></div>
|
|
</div>
|
|
<div class="bio-video" id="bioVideo" hidden></div>
|
|
<div class="sectionhead" style="text-align:left;margin-top:10px">
|
|
<h3 style="margin:0">The line, three levels deep</h3>
|
|
<p>Three positions, three levels — the exact levels the contract pays. Every banner here belongs
|
|
to a real member of this line, and every payment between them settles on-chain, instantly.</p>
|
|
</div>
|
|
<div class="grid c3" id="wallGrid"></div>
|
|
<div class="card" id="adSlotWallText" hidden style="margin-top:16px"></div>
|
|
<div class="card" id="adSlotWallBanner" hidden></div>
|
|
<div class="card" style="margin-top:22px;text-align:center">
|
|
<h3 id="wallCtaHead">Join this line</h3>
|
|
<p class="muted small">Free to join with just an email. Your wallet only comes out if you buy —
|
|
and payments go straight to member wallets, never through an admin.</p>
|
|
<p id="wallGate" class="small" style="color:var(--amber);font-weight:600" hidden></p>
|
|
<p><a class="btn" id="wallJoin">Join free through this wall</a></p>
|
|
<p class="small muted"><a href="/ledger">Watch the live ledger</a> · <a href="/contract">Read the contract</a></p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<script src="/assets/common.js?v=20261101th"></script><script src="/assets/welcome.js?v=20261101th"></script>
|
|
<script src="/assets/wall.js?v=20261030pp"></script>
|
|
</body>
|
|
</html>
|