ViralAdBlitz v1 (viraladblitz.com rebuild, Marty approved 2026-11-14): the network's text-ad home, local build, not deployed
- Free text ad for network members (InstantAdPay / LinkSpin sign-in or wallet, membership through the hub), one per member - Member pages viraladblitz.com/<username>: own ad + the first 5 people above in the hub line with a live ad (by place) + 2 Boosted places - Front page: amber ticker (Boosted starred), Top ads this week by verified clicks, today's numbers, ledger, contract proof - Verified visitors / views / clicks (ticket + dwell + per-visitor dedupe + per-connection cap + bot filter, owner excluded) - Boost $5 = 500 guaranteed views through VABShop: keeper-signed EIP-712 line voucher from the hub line, watcher, delivery counted per verified view with an audit row each, Network Ad Space text-ad finishing after 30 days (vabnas.js) - Trust pack: /ledger, /contract, toasts, Telegram card per Boost (once), Terms / Earnings Disclaimer / Privacy (TrustClickz), network footer from the hub with tracked links, promo kit (21 creatives) + /promote, LinkSpin zone placeholders, hub report - Old YFW links via the oldrefs map (admin load route); docstore MySQL documents + row tables - qa/smoke.mjs 162/162 (stand-in hub, chain, Telegram, NAS; Playwright desktop + phone), qa/chain.mjs 20/20 (real VABShop on anvil) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// Front page: the ticker, today's numbers, "Top ads this week" by verified clicks, the live ledger and the contract box.
|
||||
(async function () {
|
||||
VAB.renderNav('/'); VAB.renderFooter();
|
||||
const $ = VAB.$, esc = VAB.esc;
|
||||
const d = await VAB.wire('front').catch(() => ({}));
|
||||
const t = d.today || {};
|
||||
$('stViews').textContent = VAB.n(t.views); $('stClicks').textContent = VAB.n(t.vclicks); $('stBoosts').textContent = VAB.n(t.boosts); $('stAds').textContent = VAB.n(t.ads);
|
||||
const items = (d.board && d.board.items) || [];
|
||||
$('boardCards').innerHTML = items.length ? items.map(x => VAB.paper(x, 'No. ' + x.rank + ' · ' + VAB.n(x.clicks) + ' verified click' + (x.clicks === 1 ? '' : 's'), 'board')).join('')
|
||||
: '<p class="muted">No verified clicks yet this week. The first ad clicked by a verified visitor takes No. 1.</p>';
|
||||
// the ledger: the newest Boost rows and their payouts
|
||||
const L = await VAB.getJSON('/api/ledger?n=6').catch(() => ({}));
|
||||
const ex = L.explorer || 'https://polygonscan.com';
|
||||
const who = (a, nm) => nm ? '@' + esc(nm) : esc(VAB.short(a || ''));
|
||||
const rows = [];
|
||||
for (const r of (L.items || [])) {
|
||||
const link = '<a href="' + esc(ex) + '/tx/' + esc(r.tx) + '" target="_blank" rel="noopener">verify</a>';
|
||||
rows.push('<tr><td>' + VAB.when(r.at) + '</td><td class="ev">Boost bought</td><td>' + who(r.buyer, r.buyerName) + '</td><td>' + VAB.polOf(r.weiPaid) + '</td><td>' + link + '</td></tr>');
|
||||
for (const p of r.pays || []) if (p.level > 0) rows.push('<tr><td></td><td>Paid level ' + p.level + (p.failed ? ' (waiting to be claimed)' : '') + '</td><td>' + (p.to ? who(p.to, p.name) : 'sponsor') + '</td><td>' + VAB.polOf(p.wei) + '</td><td>' + link + '</td></tr>');
|
||||
}
|
||||
$('ledgerMini').querySelector('tbody').innerHTML = rows.length ? rows.slice(0, 12).join('') : '<tr><td colspan="5" class="muted">No Boosts yet. The first one shows here within a minute of its transaction.</td></tr>';
|
||||
if (L.contract) { $('cAddr').textContent = 'Polygon · ' + L.contract + ' · read it live'; $('cLink').textContent = 'View the contract proof'; }
|
||||
})();
|
||||
Reference in New Issue
Block a user