Blog surfaced (header nav, home strip, footer) + five seed articles with kit-derived covers and the seed/publish tooling; zones: network tier default OFF until NAS is switched on at the end of testing
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,7 @@ const J = { db: null, FILE: () => path.join(DATA_DIR, 'zones.json'),
|
||||
function init(opts) { DATA_DIR = opts.dataDir; ads = opts.ads; siteHost = opts.siteHost || siteHost; J.load(); }
|
||||
const norm = e => String(e || '').trim().toLowerCase();
|
||||
const DAY = 86400000;
|
||||
function settings() { let s = {}; try { s = JSON.parse(fs.readFileSync(path.join(DATA_DIR, 'zone-rates.json'), 'utf8')); } catch (e) {} return Object.assign({ viewsPerCredit: 5, nasViewsPerCredit: 10, capPerVisitorDay: 50, houseOn: 1, nasOn: 1 }, s); }
|
||||
function settings() { let s = {}; try { s = JSON.parse(fs.readFileSync(path.join(DATA_DIR, 'zone-rates.json'), 'utf8')); } catch (e) {} return Object.assign({ viewsPerCredit: 5, nasViewsPerCredit: 10, capPerVisitorDay: 50, houseOn: 1, nasOn: 0 }, s); } // nasOn default OFF: the network tier in zones is switched on with NAS at the end of testing (Marty 2026-10-09)
|
||||
// the document an NAS fallback renders in: our own frame, so the NAS tag's document.write lands in a page we control
|
||||
function nasFrame(size) { const wh = SIZES[size]; if (!wh || !NAS_SIZES.has(size)) return null; return '<!doctype html><html><head><meta charset="utf-8"><meta name="robots" content="noindex"><style>html,body{margin:0;padding:0;background:transparent;overflow:hidden}body{width:' + wh[0] + 'px;height:' + wh[1] + 'px}img{border:0;display:block}</style></head><body>' + NAS_TAG(wh[0], wh[1]) + '</body></html>'; }
|
||||
// Earning status (Marty, 2026-09-29): a zone earns only once its first WARMUP on-site views have landed with at least
|
||||
|
||||
Reference in New Issue
Block a user