LinkSpin Banner Spins in Viral Banner Blitz (Marty 2026-11-14: "make sure Viral Banner Blitz incorporates banner spins that could be pulled in just like downline banners"), the Downline Banners pattern. lsspins.js calls LinkSpin's /api/partner/bl/spins with { site: 'vbb' }, signed with NETWORK_SSO_SECRET (by wallet; the network username too for network-verified members). My Banners: "Use my LinkSpin Banner Spin" lists the member's 125x125 / 250x250 spins (GET /api/my/lsspins) and one tap posts one (POST /api/my/banners { spinId }): one credit, same credit + waiting rules, image + link from LinkSpin's signed answer only (https, same host), the image is the spin's rotating image and the link its click link, so clicks count in LinkSpin Reports under a Viral Banner Blitz source. /go/ fills {clickid}, {spot} (banner number) and {type} (loop or waiting). Splash: the loop's open places (one stays "post yours") and the empty waiting line show members' Banner Spins (SPIN tiles, refreshed every 10 minutes, one per member, none for a member with a banner on the page, no image twice, same picks for 2 minutes); they are never in the loop list, never shift it, cycle or earn, and a note says so. Admin status: lsSpins. LS_PARTNER_URL for the smoke stand-in. common.js?v=4, splash.js?v=3, my.js?v=3, vbb.css?v=5. Smoke 227/227 (35 new, stand-in LinkSpin), chain 29/29. Needs LinkSpin 5d630ec.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/admin.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -72,9 +72,10 @@ window.VBB = (function () {
|
||||
tick(); setInterval(tick, 25000);
|
||||
}
|
||||
function tile(t, extra) {
|
||||
const a = document.createElement('a'); a.className = 'tile' + (t.look ? ' look' : '') + (extra && extra.cls ? ' ' + extra.cls : '');
|
||||
const a = document.createElement('a'); a.className = 'tile' + (t.look ? ' look' : '') + (t.t === 'spin' ? ' fill' : '') + (extra && extra.cls ? ' ' + extra.cls : '');
|
||||
if (t.t === 'spin') a.title = (t.owner ? t.owner + ': ' : '') + 'LinkSpin Banner Spin (fills an open place, not in the loop)';
|
||||
a.href = t.href; a.target = '_blank'; a.rel = 'noopener';
|
||||
a.innerHTML = '<img alt="' + esc(t.owner ? 'Banner by ' + t.owner : 'Member banner #' + t.id) + '" width="125" height="125" loading="lazy" referrerpolicy="no-referrer">'
|
||||
a.innerHTML = '<img alt="' + esc(t.t === 'spin' ? 'LinkSpin Banner Spin' + (t.owner ? ' by ' + t.owner : '') : t.owner ? 'Banner by ' + t.owner : 'Member banner #' + t.id) + '" width="125" height="125" loading="lazy" referrerpolicy="no-referrer">'
|
||||
+ (extra && extra.pos ? '<span class="pos">' + esc(extra.pos) + '</span>' : '') + (t.owner ? '<span class="who">' + esc(t.owner) + '</span>' : '');
|
||||
if (t.look && t.teaser) { const s = document.createElement('span'); s.className = 'teaser'; s.textContent = t.teaser; a.appendChild(s); a.title = t.teaser; }
|
||||
const img = a.querySelector('img'); img.src = t.img; img.onerror = () => { img.onerror = null; img.src = '/art/tile-fallback.svg'; };
|
||||
|
||||
+28
-1
@@ -40,6 +40,32 @@
|
||||
VBB.status(r.banner.state === 'loop' ? 'Posted. Your banner went straight into the loop.' : 'Posted. Your banner is number ' + r.banner.position + ' in line.', 'ok');
|
||||
load();
|
||||
};
|
||||
// LinkSpin Banner Spin (2026-11-14, the Downline Banners pattern): pick one of your 125x125 (or 250x250) spins and it posts
|
||||
$('lsBtn').onclick = async () => {
|
||||
const pick = $('lsPick'); pick.hidden = false; pick.innerHTML = '<p class="small muted">Looking up your LinkSpin Banner Spins...</p>';
|
||||
const d = await VBB.getJSON('/api/my/lsspins');
|
||||
if (d.error) { pick.innerHTML = '<p class="note err small">' + esc(d.error) + '</p>'; return; }
|
||||
const make = '<a href="https://linkspin.app/links#b" target="_blank" rel="noopener">make one on LinkSpin</a>';
|
||||
if (!d.account) { pick.innerHTML = '<p class="small">No LinkSpin account holds this wallet yet. Join LinkSpin (free) with the same email as InstantAdPay, link this wallet there, then ' + make + ' (size 125x125).</p>'; return; }
|
||||
if (!d.spins.length) { pick.innerHTML = '<p class="small">You have no 125x125 Banner Spin yet: ' + make + ' (pick size 125x125), then tap the button again.</p>'; return; }
|
||||
pick.innerHTML = '<p class="small muted">Tap a Banner Spin to post it to the loop (one credit).</p><div class="row"></div>';
|
||||
const row = pick.querySelector('.row');
|
||||
for (const sp of d.spins) {
|
||||
const bt = document.createElement('button'); bt.className = 'btn sec small'; bt.dataset.spin = sp.id;
|
||||
bt.textContent = sp.name + ' (' + sp.size + ', ' + sp.banners + ' image' + (sp.banners === 1 ? '' : 's') + (sp.paused ? ', paused' : '') + ')';
|
||||
bt.disabled = !sp.banners || sp.paused; if (bt.disabled) bt.title = sp.paused ? 'Unpause it on LinkSpin first.' : 'Add an image to it on LinkSpin first.';
|
||||
bt.onclick = async () => {
|
||||
row.querySelectorAll('button').forEach(x => { x.disabled = true; }); VBB.status('Posting your Banner Spin...');
|
||||
const r = await VBB.post('/api/my/banners', { spinId: sp.id });
|
||||
if (r.error) { VBB.status(r.error, 'err'); row.querySelectorAll('button').forEach(x => { x.disabled = false; }); return; }
|
||||
pick.hidden = true; pick.innerHTML = '';
|
||||
VBB.status((r.banner.state === 'loop' ? 'Posted. Your Banner Spin went straight into the loop.' : 'Posted. Your Banner Spin is number ' + r.banner.position + ' in line.')
|
||||
+ (r.otherSource ? ' It already reports under another LinkSpin source, so its clicks stay there.' : ''), 'ok');
|
||||
load();
|
||||
};
|
||||
row.appendChild(bt);
|
||||
}
|
||||
};
|
||||
$('copyBtn').onclick = () => { $('share').select(); try { navigator.clipboard.writeText($('share').value); } catch (e) { document.execCommand('copy'); } VBB.status('Link copied.', 'ok'); };
|
||||
|
||||
const where = b => b.state === 'queued' ? '<span class="pill queued">Waiting</span><br>Number ' + b.position + ' of ' + b.of + ' in line'
|
||||
@@ -81,13 +107,14 @@
|
||||
.map(x => '<div class="stat"><b>' + esc(x[1]) + '</b><span>' + esc(x[0]) + '</span></div>').join('');
|
||||
$('creditNote').textContent = !d.netVerified ? 'Free daily credits are for network members. Sign in through InstantAdPay or LinkSpin, or make a free InstantAdPay account with this wallet, and your free credit arrives each day you sign in. You can have up to ' + d.maxQueued + ' banners waiting at once.' : (d.grantedNow ? 'Your free credit for today was just added. ' : d.freeToday ? 'Today\'s free credit is in. ' : '')
|
||||
+ 'One free credit arrives each day you sign in (they bank up to ' + d.freeCreditCap + '). You can have up to ' + d.maxQueued + ' banners waiting at once.';
|
||||
$('postBtn').disabled = d.credits < 1;
|
||||
$('postBtn').disabled = d.credits < 1; $('lsBtn').disabled = d.credits < 1;
|
||||
if (d.credits < 1) $('creditNote').textContent += (shopLive ? ' Out of credits: get a pack on the Packages page, or come back tomorrow for a free one.' : '');
|
||||
$('mine').innerHTML = d.banners.length ? '' : '<p class="muted">No banners yet. Post your first one above.</p>';
|
||||
for (const b of d.banners) {
|
||||
const el = document.createElement('div'); el.className = 'item';
|
||||
el.innerHTML = '<img alt="Banner #' + b.id + '" width="72" height="72"><div class="s">' + where(b) + '<br><a target="_blank" rel="noopener"></a><br><span class="muted">' + VBB.n(b.clicks) + ' clicks</span><div class="look-row"></div></div>';
|
||||
el.querySelector('img').src = b.img; const a = el.querySelector('a'); a.href = b.link; a.textContent = b.link.replace(/^https:\/\//, '').slice(0, 60);
|
||||
if (b.spin) { a.removeAttribute('href'); a.textContent = 'LinkSpin Banner Spin: ' + b.spin.name; a.insertAdjacentHTML('beforebegin', '<span class="pill spin">Banner Spin</span> '); }
|
||||
lookRow(el.querySelector('.look-row'), b);
|
||||
$('mine').appendChild(el);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
const t = d.today || {};
|
||||
$('today').textContent = VBB.n(t.shifts) + ' shifts and ' + VBB.n(t.cycles) + ' cycles today';
|
||||
// the loop
|
||||
const ids = d.loop.map(x => x.id + (x.look ? '*' + x.teaser : '')).join(','); // a new banner look repaints too
|
||||
const fill = d.fill || { loop: [], queue: [] };
|
||||
const ids = d.loop.map(x => x.id + (x.look ? '*' + x.teaser : '')).join(',') + '|' + fill.loop.map(x => x.img).join(','); // a new banner look or fill repaints too
|
||||
if (ids !== lastLoop) {
|
||||
lastLoop = ids; const g = $('loop'); g.innerHTML = '';
|
||||
const full = d.loop.length >= d.loopSize;
|
||||
@@ -24,16 +25,21 @@
|
||||
const el = VBB.tile(t, { pos: last ? 'NEXT OUT' : String(i + 1), cls: (last ? 'next' : '') + (!firstPaint && !known.has(t.id) ? ' fresh' : '') });
|
||||
g.appendChild(el); known.add(t.id);
|
||||
});
|
||||
for (let i = d.loop.length; i < d.loopSize; i++) {
|
||||
// open places: the first stays "post yours", the next ones show members' LinkSpin Banner Spins (never part of the loop)
|
||||
for (let i = d.loop.length, k = 0; i < d.loopSize; i++) {
|
||||
const sp = i > d.loop.length ? fill.loop[k] : null;
|
||||
if (sp) { k++; g.appendChild(VBB.tile(sp, { pos: 'SPIN' })); continue; }
|
||||
const a = document.createElement('a'); a.className = 'tile open'; a.href = '/my';
|
||||
a.innerHTML = '<b>+</b>Open place<br>post yours'; g.appendChild(a);
|
||||
}
|
||||
firstPaint = false;
|
||||
}
|
||||
$('loopInfo').textContent = d.loop.length + ' of ' + d.loopSize + ' places filled';
|
||||
$('fillNote').hidden = !(fill.loop.length || (!d.waiting && fill.queue.length));
|
||||
// the queue
|
||||
const q = $('queue'); q.innerHTML = '';
|
||||
d.queue.forEach((t, i) => q.appendChild(VBB.tile(t, { pos: '#' + (i + 1) })));
|
||||
if (!d.waiting) fill.queue.forEach(t => q.appendChild(VBB.tile(t, { pos: 'SPIN' })));
|
||||
$('queueEmpty').hidden = d.waiting > 0;
|
||||
$('queueInfo').textContent = d.waiting ? VBB.n(d.waiting) + ' waiting' + (d.waiting > d.queue.length ? ', first ' + d.queue.length + ' shown' : '') : '';
|
||||
}
|
||||
|
||||
@@ -172,3 +172,9 @@ footer.foot a{color:var(--amber)} footer.foot p{margin:6px 0}
|
||||
.mine .item .look-row input{flex:1;min-width:120px;background:var(--panel);border:2px solid var(--ink);border-radius:8px;padding:6px 8px;font:13px var(--body)}
|
||||
.pill.look{background:var(--hot);color:#fff}
|
||||
.past{display:grid;gap:12px}.past .wk{background:var(--bg2);border:var(--edge);border-radius:14px;padding:12px 14px}
|
||||
/* LinkSpin Banner Spins (2026-11-14): fill tiles in open places / the empty waiting line, never loop banners */
|
||||
.tile.fill{border-style:dashed;box-shadow:none;opacity:.92}
|
||||
.tile.fill .pos{background:var(--sky-soft);color:var(--ink)}
|
||||
.fill-note{margin-top:6px}
|
||||
.ls-box{margin-top:16px;padding-top:12px;border-top:1.5px dashed var(--muted)}
|
||||
.pill.spin{background:var(--sky-soft);color:var(--ink)}
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+4
-3
@@ -23,7 +23,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -47,6 +47,7 @@
|
||||
<div class="loop-head"><h2>Waiting to enter</h2><span class="side" id="queueInfo"></span></div>
|
||||
<div class="queue" id="queue"></div>
|
||||
<p class="muted small" id="queueEmpty" hidden>Nobody is waiting. A banner posted now enters the loop at the next shift.</p>
|
||||
<p class="muted small fill-note" id="fillNote" hidden>Tiles marked SPIN are members' LinkSpin Banner Spins showing in empty space. They are not in the loop: they never shift it, never cycle and never earn. <a href="/my">Post a banner</a> and yours takes a real place.</p>
|
||||
|
||||
<div class="card">
|
||||
<h3>Send visitors, move up the leaderboard</h3>
|
||||
@@ -55,7 +56,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/splash.js?v=2"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/splash.js?v=3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="card" id="pastCard" hidden><h2>Past winners</h2><p class="muted small">Paid in POL from the prize wallet at the POL price at payout time. Every payment is a public Polygon transaction.</p><div class="past" id="past"></div></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/leaders.js?v=3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+8
-3
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -58,6 +58,11 @@
|
||||
<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><div class="mine" id="mine"></div></div>
|
||||
@@ -73,9 +78,9 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></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>
|
||||
<script src="/assets/my.js?v=3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -43,7 +43,7 @@
|
||||
<div class="card center"><p>Every network member (InstantAdPay or LinkSpin) also gets one free post credit each day they sign in.</p><a class="btn sec" href="/my">Use my free credit</a></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/wallet.js?v=2"></script>
|
||||
<script src="/assets/buy.js?v=1"></script>
|
||||
<script src="/assets/packages.js?v=1"></script>
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=5">
|
||||
<link rel="stylesheet" href="/assets/kit.css?v=1">
|
||||
</head>
|
||||
<body>
|
||||
@@ -34,7 +34,7 @@
|
||||
<div id="status" class="note" hidden></div>
|
||||
<div id="kit"><p class="muted">Loading the kit...</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=3"></script>
|
||||
<script src="/assets/common.js?v=4"></script>
|
||||
<script src="/assets/kitpage.js?v=1"></script>
|
||||
<script src="/assets/promote.js?v=1"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user