How it works page /how (Marty 2026-11-15: "a How It Works section with maybe a diagram"): three accessible inline SVG diagrams in the daylight look (your ad spreading five levels down with YOUR ad in the matching LEVEL row; what a member page shows; where a $5 Boost goes with the pass-up skip over a non-buyer and the 50% company share), What counts as a view cards, 500-view delivery (ticker star, Boosted places, Network Ad Space after 30 days), Start in 3 steps with CTAs, FAQ with FAQPage schema. Linked from the nav, the footer and the front page ("How a Boost works", "See how it works"); /how reserved from usernames, in the sitemap; css v6, common v7. Smoke 194/194 (new: /how content, links, sitemap, desktop + phone render, no dashes, no console errors).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// royal ticker (Boosted ads starred), "Top ads this week" by verified clicks, 3 steps, the live ledger, contract proof.
|
||||
// Boost: $5 one-time, 500 guaranteed network views (wire.js delivers and counts them), paid in POL through VABShop and split on
|
||||
// chain 10% to each of 5 sponsor levels (pass-up to the next person who has boosted) + 50% company.
|
||||
// Pages: / (front), /<username> (member page), /my, /boost, /ledger, /contract, /promote, /terms, /disclaimer, /privacy, /admin.
|
||||
// Pages: / (front), /<username> (member page), /how, /my, /boost, /ledger, /contract, /promote, /terms, /disclaimer, /privacy, /admin.
|
||||
'use strict';
|
||||
const http = require('http');
|
||||
const fs = require('fs');
|
||||
@@ -156,9 +156,9 @@ function oldLink(u) {
|
||||
}
|
||||
|
||||
const ZONE_404 = 'ls-c6c515'; // LinkSpin zone "ViralAdBlitz not found" (300x250) on Marty's LinkSpin account (2026-11-15); '' = off
|
||||
const PAGES = { '/': 'index.html', '/my': 'my.html', '/boost': 'boost.html', '/ledger': 'ledger.html', '/contract': 'contract.html', '/admin': 'admin.html',
|
||||
const PAGES = { '/': 'index.html', '/how': 'how.html', '/my': 'my.html', '/boost': 'boost.html', '/ledger': 'ledger.html', '/contract': 'contract.html', '/admin': 'admin.html',
|
||||
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html' };
|
||||
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'my', 'boost', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy']);
|
||||
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'how', 'my', 'boost', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy']);
|
||||
const challenges = new Map();
|
||||
const tickets = new Map();
|
||||
const srcHost = raw => { try { const u = new URL(String(raw || '')); if (!/^https?:$/.test(u.protocol)) return ''; const h = u.hostname.toLowerCase().replace(/^www\./, ''); return h === C.site || h.endsWith('.' + C.site) || !h.includes('.') ? '' : h.slice(0, 80); } catch (e) { return ''; } };
|
||||
@@ -227,7 +227,7 @@ const server = http.createServer(async (req, res) => {
|
||||
if (/^\/r\/[^/]+$/.test(p)) { res.writeHead(302, { Location: '/' + encodeURIComponent(decodeURIComponent(p.slice(3))) }); return res.end(); }
|
||||
if (p === '/sitemap.xml') {
|
||||
const day = new Date().toISOString().slice(0, 10);
|
||||
const urls = ['/', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
const urls = ['/', '/how', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' }));
|
||||
return res.end('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' + urls + '</urlset>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user