Guides (Marty 2026-11-17): /guides index plus Is it legit (VBBShop 0x36F6...07D7, 30/10/60 split from the contract constants, ledger, what the owner can and cannot change), Getting the most from your free account, How the weekly prize boards work (no cap shown) and the FAQ (from the chatbot answers); Guides in nav and footer, sitemap, a More guides card on /how, chatbot FAQ entry + PAGES fact; live values via static.js data-k; common.js?v=11, vbb.css?v=8; smoke checks for every guide
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
// How it works + Packages: nav, footer, and the live config numbers.
|
||||
// How it works, Packages and the Guides pages (2026-11-17): nav, footer, and the live config numbers.
|
||||
(async function () {
|
||||
const page = location.pathname.replace(/\/$/, '') || '/';
|
||||
VBB.renderNav(page); VBB.renderFooter();
|
||||
VBB.renderNav(page.indexOf('/guides') === 0 ? '/guides' : page); VBB.renderFooter();
|
||||
const c = await VBB.getConfig().catch(() => ({}));
|
||||
const set = (k, v) => document.querySelectorAll('[data-k=' + k + ']').forEach(el => { el.textContent = v; });
|
||||
if (c.perShift) set('perShift', c.perShift);
|
||||
if (c.viewsPerCycle != null) set('views', VBB.n(c.viewsPerCycle));
|
||||
if (c.visitSeconds) set('secs', c.visitSeconds);
|
||||
// Guides (2026-11-17): free credits a day (Network Weekend aware, from the server), the free-credit bank, waiting banners, the look, the packs
|
||||
if (c.freeCreditsPerDay) set('freeDay', c.freeCreditsPerDay === 1 ? 'one free post credit' : c.freeCreditsPerDay + ' free post credits');
|
||||
if (c.freeCreditCap) set('freeCap', c.freeCreditCap);
|
||||
if (c.maxQueued) set('maxQueued', c.maxQueued);
|
||||
// package prices from config (the Packages page has its own script, packages.js, with the Buy buttons)
|
||||
const money = v => '$' + (Number.isInteger(v) ? v : Number(v).toFixed(2));
|
||||
const pp = document.getElementById('pkPacks');
|
||||
if (pp && c.packs && c.packs.length) pp.innerHTML = c.packs.map(p => '<li>' + VBB.n(p.credits) + ' post credits for ' + money(p.usd) + '</li>').join('');
|
||||
if (c.lookUsd) set('lookUsd', money(c.lookUsd));
|
||||
if (c.packs && c.packs.length) set('packsText', c.packs.map(p => VBB.n(p.credits) + ' post credits for ' + money(p.usd)).join(' or '));
|
||||
const lk = document.getElementById('pkLook'); if (lk && c.lookUsd) lk.textContent = money(c.lookUsd) + ' per banner';
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user