Wired Wednesday: +25% on $10+ packs wired into a verified-visits campaign; /wednesday bridge page, banners, kit, cards, chatbot (notice + kickoff off until approved)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-29 04:49:34 -05:00
parent 7ce7aeffa4
commit 04fd4db9ca
15 changed files with 331 additions and 11 deletions
+29 -5
View File
@@ -1538,6 +1538,24 @@
} catch (e) {}
}
loadFridayCard(); setInterval(loadFridayCard, 120000);
// Wired Wednesday card on the Overview: the live wave on Wednesdays, the date the rest of the week
async function loadWednesdayCard() {
const card = $('wwCard'); if (!card) return;
if (cardHidden('ww')) { card.hidden = true; return; }
try {
const f = await (await fetch('/api/wednesday')).json(); if (!f.on) { card.hidden = true; return; }
card.hidden = false;
if (f.live && f.today) card.innerHTML = '<div class="card-head"><h3>⚡ It’s Wired Wednesday</h3><span class="sub">+' + f.pct + '% credits, wired into visits, on any $' + f.minUsd + '+ pack today</span></div>'
+ '<p><b>' + f.today.packs + '</b> pack' + (f.today.packs === 1 ? '' : 's') + ' so far today from <b>' + f.today.buyers + '</b> buyer' + (f.today.buyers === 1 ? '' : 's') + ', <b>' + Number(f.today.visits || 0).toLocaleString() + '</b> verified visits wired to members’ pages, <b>' + f.today.polPaid.toFixed(2) + ' POL</b> paid to members in the same transactions. Buy any $' + f.minUsd + '+ package before midnight Central and +' + f.pct + '% is wired into a visits campaign for your invite link, running the moment it settles.</p>'
+ '<button class="btn" type="button" id="wwBuy">Buy my Wednesday pack</button> <a class="btn sec" href="/wednesday" target="_blank" rel="noopener">How it works</a>';
else card.innerHTML = '<div class="card-head"><h3>⚡ Wired Wednesday</h3><span class="sub">every Wednesday</span></div>'
+ '<p>Every Wednesday (Central time), any ad package from $' + f.minUsd + ' up earns <b>+' + f.pct + '% bonus credits</b>, wired straight into a verified-visits campaign for your invite link the moment it settles. Real people on your page, running before you close the tab. Next one: <b>' + (f.nextLabel || 'soon') + '</b>.</p>'
+ '<button class="btn sec" type="button" id="wwBuy">See the packages</button>';
const b = $('wwBuy'); if (b) b.addEventListener('click', () => { const m = document.querySelector('.bo-menu [data-pane="buy"]'); if (m) m.click(); });
cardDismiss(card, 'ww');
} catch (e) {}
}
loadWednesdayCard(); setInterval(loadWednesdayCard, 120000);
// launch-day surprise (Marty, 2026-09-20): PolHunter appears at siteConfig.launchAt, not a minute before.
// The card and the menu entry flip on their own if the dashboard is already open.
let phShown = false;
@@ -2135,6 +2153,11 @@
bwrap.dataset.filled = '1';
// one collapsed accordion per size / use, so the kit stays scannable as it grows
const GROUPS = [
{ title: 'Wired Wednesday · share with your /wednesday link', bridge: { page: 'wednesday', name: 'Wired Wednesday', short: 'Wednesday' }, items: [
{ file: 'iap-wired-wednesday-1200x630.jpg', size: '1200×630 · Wired Wednesday · social card, link previews, Daily News' },
{ file: 'iap-wired-wednesday-1080x1080.jpg', size: '1080×1080 · Wired Wednesday · Instagram, Facebook, Telegram' },
{ file: 'iap-wired-wednesday-728x90.png', size: '728×90 · Wired Wednesday · leaderboard' },
{ file: 'iap-wired-wednesday-300x250.png', size: '300×250 · Wired Wednesday · rectangle' } ] },
{ title: 'Five Dollar Friday · share with your /friday link', friday: true, items: [
{ file: 'iap-five-dollar-friday-v2-1200x630.jpg', size: '1200×630 · Five Dollar Friday · loft, Central-time window' },
{ file: 'iap-five-dollar-friday-dark-1200x630.jpg', size: '1200×630 · Five Dollar Friday · dark studio' },
@@ -2186,16 +2209,17 @@
det.className = 'pb-acc';
det.innerHTML = '<summary><span>' + esc(g.title) + '</span><span class="pb-count">' + g.items.length + (g.items.length === 1 ? ' banner' : ' banners') + '</span></summary><div class="pb-grid"></div>';
const grid = det.querySelector('.pb-grid');
if (g.friday) {
const bridge = g.bridge || (g.friday ? { page: 'friday', name: 'Five Dollar Friday', short: 'Friday' } : null);
if (bridge) {
// the bridge page with this member's referral: any public page + ?ref sets the sponsor cookie
const inv = (document.getElementById('inviteLine') || {}).textContent || '';
const fl = inv.replace(/\/join\/([^/?#]+).*$/, '/friday?ref=$1');
const fl = inv.replace(/\/join\/([^/?#]+).*$/, '/' + bridge.page + '?ref=$1');
const note = document.createElement('div');
note.className = 'pb-note';
note.innerHTML = '<span>Post any of these with your Five Dollar Friday link: <b class="mono"></b></span>';
note.innerHTML = '<span>Post any of these with your ' + esc(bridge.name) + ' link: <b class="mono"></b></span>';
note.querySelector('b').textContent = fl;
const cp = document.createElement('button'); cp.className = 'btn small'; cp.textContent = 'Copy my Friday link';
cp.addEventListener('click', async () => { try { await navigator.clipboard.writeText(fl); IAP.status('Friday link copied.', 'ok'); } catch (e) { IAP.status('Copy failed.', 'bad'); } });
const cp = document.createElement('button'); cp.className = 'btn small'; cp.textContent = 'Copy my ' + bridge.short + ' link';
cp.addEventListener('click', async () => { try { await navigator.clipboard.writeText(fl); IAP.status(bridge.short + ' link copied.', 'ok'); } catch (e) { IAP.status('Copy failed.', 'bad'); } });
note.appendChild(cp);
grid.before(note);
}