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:
@@ -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' : '') : '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user