Files
vbb/public/my.html
T
martbost 8e6d2f9cd0 One swap per banner + admin takedown (Marty 2026-11-15: "allow the member to swap it only, and they can only do it one time. Admin takes down the option to credit back or none.")
Member swap: My Banners shows "Swap image or link" on a banner that is waiting or in the loop, usable once (then "Swap used"). POST /api/my/banners/<id>/swap changes the image and/or link (or a Banner Spin to another of the member's own 125x125/250x250 spins via lsspins), same checks as a new post (checkLink, probeLink, upload/https image checks); id, place, clicks and loop progress stay. Logged on the banner (swaps: old/new image + link, time). No withdraw, removal or refund for members.

Admin takedown: /admin finds banners (#id, wallet, username), POST /api/admin/banners/<id>/takedown {reason required, credit: back|none}. The banner is hidden at once (splash loop + waiting line show a house tile in its place, /go goes home, no look/teaser/swap); its place rides out on time so nobody moves, then it ends with no cycle, no network views, no prize count. My Banners shows "Taken down" with the reason. Restore reverses a given credit (when the owner still holds one) and, if its place rode out meanwhile, records the cycle then. Admin ledger: GET /api/admin/actions (who, when, reason, credit decision).

Chatbot: CANNED 'swap' + FACTS line (KNOWLEDGE_DATE already 2026-11-15), chat-qa entry. my.js?v=4, admin.js?v=3, vbb.css?v=8.
Tests: smoke section 15 (swap once, refused twice, keeps place, bad link/image refused, spin swap, takedown credit back vs none, others keep places, ride-out without a cycle, restore, admin ledger, phone UI): 308/308 with the committed networksso.js; chatbot.test 182/182; qa:chain 49/49.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:18:49 -06:00

88 lines
6.0 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=8">
</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&amp;via=iap&amp;to=%2Fmy">Sign in with InstantAdPay</a>
<a class="btn sec" id="ssoLs" href="/sso/start?mode=go&amp;via=linkspin&amp;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 class="ls-box">
<p class="small"><b>Have a LinkSpin Banner Spin?</b> Post it instead: its images rotate in your tile and every click goes through your spin, so it shows in LinkSpin Reports under a Viral Banner Blitz source. 125x125 (or 250x250) spins. One post uses one credit.</p>
<button class="btn sec small" id="lsBtn">Use my LinkSpin Banner Spin</button>
<div id="lsPick" hidden></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><p class="muted small">Need to fix a banner? Each banner that is waiting or in the loop can swap its image or link one time. It keeps its place in the loop.</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=9"></script>
<script src="/assets/wallet.js?v=2"></script>
<script src="/assets/buy.js?v=1"></script>
<script src="/assets/my.js?v=4"></script>
<script src="/assets/chat.js?v=2" defer></script>
</body>
</html>