9d0dde4b57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
532 B
JavaScript
11 lines
532 B
JavaScript
// How it works + Packages: nav, footer, and the live config numbers.
|
|
(async function () {
|
|
const page = location.pathname.replace(/\/$/, '') || '/';
|
|
VBB.renderNav(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);
|
|
})();
|