Network Weekend (Marty 2026-11-17): 2 free post credits a day Fri 11-27 00:00 CT to Tue 12-01 00:00 CT, live VBBShop SKU values on every page and in the chatbot, the network ribbon
weekend.js: the date gate (WEEKEND_NOW test clock), FREE_CREDITS_PER_DAY stays 1. chainskus.js: skus() read every 60 s, so the $10 pack shows what the contract credits (50 once the owner signs setSku, 40 before or after). netdeals.js + /assets/netweekend.js: /api/network-deals and the ribbon; the VBB line is built from live values and drops itself if there is nothing true to say. chatcore render hook, chatbot FACTS/CANNED from live values with a dated weekend fact. qa/weekend.test.mjs 33 pass, chatbot 182, smoke 268. common.js?v=10, my.js?v=6, packages.js?v=2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
const c = await VBB.getConfig().catch(() => ({}));
|
||||
const money = v => '$' + (Number.isInteger(v) ? v : Number(v).toFixed(2));
|
||||
if (c.lookUsd) $('pkLook').textContent = money(c.lookUsd) + ' per banner';
|
||||
// Network Weekend (2026-11-17): the free daily credits as the server grants them today
|
||||
if (c.freeCreditsPerDay > 1 && $('pkFree')) $('pkFree').textContent = 'Network Weekend: every network member (InstantAdPay or LinkSpin) gets ' + c.freeCreditsPerDay + ' free post credits each day they sign in, through Monday 11-30, midnight Central.';
|
||||
const packs = (c.packs || []).slice(0, 2);
|
||||
packs.forEach((p, i) => { const el = $('pkPack' + i); if (!el) return;
|
||||
el.querySelector('[data-pk=credits]').textContent = VBB.n(p.credits); el.querySelector('[data-pk=usd]').textContent = money(p.usd); });
|
||||
|
||||
Reference in New Issue
Block a user