Files
instantadpay/public/games.html
T
martbost 1aec9caf6c Theme switch: auto | light | dark, stored in localStorage iap.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, 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>
2026-11-01 11:55:06 -06:00

85 lines
8.0 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>Games that pay POL | InstantAdPay</title>
<meta name="description" content="Every game in the InstantAdPay network on one page: word puzzles, hidden objects, match-3, a runner, a scavenger hunt, a card battler and more. Free to play, and they pay POL to the wallet on your InstantAdPay account.">
<meta name="theme-color" content="#043b2f">
<meta property="og:type" content="website"><meta property="og:site_name" content="InstantAdPay">
<meta property="og:title" content="Games that pay POL | InstantAdPay">
<meta property="og:description" content="Every game in the InstantAdPay network on one page. Free to play. They pay POL to the wallet on your account.">
<meta property="og:image" content="https://instantadpay.com/banners/iap-games-1200x630.jpg"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630">
<meta property="og:url" content="https://instantadpay.com/games">
<meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="https://instantadpay.com/games">
<!--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">
<style>
.gp{max-width:1040px}
.gp .hero{padding:56px 0 10px}
.gp .lead{max-width:62ch}
.gsec{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:34px 0 12px;padding-top:18px;border-top:1px solid var(--line)}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.gcard{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--ink-faint)}
.gcard .art{position:relative;aspect-ratio:1.91/1;background:#07201c center/cover no-repeat}
.gcard .art img{width:100%;height:100%;object-fit:cover;display:block}
.gcard .ribbon{position:absolute;left:12px;top:12px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:5px 9px;border-radius:999px;background:rgba(4,59,47,.9);color:#dffbf3;border:1px solid var(--mint-line)}
.gcard .ribbon.soon{background:rgba(226,176,74,.92);color:#2a1d04;border-color:rgba(255,255,255,.3)}
.gcard .body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.gcard .tag{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--mint)}
.gcard h3{margin:0;font-size:20px}
.gcard p{margin:0;color:var(--muted);line-height:1.5;font-size:15px}
.gcard .pays{font-size:13px;color:var(--text)}
.gcard .pays b{color:var(--gold,#e2b04a)}
.gcard .row{display:flex;gap:10px;align-items:center;margin-top:auto;padding-top:6px;flex-wrap:wrap}
.gcard .btn{display:inline-block;padding:10px 16px;border-radius:12px;background:var(--mint);color:var(--mint-ink);font-weight:800;text-decoration:none;font-family:var(--disp)}
.gcard .btn.ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.gcard .btn[aria-disabled="true"]{opacity:.55;pointer-events:none}
.gcard .host{font-family:var(--mono);font-size:12px;color:var(--muted)}
.howbox{border-left:4px solid var(--mint);background:var(--mint-soft);padding:14px 18px;border-radius:0 12px 12px 0;margin:22px 0 6px;max-width:72ch}
.howbox b{font-family:var(--disp);display:block;margin-bottom:4px}
.cta{margin:36px 0 10px;padding:22px;border:1px solid var(--line);border-radius:18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.cta h2{margin:0 0 4px;font-size:22px}
.cta p{margin:0;color:var(--muted);max-width:60ch}
.cta .btn{display:inline-block;padding:12px 18px;border-radius:12px;background:var(--mint);color:var(--mint-ink);font-weight:800;text-decoration:none;font-family:var(--disp)}
#gEmpty{color:var(--muted)}
.fgrid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:12px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x mandatory}
.fcard{scroll-snap-align:start;border-radius:16px;overflow:hidden;background:var(--ink-faint);border:1px solid var(--line);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 35%,transparent);text-decoration:none;color:var(--text);display:flex;flex-direction:column}
.fpic{aspect-ratio:3/4;background:#061417;position:relative}.fpic img{width:100%;height:100%;object-fit:cover;display:block}
.ftag{position:absolute;left:8px;bottom:8px;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:var(--rc);border:1px solid var(--rc)}
.fsale{position:absolute;right:8px;bottom:8px;font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:999px;background:var(--mint);color:var(--mint-ink);font-weight:800}
.fb{padding:8px 10px 10px;display:grid;gap:2px}.fb b{font-size:14px}.fb small{color:var(--muted);font-size:11px}.fb .fp{color:var(--gold,#e2b04a);font-weight:800;font-size:13px}
</style>
</head>
<body>
<div class="wrap gp">
<section class="hero">
<p class="eyebrow">InstantAdPay games</p>
<h1>Play free. <em>Get paid in POL.</em></h1>
<p class="lead">Every game in the network, on one page. Each one signs you in with your InstantAdPay account in one tap and pays POL to the wallet on that account for the things you do inside it: first clears, levels, chapters, finds, daily puzzles.</p>
</section>
<div class="howbox"><b>How it works</b>Create a free InstantAdPay account, link a Polygon wallet on your Wallet tab (one free signature), then open any game below. Rewards are small per action and paid automatically when your balance in that game reaches its payout amount. Every payout carries a transaction link.</div>
<div id="gLive"></div>
<div id="gSoon"></div>
<p id="gEmpty" hidden>The game list could not load. Try again in a moment.</p>
<div class="cta">
<div><h2>Not a member yet?</h2><p>Join free, add a wallet, and every game on this page pays the same wallet. InstantAdPay itself is an advertising network: members run ads and get paid when the people they bring in buy packages.</p></div>
<a class="btn" id="gJoin" href="/join">Join free</a>
</div>
<p class="muted small" style="margin-top:26px">No income is guaranteed. Results depend on your effort. Cryptocurrency involves risk of loss. InstantAdPay sells advertising; it is not an investment. Game rewards are a marketing cost paid from a funded pool while it lasts.</p>
<footer>
<div>InstantAdPay · <a href="/">Home</a> · <a href="/join">Join free</a> · <a href="/my#games">Games tab (members)</a></div>
<div class="small">InstantAdPay is the Polygon hub of the <a href="https://cryptoteambuild.com" target="_blank" rel="noopener">Crypto Team Build Network</a>.</div>
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees.</div>
</footer>
</div>
<script src="/assets/common.js?v=20261101th"></script><script src="/assets/games-page.js?v=20261012b"></script>
</body>
</html>