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>
This commit is contained in:
+5
-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=7">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -31,13 +31,16 @@
|
||||
<div id="adm" hidden>
|
||||
<div class="card"><h2>Status</h2><div class="stats" id="aStats"></div><pre class="mono small scroll" id="aRaw" style="white-space:pre-wrap;max-height:320px"></pre></div>
|
||||
<div class="card" id="pzCard"><h2>Weekly prize payouts</h2><p class="muted small">Each Monday after midnight (Central) the app prepares last week's payout. Nothing is sent until you approve it here, and a week is paid once. Amounts in POL are quoted live and fixed when you approve.</p><div id="pzNow"></div><div id="pzWeeks"></div><div class="row"><button class="btn sec small" id="pzPrep">Prepare last week again</button></div></div>
|
||||
<div class="card" id="bnCard"><h2>Banners: take down or restore</h2><p class="muted small">Find a banner by #id, wallet or username. A takedown hides it everywhere at once; its loop place stays (a house tile shows there) until it would have ridden out, so nobody else moves. It never cycles, never earns network views and never counts for prizes. The reason is shown to the owner. Every takedown and restore goes in the admin ledger below.</p>
|
||||
<div class="share"><input id="bnQ" placeholder="#12, 0x... or username" autocomplete="off" aria-label="Find a banner"><button class="btn sec small" id="bnFind">Find</button></div><div id="bnList"></div></div>
|
||||
<div class="card"><h2>Admin ledger (takedowns and restores)</h2><div class="scroll" id="aActions"></div></div>
|
||||
<div class="card"><h2>Rewards by member</h2><div class="scroll" id="aMembers"></div></div>
|
||||
<div class="card"><h2>Ledger (newest first)</h2><div class="scroll" id="aLedger"></div></div>
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=9"></script>
|
||||
<script src="/assets/admin.js?v=2"></script>
|
||||
<script src="/assets/admin.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 125 125" width="125" height="125">
|
||||
<rect width="125" height="125" fill="#ffd400"/>
|
||||
<g fill="#ff2d87" opacity=".18"><circle cx="15" cy="15" r="5"/><circle cx="45" cy="15" r="5"/><circle cx="75" cy="15" r="5"/><circle cx="105" cy="15" r="5"/><circle cx="30" cy="110" r="5"/><circle cx="60" cy="110" r="5"/><circle cx="90" cy="110" r="5"/><circle cx="120" cy="110" r="5"/></g>
|
||||
<text x="62.5" y="50" fill="#14121f" font-family="sans-serif" font-size="13" font-weight="800" text-anchor="middle">Viral Banner</text>
|
||||
<text x="62.5" y="66" fill="#14121f" font-family="sans-serif" font-size="13" font-weight="800" text-anchor="middle">Blitz</text>
|
||||
<rect x="22" y="76" width="81" height="20" rx="10" fill="#ff2d87" stroke="#14121f" stroke-width="2"/>
|
||||
<text x="62.5" y="90" fill="#fff" font-family="sans-serif" font-size="11" font-weight="700" text-anchor="middle">Post yours</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 944 B |
+51
-1
@@ -13,7 +13,7 @@
|
||||
['Shifts today', s.today.shifts], ['Cycles today', s.today.cycles], ['Visitors today', s.today.visits], ['Cycles total', s.totals.cycles], ['Views recorded', VBB.n(s.ledger.views)], ['Views credited', VBB.n(s.ledger.credited)], ['Members', s.members]]
|
||||
.map(x => '<div class="stat"><b>' + esc(x[1]) + '</b><span>' + esc(x[0]) + '</span></div>').join('');
|
||||
$('aRaw').textContent = JSON.stringify(s, null, 2);
|
||||
prizes(); setInterval(prizes, 30000);
|
||||
prizes(); setInterval(prizes, 30000); actions();
|
||||
const l = await get('/api/admin/ledger?n=300');
|
||||
const who = r => r.username ? '@' + r.username : VBB.short(r.address || r.owner);
|
||||
$('aMembers').innerHTML = l.members && l.members.length ? '<table class="t"><tr><th>Member</th><th class="n">Cycles</th><th class="n">Views</th></tr>' + l.members.map(m => '<tr><td>' + esc(who(m)) + '</td><td class="n">' + m.cycles + '</td><td class="n">' + VBB.n(m.views) + '</td></tr>').join('') + '</table>' : '<p class="muted">No cycles yet.</p>';
|
||||
@@ -57,6 +57,56 @@
|
||||
const r = await VBB.getJSON('/api/admin/prizes/prepare', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-admin-token': tok }, body: '{}' });
|
||||
VBB.status(r.error || 'Prepared the week of ' + r.week + '.', r.error ? 'err' : 'ok'); prizes();
|
||||
};
|
||||
// ---- banner takedown / restore (Marty 2026-11-15): reason required, credit back or none; restore takes a given credit back ----
|
||||
const send = (u, body) => VBB.getJSON(u, { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-admin-token': tok }, body: JSON.stringify(body) });
|
||||
const ct = t => t ? new Date(t).toLocaleString('en-US', { timeZone: 'America/Chicago' }) + ' CT' : '';
|
||||
async function actions() {
|
||||
const a = await get('/api/admin/actions?n=200'); if (a.error) return;
|
||||
$('aActions').innerHTML = a.actions.length ? '<table class="t"><tr><th>When (CT)</th><th>Action</th><th>Banner</th><th>Owner</th><th>By</th><th>Reason</th><th>Credit</th></tr>'
|
||||
+ a.actions.map(e => '<tr><td>' + esc(ct(e.at)) + '</td><td>' + esc(e.action) + (e.cycleRecorded ? ' (cycle recorded)' : '') + '</td><td>#' + e.bannerId + '</td><td>' + esc(e.username ? '@' + e.username : VBB.short(e.owner)) + '</td><td>' + esc(e.by) + '</td><td>' + esc(e.reason || '') + '</td><td>' + esc(e.credit) + '</td></tr>').join('') + '</table>'
|
||||
: '<p class="muted">No takedowns yet.</p>';
|
||||
}
|
||||
async function findBanners() {
|
||||
const q = $('bnQ').value.trim(); if (!q) return;
|
||||
const d = await get('/api/admin/banners?q=' + encodeURIComponent(q));
|
||||
if (d.error) { $('bnList').innerHTML = '<p class="note err small">' + esc(d.error) + '</p>'; return; }
|
||||
$('bnList').innerHTML = '';
|
||||
for (const b of d.banners) {
|
||||
const el = document.createElement('div'); el.className = 'adm-b';
|
||||
const st = b.down ? 'TAKEN DOWN ' + ct(b.down.at) + ' by ' + b.down.by + ': ' + b.down.reason + (b.down.creditBack ? ' (credit given back)' : ' (no credit)') + '. Slot: ' + b.state
|
||||
: b.state === 'queued' ? 'Waiting #' + b.position + ' of ' + b.of : b.state === 'loop' ? 'In the loop, place ' + b.place + ' of ' + b.of : b.state;
|
||||
el.innerHTML = '<img alt="Banner #' + b.id + '" width="72" height="72"><div class="s"><b>#' + b.id + '</b> ' + esc(b.username ? '@' + b.username : '') + ' <span class="mono small">' + esc(b.owner) + '</span><br>'
|
||||
+ esc(st) + '<br>Link: <span class="mono small">' + esc(b.link) + '</span><br><span class="muted small">' + VBB.n(b.clicks) + ' clicks. Posted ' + esc(ct(b.createdAt)) + '.'
|
||||
+ (b.swaps.length ? ' Swapped ' + esc(ct(b.swaps[0].at)) + ' from ' + esc(b.swaps[0].old.link) + '.' : '') + (b.downs.length ? ' Restored before: ' + b.downs.length + 'x.' : '') + '</span><div class="act"></div></div>';
|
||||
el.querySelector('img').src = b.img;
|
||||
const act = el.querySelector('.act');
|
||||
if (b.down) {
|
||||
act.innerHTML = '<div class="field"><label>Why restore (optional)</label><input class="rs"></div><button class="btn small">Restore this banner' + (b.down.creditBack ? ' (takes the credit back)' : '') + '</button>';
|
||||
act.querySelector('button').onclick = async () => {
|
||||
const r = await send('/api/admin/banners/' + b.id + '/restore', { reason: act.querySelector('.rs').value });
|
||||
VBB.status(r.error || ('Banner #' + b.id + ' restored.' + (r.creditReversed ? ' The credit was taken back.' : r.creditAlreadyUsed ? ' The owner already used the credit, so it was not taken back.' : '') + (r.cycle ? ' Its place had ridden out, so its cycle is recorded now.' : '')), r.error ? 'err' : 'ok');
|
||||
findBanners(); actions();
|
||||
};
|
||||
} else if (b.state === 'queued' || b.state === 'loop') {
|
||||
act.innerHTML = '<div class="field"><label>Reason (the owner sees it)</label><textarea class="why" maxlength="300"></textarea></div>'
|
||||
+ '<div class="row"><label class="small"><input type="radio" name="cr' + b.id + '" value="back"> Credit back</label><label class="small"><input type="radio" name="cr' + b.id + '" value="none"> No credit</label>'
|
||||
+ '<button class="btn small">Take down</button></div>';
|
||||
const bt = act.querySelector('button');
|
||||
bt.onclick = async () => {
|
||||
const reason = act.querySelector('.why').value.trim(); const c = act.querySelector('input[type=radio]:checked');
|
||||
if (reason.length < 3) return VBB.status('Write the reason first.', 'err');
|
||||
if (!c) return VBB.status('Choose credit back or no credit.', 'err');
|
||||
if (!bt.dataset.armed) { bt.dataset.armed = '1'; bt.textContent = 'Click again to take down #' + b.id; setTimeout(() => { if (bt.isConnected) { delete bt.dataset.armed; bt.textContent = 'Take down'; } }, 8000); return; }
|
||||
const r = await send('/api/admin/banners/' + b.id + '/takedown', { reason, credit: c.value });
|
||||
VBB.status(r.error || ('Banner #' + b.id + ' taken down' + (c.value === 'back' ? ', credit given back.' : ', no credit.')), r.error ? 'err' : 'ok');
|
||||
findBanners(); actions();
|
||||
};
|
||||
}
|
||||
$('bnList').appendChild(el);
|
||||
}
|
||||
}
|
||||
$('bnFind').onclick = findBanners;
|
||||
$('bnQ').addEventListener('keydown', e => { if (e.key === 'Enter') findBanners(); });
|
||||
$('tokBtn').onclick = () => { tok = $('tok').value.trim(); open(); };
|
||||
$('tok').addEventListener('keydown', e => { if (e.key === 'Enter') $('tokBtn').click(); });
|
||||
if (tok) open();
|
||||
|
||||
+61
-6
@@ -68,11 +68,65 @@
|
||||
};
|
||||
$('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'
|
||||
const when = t => new Date(t).toLocaleString('en-US', { timeZone: 'America/Chicago', month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' }) + ' CT';
|
||||
const where = b => b.state === 'down' ? '<span class="pill down">Taken down</span><br>Reason: ' + esc(b.downReason) + '<br><span class="muted">'
|
||||
+ (b.creditBack ? 'Your post credit was given back.' : 'The post credit was not given back.') + ' It no longer shows anywhere.</span>'
|
||||
: b.state === 'queued' ? '<span class="pill queued">Waiting</span><br>Number ' + b.position + ' of ' + b.of + ' in line'
|
||||
: b.state === 'loop' ? '<span class="pill loop">In the loop</span><br>Place ' + b.place + ' of ' + b.of + ', rides out in about ' + b.shiftsToRideOut + ' shift' + (b.shiftsToRideOut === 1 ? '' : 's')
|
||||
: '<span class="pill cycled">Cycled</span><br>' + (b.cycledAt ? new Date(b.cycledAt).toLocaleString() : '');
|
||||
// banner look (SKU 3): buy it for a banner that is waiting or in the loop; with the look, edit its hover teaser
|
||||
let buying = false, editing = false;
|
||||
let buying = false, editing = false, swapping = false;
|
||||
// one swap per banner (Marty 2026-11-15): new image and/or link, or another of your Banner Spins. Same checks as a new post.
|
||||
function swapRow(row, b) {
|
||||
if (b.swapUsed) { row.innerHTML = '<span class="muted small">Swap used' + (b.swappedAt ? ' on ' + esc(when(b.swappedAt)) : '') + '. Each banner can be swapped once.</span>'; return; }
|
||||
if (!b.canSwap) return;
|
||||
row.innerHTML = '<button class="btn sec small">Swap image or link</button>';
|
||||
row.querySelector('button').onclick = () => openSwap(row, b);
|
||||
}
|
||||
function openSwap(row, b) {
|
||||
swapping = true; let up = ''; const item = row.closest('.item'); if (item) item.classList.add('swapping');
|
||||
row.innerHTML = '<div class="swap-box"><p class="small"><b>Swap banner #' + b.id + '</b> (one time only). It keeps its place, clicks and progress. Leave a field empty to keep what it has'
|
||||
+ (b.spin ? '; a Banner Spin swaps to another Banner Spin, or to your own image and link together' : '') + '.</p>'
|
||||
+ '<div class="field"><label>New image address (https), or upload a file</label><input class="sw-img" placeholder="https://your-site.com/banner.png" autocomplete="off"></div>'
|
||||
+ '<div class="row"><label class="btn sec small">Upload image<input type="file" class="sw-file" accept="image/png,image/jpeg,image/gif" hidden></label><span class="muted small sw-note"></span></div>'
|
||||
+ '<div class="field"><label>New target link (https)</label><input class="sw-link" placeholder="https://your-site.com/page" autocomplete="off"></div>'
|
||||
+ '<div class="row"><button class="btn small sw-go">Swap now</button><button class="btn sec small sw-spin">Use another Banner Spin</button><button class="btn quiet small sw-x">Cancel</button></div><div class="sw-pick"></div></div>';
|
||||
const q = k => row.querySelector(k);
|
||||
q('.sw-img').addEventListener('input', () => { up = ''; q('.sw-note').textContent = ''; });
|
||||
q('.sw-file').addEventListener('change', async e => {
|
||||
const f = e.target.files[0]; if (!f) return;
|
||||
if (f.size > 100 * 1024) { VBB.status('That file is ' + Math.ceil(f.size / 1024) + ' KB. The limit is 100 KB.', 'err'); return; }
|
||||
q('.sw-note').textContent = 'Uploading...';
|
||||
const r = await VBB.getJSON('/api/my/upload', { method: 'POST', headers: { 'Content-Type': 'application/octet-stream' }, body: f });
|
||||
e.target.value = '';
|
||||
if (r.error) { q('.sw-note').textContent = ''; VBB.status(r.error, 'err'); return; }
|
||||
up = r.img; q('.sw-img').value = ''; q('.sw-note').textContent = 'Uploaded: ' + f.name; VBB.status('');
|
||||
});
|
||||
const send = async body => {
|
||||
row.querySelectorAll('button').forEach(x => { x.disabled = true; }); VBB.status('Checking the new image and link...');
|
||||
const r = await VBB.post('/api/my/banners/' + b.id + '/swap', body);
|
||||
if (r.error) { VBB.status(r.error, 'err'); row.querySelectorAll('button').forEach(x => { x.disabled = false; }); return; }
|
||||
swapping = false; VBB.status('Swapped. Banner #' + b.id + ' keeps its place and now shows the new ' + (body.spinId != null ? 'Banner Spin' : 'image and link') + '.', 'ok'); load();
|
||||
};
|
||||
q('.sw-go').onclick = () => {
|
||||
const img = up || q('.sw-img').value.trim(), link = q('.sw-link').value.trim();
|
||||
if (!img && !link) return VBB.status('Add a new image, a new link, or both.', 'err');
|
||||
send({ img, link });
|
||||
};
|
||||
q('.sw-x').onclick = () => { swapping = false; if (item) item.classList.remove('swapping'); swapRow(row, b); };
|
||||
q('.sw-spin').onclick = async () => {
|
||||
const pick = q('.sw-pick'); 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 list = (d.spins || []).filter(sp => sp.banners && !sp.paused);
|
||||
if (!d.account || !list.length) { pick.innerHTML = '<p class="small">No 125x125 (or 250x250) Banner Spin with images on your LinkSpin account yet.</p>'; return; }
|
||||
pick.innerHTML = '<p class="small muted">Tap a Banner Spin to swap to it.</p><div class="row"></div>';
|
||||
for (const sp of list) {
|
||||
const bt = document.createElement('button'); bt.className = 'btn sec small'; bt.textContent = sp.name + ' (' + sp.size + ')';
|
||||
bt.onclick = () => send({ spinId: sp.id }); pick.querySelector('.row').appendChild(bt);
|
||||
}
|
||||
};
|
||||
}
|
||||
function lookRow(row, b) {
|
||||
if (b.look) {
|
||||
row.innerHTML = '<span class="pill look">Banner look</span><input maxlength="40" aria-label="Hover teaser for banner #' + b.id + '"><button class="btn sec small">Save teaser</button>';
|
||||
@@ -97,12 +151,12 @@
|
||||
}
|
||||
const shopLive = !!(c.shop && c.shop.live);
|
||||
async function load() {
|
||||
if (buying || editing) return;
|
||||
if (buying || editing || swapping) return;
|
||||
const d = await VBB.getJSON('/api/my');
|
||||
if (d.error) return VBB.status(d.error, 'err');
|
||||
$('dash').hidden = false;
|
||||
$('me').textContent = d.username ? '@' + d.username + ' (' + VBB.short(d.address) + ')' : d.address;
|
||||
const live = d.banners.filter(b => b.state !== 'cycled').length, cyc = d.banners.filter(b => b.state === 'cycled').length;
|
||||
const live = d.banners.filter(b => b.state === 'queued' || b.state === 'loop').length, cyc = d.banners.filter(b => b.state === 'cycled').length;
|
||||
$('stats').innerHTML = [['Post credits', d.credits], ['Banners waiting or in the loop', live], ['Banners cycled', cyc], ['Network ad views earned', VBB.n(d.rewardViews)]]
|
||||
.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. ' : '')
|
||||
@@ -112,10 +166,11 @@
|
||||
$('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.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 class="swap-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);
|
||||
if (b.state === 'down') { el.classList.add('down'); a.removeAttribute('href'); }
|
||||
else { lookRow(el.querySelector('.look-row'), b); swapRow(el.querySelector('.swap-row'), b); }
|
||||
$('mine').appendChild(el);
|
||||
}
|
||||
$('share').value = d.share;
|
||||
|
||||
@@ -185,3 +185,15 @@ footer.foot .netline b{color:#fff} footer.foot .netline .here{color:#fff;font-we
|
||||
.toast.buy{background:var(--amber-soft)} .toast.prize{background:var(--ok-soft)}
|
||||
.legal .card h2{font-size:21px} .legal .card p,.legal .card li{max-width:760px} .legal .card ul{padding-left:20px} .legal .card li{margin:6px 0}
|
||||
#facts th{font:700 11.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;vertical-align:top}
|
||||
/* one-time swap + admin takedown (2026-11-15) */
|
||||
.pill.down{background:#14121f;color:#fff}
|
||||
.mine .item.down{opacity:.7}.mine .item.down img{filter:grayscale(1)}
|
||||
.mine .item .swap-row{margin-top:6px}
|
||||
.swap-box{background:var(--panel);border:2px solid var(--ink);border-radius:10px;padding:10px;margin-top:4px}
|
||||
.swap-box .field input{width:100%}
|
||||
.swap-box .row{flex-wrap:wrap;gap:6px}
|
||||
.adm-b{display:flex;gap:12px;align-items:flex-start;border:var(--edge);border-radius:12px;padding:10px;margin:10px 0;background:var(--bg2);flex-wrap:wrap}
|
||||
.adm-b img{width:72px;height:72px;border:2px solid var(--ink);border-radius:8px;object-fit:cover;flex:none}
|
||||
.adm-b .s{flex:1;min-width:220px;font-size:13.5px;word-break:break-all}
|
||||
.adm-b textarea{width:100%;min-height:54px;font:14px var(--body);border:var(--edge);border-radius:8px;padding:8px}
|
||||
.mine .item.swapping{flex-wrap:wrap;align-items:flex-start}.mine .item.swapping .s{flex:1 1 100%}
|
||||
|
||||
+3
-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=7">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -65,7 +65,7 @@
|
||||
</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 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>
|
||||
@@ -81,7 +81,7 @@
|
||||
<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=3"></script>
|
||||
<script src="/assets/my.js?v=4"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user