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,19 @@
|
||||
// Promote page: the promo kit from /api/promo-kit with the member's network username in every link.
|
||||
// Username: ?u= first, then the signed-in member's, then the last one typed here (this browser only).
|
||||
(async function () {
|
||||
VAB.renderNav('/promote'); VAB.renderFooter(); VAB.wire('other').catch(() => {});
|
||||
const $ = VAB.$; const RE = /^(?:[A-Za-z0-9_.-]{2,40}|0x[0-9a-fA-F]{40})$/;
|
||||
let u = new URLSearchParams(location.search).get('u') || ''; let signed = false;
|
||||
if (!RE.test(u)) { u = ''; try { const me = await VAB.getJSON('/api/me'); if (me.signedIn) { u = me.username || me.address || ''; signed = true; } } catch (e) {} }
|
||||
if (!u) { try { u = localStorage.getItem('kit.u') || ''; } catch (e) {} if (!RE.test(u)) u = ''; }
|
||||
$('whoIn').value = u;
|
||||
if (signed) $('whoNote').textContent = 'Signed in: your links below use ' + (u.startsWith('0x') ? 'your wallet (no network username found yet)' : '@' + u) + '.';
|
||||
async function show(name) { try { await KitPage.load($('kit'), name); VAB.status(''); } catch (e) { VAB.status('Could not load the kit. Try again in a moment.', 'err'); } }
|
||||
$('whoForm').addEventListener('submit', e => {
|
||||
e.preventDefault(); const v = $('whoIn').value.trim().replace(/^@/, '');
|
||||
if (v && !RE.test(v)) return VAB.status('That does not look like a username: letters, numbers, dot, dash or underscore.', 'err');
|
||||
try { localStorage.setItem('kit.u', v); } catch (e2) {}
|
||||
show(v);
|
||||
});
|
||||
show(u);
|
||||
})();
|
||||
Reference in New Issue
Block a user