aee1ccc36a
Buying (VBBShop 0x36F6...07D7): Packages page has live Buy buttons for the 10 and 40 credit packs (USD price + live POL from quoteWei, SafePal or any other crypto wallet, one-time, never a subscription, where the payment goes); My Banners has "Add the banner look ($2)" on each waiting or in-loop banner (SKU 3, ref = banner id) and a 40-character teaser editor once it has the look. POST /api/my/order builds the member's buy() call on the server (fresh keeper voucher when the hub knows their sponsor, else no sponsor); the page checks the connected wallet is the member's VBB account (explains how to switch if not), checks the balance, sends with Polygon's fee floor (/api/gas), waits on /api/tx, nudges the watcher (/api/my/paid) and polls until the credits or the look arrive. Public: /api/quote, /api/gas, /api/tx/<hash>; /api/config has shop {live, contract} + explorer. The banner look on the loop: double border + star, hover teaser (always shown on touch screens; default = the link's site). Only Tokens still says coming soon. wallet.js gains sendTx/waitTx/balance (DLB flow).
Weekly prize payouts (prize.js): each Central-time week's pot = 10% of its VBBShop sales (usdCents of Purchase events by block time), $20 floor (company top-up shown to admin), $50 cap internal, half per board, 50/30/20. Every Monday the app prepares last week's plan (winners, wallets, USD; POL quoted live from the Chainlink feed the contract uses). /admin "Approve and pay" (two clicks): refuses unless PRIZE_KEY is the contract's prizeWallet(), the feed is fresh and the wallet holds the POL + gas (says how much more to send); then once per week (docstore.claim in MySQL + plan status), consecutive nonces, each hash saved as sent, stops at the first unclear send (never auto-retried), receipts watched. Ties: earlier to reach the count wins (leaderboards use the same rule). A winner that cannot be paid (the prize or company wallet) is skipped and the rest move up; an unfilled place stays in the prize wallet. /leaders shows past winners with transaction links. Posts nothing anywhere. Compose passes PRIZE_KEY.
Tests: smoke 192/192 (stand-in chain answers quoteWei + receipts: quote, order calldata + voucher, look purchase, teaser, prizes API, UI Buy buttons). New qa/chain.mjs on a local anvil with the real VBBShop + mock feed: buy -> Purchase -> credits, voucher binds sponsor, 30/10/60 split, overpay refunded, banner look; prize prepare -> short refusal -> pay 6 transfers exact POL -> paid once: 29/29. common.js?v=3, vbb.css?v=4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82 lines
5.4 KiB
HTML
82 lines
5.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
<title>My Banners | Viral Banner Blitz</title>
|
|
<meta name="description" content="Post your 125x125 banner into the loop, see where each banner stands, and share your link.">
|
|
<link rel="canonical" href="https://viralbannerblitz.com/my">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:site_name" content="Viral Banner Blitz">
|
|
<meta property="og:title" content="My Banners | Viral Banner Blitz">
|
|
<meta property="og:description" content="Post your 125x125 banner into the loop, see where each banner stands, and share your link.">
|
|
<meta property="og:url" content="https://viralbannerblitz.com/my">
|
|
<meta property="og:image" content="https://viralbannerblitz.com/art/og-share.png">
|
|
<meta property="og:image:width" content="1200">
|
|
<meta property="og:image:height" content="630">
|
|
<meta property="og:image:alt" content="Viral Banner Blitz: a community banner loop that moves with every verified visitor">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="My Banners | Viral Banner Blitz">
|
|
<meta name="twitter:description" content="Post your 125x125 banner into the loop, see where each banner stands, and share your link.">
|
|
<meta name="twitter:image" content="https://viralbannerblitz.com/art/og-share.png">
|
|
<meta name="robots" content="noindex">
|
|
<meta name="theme-color" content="#ffd400">
|
|
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
|
|
<link rel="stylesheet" href="/assets/vbb.css?v=4">
|
|
</head>
|
|
<body>
|
|
<main class="wrap">
|
|
<section class="hero"><h1>My Banners</h1><p class="lead">Post a banner, watch it move through the loop, and share your link.</p></section>
|
|
|
|
<div class="card" id="signin" hidden>
|
|
<h2>Sign in</h2>
|
|
<p class="muted">Already a member of InstantAdPay or LinkSpin? Sign in through the network with one tap. Or sign a free message with SafePal or any other crypto wallet.</p>
|
|
<div class="row">
|
|
<a class="btn" id="ssoIap" href="/sso/start?mode=go&via=iap&to=%2Fmy">Sign in with InstantAdPay</a>
|
|
<a class="btn sec" id="ssoLs" href="/sso/start?mode=go&via=linkspin&to=%2Fmy">Sign in with LinkSpin</a>
|
|
<button class="btn sec" id="signBtn">Sign in with a wallet</button>
|
|
</div>
|
|
<p class="muted small">The wallet signature is free. It cannot move funds or approve anything.</p>
|
|
</div>
|
|
|
|
<div id="dash" hidden>
|
|
<div class="card">
|
|
<div class="row" style="justify-content:space-between"><div><span class="muted small">Signed in as</span> <span class="mono" id="me"></span></div><button class="btn quiet small" id="outBtn">Sign out</button></div>
|
|
<div class="stats" id="stats"></div>
|
|
<p class="muted small" id="creditNote"></p>
|
|
</div>
|
|
|
|
<div class="card" id="postCard">
|
|
<h2>Post a banner</h2>
|
|
<p class="muted small">125x125 PNG, JPG or GIF, up to 100 KB (250x250 also works for sharp screens). Link: https, a page that loads and allows frames. One post uses one credit. Need more? <a href="/packages">Get a credit pack</a>.</p>
|
|
<div class="post-grid">
|
|
<div class="preview" id="preview">125 x 125<br>preview</div>
|
|
<div>
|
|
<div class="field"><label for="img">Image address (https), or upload a file</label><input id="img" placeholder="https://your-site.com/banner.png" autocomplete="off"></div>
|
|
<div class="row"><label class="btn sec small">Upload image<input type="file" id="file" accept="image/png,image/jpeg,image/gif" hidden></label><span class="muted small" id="fileNote"></span></div>
|
|
<div class="field"><label for="link">Target link (https)</label><input id="link" placeholder="https://your-site.com/page" autocomplete="off"></div>
|
|
<button class="btn" id="postBtn">Post to the loop</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card"><h2>Your banners</h2><p class="muted small">Add the banner look to any banner that is waiting or in the loop: a bright border, plus a teaser line that shows when someone points at it. One-time, per banner.</p><div class="mine" id="mine"></div></div>
|
|
|
|
<div class="card">
|
|
<h2>Your link</h2>
|
|
<p class="muted small">Visitors who arrive through this link and stay a few seconds count for you on the weekly leaderboards. A visitor counts once a day.</p>
|
|
<div class="share"><input class="mono" id="share" readonly aria-label="Your link"><button class="btn sec small" id="copyBtn">Copy</button></div>
|
|
<div class="stats" id="weekStats"></div>
|
|
</div>
|
|
|
|
<div class="card"><h2>Cycle rewards</h2><p class="muted small">Each banner that rides out of the loop earns network ad views. They are recorded here now and will be added to your InstantAdPay or LinkSpin advertising when that link goes live. Ad views buy advertising, not income.</p><div class="scroll" id="rewards"></div></div>
|
|
</div>
|
|
<div id="status" class="note" hidden></div>
|
|
</main>
|
|
<script src="/assets/common.js?v=3"></script>
|
|
<script src="/assets/wallet.js?v=2"></script>
|
|
<script src="/assets/buy.js?v=1"></script>
|
|
<script src="/assets/my.js?v=2"></script>
|
|
</body>
|
|
</html>
|