Files
viraladblitz/tools/pages.mjs
T
Marty Bostick 001878bdae ViralAdBlitz v1 (viraladblitz.com rebuild, Marty approved 2026-11-14): the network's text-ad home, local build, not deployed
- Free text ad for network members (InstantAdPay / LinkSpin sign-in or wallet, membership through the hub), one per member
- Member pages viraladblitz.com/<username>: own ad + the first 5 people above in the hub line with a live ad (by place) + 2 Boosted places
- Front page: amber ticker (Boosted starred), Top ads this week by verified clicks, today's numbers, ledger, contract proof
- Verified visitors / views / clicks (ticket + dwell + per-visitor dedupe + per-connection cap + bot filter, owner excluded)
- Boost $5 = 500 guaranteed views through VABShop: keeper-signed EIP-712 line voucher from the hub line, watcher, delivery
  counted per verified view with an audit row each, Network Ad Space text-ad finishing after 30 days (vabnas.js)
- Trust pack: /ledger, /contract, toasts, Telegram card per Boost (once), Terms / Earnings Disclaimer / Privacy (TrustClickz),
  network footer from the hub with tracked links, promo kit (21 creatives) + /promote, LinkSpin zone placeholders, hub report
- Old YFW links via the oldrefs map (admin load route); docstore MySQL documents + row tables
- qa/smoke.mjs 162/162 (stand-in hub, chain, Telegram, NAS; Playwright desktop + phone), qa/chain.mjs 20/20 (real VABShop on anvil)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:52:03 -06:00

289 lines
31 KiB
JavaScript

// Writes public/*.html from one place (the legal.py idea from the trust pack: one source of facts per site). Run after editing:
// node tools/pages.mjs
// Copy rules: no em dashes, no income promises, "Advertising, not income. Nothing is promised.", never an earnings cap,
// wallets = "SafePal or any other crypto wallet" (never recommend MetaMask), one-time Boosts, never a subscription.
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const PUB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'public');
const SITE = 'https://viraladblitz.com';
const V = { css: 3, common: 3, page: 3 };
const F = { co: 'TrustClickz', addr: '615 Green Valley Drive, Moody, AL 35004', updated: 'November 14, 2026', boostUsd: 5, views: '500', days: 30 };
const FONTS = 'https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;600&display=swap';
function head(o) {
const t = o.title, d = o.desc, url = SITE + o.path;
return `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>${t}</title>
<meta name="description" content="${d}">
${o.noindex ? '<meta name="robots" content="noindex">' : `<link rel="canonical" href="${url}">`}
<meta property="og:type" content="website">
<meta property="og:site_name" content="ViralAdBlitz">
<meta property="og:title" content="${t}">
<meta property="og:description" content="${d}">
<meta property="og:url" content="${url}">
<meta property="og:image" content="${SITE}/art/og-share.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="ViralAdBlitz: the network's text ad wire">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="${t}">
<meta name="twitter:description" content="${d}">
<meta name="twitter:image" content="${SITE}/art/og-share.png">
${o.ld ? '<script type="application/ld+json">' + JSON.stringify(o.ld) + '</script>\n' : ''}<meta name="theme-color" content="#0a1712">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="${FONTS}">
<link rel="stylesheet" href="/assets/vab.css?v=${V.css}">
</head>
<body>
`;
}
const tail = scripts => '<script src="/assets/common.js?v=' + V.common + '"></script>\n' + scripts.map(s => '<script src="/assets/' + s + '?v=' + V.page + '"></script>').join('\n') + '\n</body>\n</html>\n';
const page = (file, o, body, scripts) => fs.writeFileSync(path.join(PUB, file), head(o) + body + tail(scripts));
// ---------------------------------------------------------------- front page
page('index.html', { path: '/', title: 'ViralAdBlitz | Your text ad on your whole team\'s pages, five levels deep',
desc: 'The network\'s text ad wire. Post one free text ad: it shows on your page and on the page of everyone you bring in, five levels down. Live ticker, top ads by verified clicks, a $5 one-time Boost.',
ld: { '@context': 'https://schema.org', '@graph': [{ '@type': 'WebSite', name: 'ViralAdBlitz', url: SITE + '/' }, { '@type': 'Organization', name: 'ViralAdBlitz', url: SITE + '/', logo: SITE + '/art/icon-192.png' }] } }, `<main class="wrap">
<section class="hero">
<div class="copy">
<p class="kicker">The network's text ad wire</p>
<h1>Your ad runs on your whole team's pages. Five levels deep.</h1>
<p class="lead">Write one text ad: a headline, two lines and your link. It shows on your page and on the page of everyone you bring in, and everyone they bring in, five levels down. Free to join for network members.</p>
<div class="row"><a class="cta" href="/my">Post my free text ad</a><a class="btn-line" href="/boost">How a Boost works</a></div>
</div>
<div class="wirebox" aria-label="Today on the wire">
<span class="lab">TODAY ON THE WIRE</span>
<div class="kv"><span>Ad views</span><b id="stViews">0</b></div>
<div class="kv"><span>Verified clicks</span><b id="stClicks">0</b></div>
<div class="kv"><span>Boosts sold</span><b id="stBoosts">0</b></div>
<div class="kv"><span>Ads live</span><b id="stAds">0</b></div>
</div>
</section>
<section id="board">
<div class="shead"><h2>Top ads this week</h2><span class="side">ranked by verified clicks</span></div>
<div class="cards" id="boardCards"><p class="muted">Loading the board...</p></div>
</section>
<section class="steps" aria-label="How it works">
<div class="step"><span class="n">1</span><b>Post one free text ad</b><span>Sign in with your InstantAdPay or LinkSpin account. A headline, two lines and your link.</span></div>
<div class="step"><span class="n">2</span><b>Share your page</b><span>Your page shows your ad and the five people above you. Every visit shows six ads.</span></div>
<div class="step"><span class="n">3</span><b>Your ad spreads down</b><span>Everyone you bring in shows your ad on their page, five levels deep.</span></div>
</section>
<section id="ledger">
<div class="shead"><h2>Live ledger</h2><span class="side">every Boost and every payout, straight from the chain</span></div>
<div class="tscroll"><table class="t" id="ledgerMini"><thead><tr><th>TIME CT</th><th>EVENT</th><th>MEMBER</th><th>POL</th><th>TX</th></tr></thead><tbody><tr><td colspan="5" class="muted">Loading the ledger...</td></tr></tbody></table></div>
<p class="small"><a href="/ledger">Open the full ledger</a></p>
</section>
<section class="box" id="contract">
<div class="txt"><span class="lab">CONTRACT PROOF</span><span class="big">Paid in the same transaction. Nothing held, nothing to withdraw.</span><span class="addr" id="cAddr">Polygon · the contract address shows here once it is live</span></div>
<a class="btn-line" id="cLink" href="/contract">Check the contract</a>
</section>
<p class="muted small">A Boost buys advertising, not income. Nothing is promised.</p>
<div id="status" class="note" hidden></div>
</main>
`, ['front.js']);
// ---------------------------------------------------------------- member page
page('member.html', { path: '/', title: 'A member\'s page | ViralAdBlitz', desc: 'Text ads recommended by a ViralAdBlitz member and the five people above them in the network.', noindex: false }, `<main class="wrap">
<p class="kicker" id="who">RECOMMENDED</p>
<div id="own"><p class="muted">Loading...</p></div>
<section>
<div class="shead"><h2 id="teamHead">Also recommended by the team</h2><span class="side">the five people above them in the network</span></div>
<div class="levels" id="levels"></div>
</section>
<section id="boostedSec" hidden>
<div class="shead"><h2>Boosted across the network</h2><span class="side">members who boosted their ad</span></div>
<div class="cards" id="boosted"></div>
</section>
<section class="joinbar" id="join">
<div class="txt"><b id="joinHead">Want your ad on pages like this one?</b><p id="joinText">Join free. Your ad goes on your own page and on every page you bring in, five levels down.</p></div>
<div class="row" style="margin:0"><a class="cta" id="joinBtn" href="/my">Join free</a><a class="btn-line" href="/my">I am a member: sign in</a></div>
</section>
<p class="muted small">Advertising, not income. Nothing is promised.</p>
<div id="status" class="note" hidden></div>
</main>
`, ['member.js']);
// ---------------------------------------------------------------- my page
page('my.html', { path: '/my', title: 'My page | ViralAdBlitz', desc: 'Post or edit your free text ad, share your page, and follow your Boost.', noindex: true }, `<main class="wrap">
<section class="hero"><div class="copy"><p class="kicker">Your desk</p><h1>My page</h1><p class="lead">One free text ad for network members. Share your page and your ad spreads five levels down.</p></div></section>
<section id="signin" hidden>
<div class="card">
<h2>Sign in</h2>
<p>Sign in with your network account. Your username and your sponsor line come with you.</p>
<div class="signin"><a class="cta" id="viaIap" href="/sso/start?mode=go&amp;via=iap&amp;to=%2Fmy">Sign in with InstantAdPay</a><a class="cta" id="viaLs" href="/sso/start?mode=go&amp;via=linkspin&amp;to=%2Fmy">Sign in with LinkSpin</a><button class="btn-line" id="viaWallet" type="button">Sign in with your wallet</button></div>
<p class="small muted">Wallet sign-in works with SafePal or any other crypto wallet. It is a free signature that cannot move funds.</p>
<p class="small">Not in the network yet? <a id="joinLink" href="https://instantadpay.com/" target="_blank" rel="noopener">Join InstantAdPay free</a>, then come back and sign in through it.</p>
</div>
</section>
<section id="dash" hidden>
<div class="stats" id="stats"></div>
<div class="card" id="pageCard" style="margin-top:16px"></div>
<div class="card" id="adCard" style="margin-top:16px">
<h2 id="adHead">Your text ad</h2>
<p class="small" id="adNote">A headline, two lines and your https link. No link shorteners.</p>
<form class="form" id="adForm">
<label class="f">Headline <input id="fHead" maxlength="60" autocomplete="off" required><span class="cnt" id="cHead"></span></label>
<label class="f">First line <input id="fL1" maxlength="90" autocomplete="off" required><span class="cnt" id="cL1"></span></label>
<label class="f">Second line (optional) <input id="fL2" maxlength="90" autocomplete="off"><span class="cnt" id="cL2"></span></label>
<label class="f">Your link <input id="fLink" maxlength="600" autocomplete="off" inputmode="url" placeholder="https://" required></label>
<div class="row" style="margin:0"><button class="btn-green" id="adSave" type="submit">Post my free text ad</button><span class="small muted">Tracking codes work: {clickid} and {placement} are filled on every click.</span></div>
</form>
</div>
<div class="card" id="lineCard" style="margin-top:16px"><h2>Your line</h2><div id="line"></div></div>
<div class="card" id="boostCard" style="margin-top:16px"><h2>Your Boosts</h2><div id="boosts"></div><div class="row"><a class="cta" href="/boost">Boost my ad</a></div></div>
<div class="card" id="earnCard" style="margin-top:16px"><h2>Paid to you</h2><div id="earned"></div></div>
<div class="row"><button class="btn-quiet" id="signout" type="button">Sign out</button></div>
</section>
<div id="status" class="note" hidden></div>
</main>
`, ['wallet.js', 'my.js']);
// ---------------------------------------------------------------- boost
page('boost.html', { path: '/boost', title: 'Boost | ViralAdBlitz', desc: 'A $5 one-time Boost buys 500 guaranteed network views for your text ad, a starred spot on the live ticker and extra places on member pages. Split on-chain five levels up your line.' }, `<main class="wrap">
<section class="hero" style="align-items:stretch">
<div class="copy" style="display:flex;flex-direction:column;gap:14px">
<p class="kicker">One-time, never a subscription</p>
<h1>Boost your text ad across the network</h1>
<p class="lead" style="margin:0">A Boost puts your ad in front of more people: <b id="bViews">500</b> guaranteed network views, a starred spot on the live ticker, and an extra place on the five-level pages. Paid in POL on Polygon.</p>
<p class="small muted" style="margin:0">Views count only from verified visitors: a real browser that keeps the page open and visible for a few seconds, once per visitor per day. If the views are not all delivered on ViralAdBlitz within <span id="bDays">30</span> days, the rest is finished through Network Ad Space.</p>
</div>
<div class="price">
<span class="lab">BOOST PACK</span>
<span class="amt" id="bUsd">$5</span>
<span class="pol" id="bPol">about ... POL at today's price</span>
<ul><li><span id="bViews2">500</span> guaranteed network views</li><li>Starred spot on the live ticker</li><li>Extra place on the five-level pages</li></ul>
<label class="qty">How many <select id="bQty"></select></label>
<button type="button" class="btn-green" id="bBuy">Boost with SafePal or any other crypto wallet</button>
<span class="small" id="bWho" style="color:var(--paper-sub)"></span>
</div>
</section>
<section>
<div class="shead"><h2>Where each Boost goes, in the same transaction</h2></div>
<div class="splits">
<div class="split"><span>LEVEL 1</span><b>10%</b><i>your sponsor</i></div>
<div class="split"><span>LEVEL 2</span><b>10%</b><i>their sponsor</i></div>
<div class="split"><span>LEVEL 3</span><b>10%</b><i>next up</i></div>
<div class="split"><span>LEVEL 4</span><b>10%</b><i>next up</i></div>
<div class="split"><span>LEVEL 5</span><b>10%</b><i>next up</i></div>
<div class="split co"><span>COMPANY</span><b>50%</b><i>runs the network</i></div>
</div>
<p class="sub" style="max-width:820px">Levels follow your sponsor line in the network. Someone in your line who has not bought a Boost is passed over, and their share goes up to the next person who has. The contract looks up to 20 places up the line; a share nobody qualifies for goes to the company. Nothing is held and there is nothing to withdraw. A Boost buys advertising, not income: you are paid only when people in your team buy Boosts, and nothing is promised.</p>
</section>
<section class="box">
<div class="txt"><span class="lab">YOUR LINE IS SET ONCE</span><span class="big">Your sponsor line comes from the network hub.</span><span class="sub">On your first Boost the site signs your line and the contract records it. After that it never changes, so every later Boost pays the same people.</span></div>
</section>
<section style="display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start">
<div style="flex:999 1 460px;min-width:0;display:flex;flex-direction:column;gap:10px">
<h2>Every sale is posted in Telegram</h2>
<p class="sub" style="margin:0">Each Boost posts a card to the network's Telegram with the week's stats and a link to verify the transaction, and every payout gets its own line. The same events show as toasts on the site and rows in the live ledger.</p>
</div>
<div class="card" style="flex:1 1 360px"><span class="small muted">Telegram · payments topic</span><p style="margin:8px 0 0"><b style="font-family:var(--disp);color:var(--cream);font-size:20px">ViralAdBlitz</b><br><span class="mono" style="color:var(--amber)">@member boosted an ad</span><br><span class="mono small">This week: Boosts, ads live, verified clicks</span></p><p class="small">Level payouts in the same transaction. <a href="/ledger">Verify</a></p></div>
</section>
<div id="status" class="note" hidden></div>
</main>
`, ['wallet.js', 'buy.js', 'boost.js']);
// ---------------------------------------------------------------- ledger
page('ledger.html', { path: '/ledger', title: 'Live Ledger | ViralAdBlitz', desc: 'Every ViralAdBlitz Boost and every level payout, read from the Polygon contract, with a link to verify each transaction.' }, `<main class="wrap">
<section class="hero"><div class="copy"><p class="kicker">Straight from the chain</p><h1>Live ledger</h1><p class="lead">Every Boost and every payout. Each row links to its transaction on Polygonscan, so you can check it yourself.</p></div></section>
<div class="stats" id="totals"></div>
<section>
<div class="tscroll"><table class="t" id="rows"><thead><tr><th>TIME CT</th><th>BOOST</th><th>PAID IN THE SAME TRANSACTION</th><th>TX</th></tr></thead><tbody><tr><td colspan="4" class="muted">Loading the ledger...</td></tr></tbody></table></div>
</section>
<p class="muted small">Levels follow the buyer's sponsor line. Someone who has not bought a Boost is passed over and their share goes up to the next person who has. Advertising, not income. Nothing is promised.</p>
<div id="status" class="note" hidden></div>
</main>
`, ['ledger.js']);
// ---------------------------------------------------------------- contract
page('contract.html', { path: '/contract', title: 'Contract Proof | ViralAdBlitz', desc: 'The ViralAdBlitz Boost contract on Polygon: owner, company, keeper and the fixed five-level split, read live from the chain.' }, `<main class="wrap">
<section class="hero"><div class="copy"><p class="kicker">Read live from Polygon</p><h1>Contract proof</h1><p class="lead">Every Boost is paid to one smart contract on Polygon. It splits the payment in the same transaction. Check every number here yourself.</p></div></section>
<div class="card"><h2>The contract</h2><table class="facts" id="facts"><tbody><tr><td class="muted">Reading the contract...</td></tr></tbody></table></div>
<section>
<div class="shead"><h2>Where each Boost goes</h2></div>
<div class="splits">
<div class="split"><span>LEVEL 1</span><b>10%</b><i>nearest qualified</i></div><div class="split"><span>LEVEL 2</span><b>10%</b><i>next qualified</i></div>
<div class="split"><span>LEVEL 3</span><b>10%</b><i>next qualified</i></div><div class="split"><span>LEVEL 4</span><b>10%</b><i>next qualified</i></div>
<div class="split"><span>LEVEL 5</span><b>10%</b><i>next qualified</i></div><div class="split co"><span>COMPANY</span><b>50%</b><i>plus any share nobody qualifies for</i></div>
</div>
<p class="sub">The percentages are constants in the contract code: nobody can change who gets what share. There is no owner withdraw. The contract keeps nothing: if a payment cannot be delivered, it waits in the contract for that wallet to claim, and nobody else can take it. Anything sent above the price comes back in the same transaction.</p>
</section>
<div class="card"><h2>Check it yourself</h2><ol class="sub">
<li>Open the contract on Polygonscan (link above) and read its verified source code.</li>
<li>Choose <b>Read Contract</b> and compare owner, company and keeper with this page.</li>
<li>Open any Boost in the <a href="/ledger">live ledger</a> and look at its <b>Logs</b>: one Purchase event, one Paid event per level and one for the company, and a PassedOver event for anyone in the line who had not boosted.</li>
</ol></div>
<div id="status" class="note" hidden></div>
</main>
`, ['contract.js']);
// ---------------------------------------------------------------- promote
page('promote.html', { path: '/promote', title: 'Promote | ViralAdBlitz', desc: 'Your ViralAdBlitz links, creatives in every common size, and copy you can paste anywhere.' }, `<main class="wrap">
<section class="hero"><div class="copy"><p class="kicker">Share the wire</p><h1>Promote ViralAdBlitz</h1><p class="lead">Your links, creatives in every common size, and copy you can paste anywhere. Everything carries your network username.</p></div></section>
<div class="card" id="whoCard"><h3>Your network username</h3>
<p class="small" id="whoNote">Your InstantAdPay or LinkSpin username works here. Sign in on <a href="/my">My page</a> and it fills in by itself.</p>
<form class="kit-who" id="whoForm"><input id="whoIn" autocomplete="off" spellcheck="false" maxlength="42" placeholder="your username"><button class="cta" type="submit">Use it</button></form></div>
<div id="status" class="note" hidden></div>
<div id="kit" style="display:flex;flex-direction:column;gap:16px"><p class="muted">Loading the kit...</p></div>
</main>
`, ['kitpage.js', 'promote.js']);
// ---------------------------------------------------------------- admin
page('admin.html', { path: '/admin', title: 'Admin | ViralAdBlitz', desc: 'ViralAdBlitz admin.', noindex: true }, `<main class="wrap">
<section class="hero"><div class="copy"><h1>Admin</h1></div></section>
<div class="card"><form class="kit-who" id="tokForm"><input id="tok" type="password" autocomplete="off" placeholder="admin token"><button class="cta" type="submit">Load</button></form></div>
<div class="card"><h3>Status</h3><pre class="kit-pre" id="statusOut">Enter the token.</pre></div>
<div class="card"><h3>Boosts</h3><div class="tscroll"><table class="t" id="boostRows"><tbody></tbody></table></div></div>
<div class="card"><h3>Member lookup</h3><form class="kit-who" id="lookForm"><input id="look" placeholder="wallet, #ad id or username"><button class="cta" type="submit">Look up</button></form><pre class="kit-pre" id="lookOut"></pre></div>
<div class="card"><h3>Ad status</h3><form class="kit-who" id="adForm"><input id="adId" placeholder="ad id"><input id="adStatus" placeholder="live | paused | removed"><input id="adNoteIn" placeholder="note"><button class="cta" type="submit">Set</button></form></div>
<div class="card"><h3>Old site links</h3><p class="small">JSON file {"oldrefs": {"old username": "network username"}} replaces the whole map.</p><input type="file" id="oldFile" accept="application/json"><pre class="kit-pre" id="oldOut"></pre></div>
<div id="status" class="note" hidden></div>
</main>
`, ['admin.js']);
// ---------------------------------------------------------------- legal (one source of facts)
const legal = (file, p, title, lead, cards) => page(file, { path: p, title: title + ' | ViralAdBlitz', desc: lead }, `<main class="wrap legal">
<section class="hero"><div class="copy"><h1>${title}</h1><p class="lead">${lead}</p><p class="muted small">Last updated ${F.updated}</p></div></section>
${cards.map(c => ` <div class="card"><h2>${c[0]}</h2>${c[1]}</div>`).join('\n')}
</main>
`, ['static.js']);
const CONTACT = ['Contact', `<p>Questions, problems or a request about your data: <a href="https://instantadpay.com/support" target="_blank" rel="noopener">network support</a>, or write to ${F.co}, ${F.addr}.</p>`];
legal('terms.html', '/terms', 'Terms and Conditions', 'The rules for using ViralAdBlitz, in plain English.', [
['Who we are', `<p>ViralAdBlitz (viraladblitz.com) is run by ${F.co}, ${F.addr}. It is part of the network: one network account works across InstantAdPay, LinkSpin, Downline Banners, Viral Banner Blitz, ViralAdBlitz, Stack POL and Earners Corner. By using ViralAdBlitz you agree to these terms.</p>`],
['What ViralAdBlitz is', `<p>ViralAdBlitz is the network's home for text ads. A network member posts one text ad: a headline, two lines and a link. Each member has a page that shows their own ad and the ads of the five people above them in their network sponsor line, so an ad appears on the pages of the people its owner brings in, five levels down. The front page shows a live ticker of the newest ads and a weekly board of the top ads by verified clicks.</p>`],
['Your free text ad', `<p>One text ad is free for each network member (InstantAdPay or LinkSpin, checked with the network hub). You can edit it at any time. There is nothing to pay to post it.</p>`],
['What a Boost is', `<p>A Boost is a single, one-time purchase of $${F.boostUsd} for your text ad. It buys ${F.views} guaranteed network views, a starred spot on the live ticker while the views are delivered, and an extra place on member pages. You can buy more than one; each adds its own ${F.views} views.</p><p>A view counts only from a verified visitor: a real browser that keeps a ViralAdBlitz page open and visible for a few seconds, once per visitor per ad each day, never your own views, never bots. Views are delivered on ViralAdBlitz pages first. If a Boost's views are not all delivered within ${F.days} days, the rest is delivered through Network Ad Space, a network ad site, as a text ad with the same headline, lines and link.</p><p>Boosts are paid in POL on Polygon at the live Chainlink POL/USD price the contract reads when you buy. Anything you send above the price comes back to you in the same transaction. Nothing renews and nothing is ever billed again. There are no subscriptions.</p><p>What you buy is advertising for your own text ad. It is not income, an investment or a share of anything.</p>`],
['How a payment is split', `<p>The ViralAdBlitz contract splits each Boost in the same transaction it is paid: 10% to each of five levels up the buyer's sponsor line and 50% to ViralAdBlitz.</p><p>Only someone who has bought at least one Boost can receive a level share. Someone in the line who has not is passed over, and the share goes up to the next person who has. The contract looks up to 20 places up the line for five such people; a share nobody qualifies for goes to ViralAdBlitz.</p><p>Your sponsor line comes from the network hub. On your first Boost the site signs it and the contract records it link by link. A link already recorded is never changed, so every later Boost pays along the same line. Members of the line without a wallet in the network cannot receive payments and are left out of the recorded line.</p><p>The split is fixed in the contract code and there is no owner withdraw. The contract keeps nothing: each share goes straight to the person's wallet in the buyer's transaction. If a payment cannot be delivered, it waits in the contract for that wallet to claim, and nobody else can take it.</p>`],
['Nothing is promised', `<p>We do not promise or guarantee any income, payout or result. A level share is paid only when someone in your team chooses to buy a Boost. Read the <a href="/disclaimer">Earnings Disclaimer</a>.</p>`],
['No refunds', `<p>Payments are made on the blockchain and are final once confirmed. We cannot reverse, cancel or refund them. Check the amount before you confirm in your wallet. If your ad is removed for breaking these terms, the views left on its Boosts are not delivered or refunded.</p>`],
['Crypto risk', `<ul><li>The price of POL moves. The dollar value of a payment can be higher or lower later than when it was paid.</li><li>You are responsible for your wallet and its recovery phrase. Nobody, including us, can recover a lost wallet or reverse a payment sent from it.</li><li>Blockchain transactions are final. Each one costs a small network fee (gas) in POL, paid to the network, not to us.</li><li>Use SafePal or any other crypto wallet you trust, and never share your recovery phrase with anyone. We will never ask for it.</li></ul>`],
['Text ad rules', `<p>Your ad and its link must be your own or ones you have the right to use, and the link must lead to a lawful page that loads. No adult content, malware, phishing, deceptive offers, hate, or anything illegal where you or your visitors live. No link shorteners. We may pause or remove an ad that breaks these rules and close the account behind it.</p>`],
['Fair use', `<p>Views and clicks count only from verified visitors, and only a few visitors per internet connection count each day. Bots, crawlers and repeat visits do not count. We may refuse visits or clicks we judge not to be real, and may remove anyone who fakes traffic from the board. Do not try to break, overload or game the site.</p>`],
['Your account', `<p>You sign in with your wallet or through InstantAdPay or LinkSpin. Your network account, username and sponsor are shared across the network through the network hub, as described in the <a href="/privacy">Privacy Policy</a>. You must be old enough to make a binding agreement where you live, and using crypto must be legal there.</p>`],
['The service', `<p>The site is provided as it is. We work to keep it running but cannot promise it will always be available or free of errors. The smart contract runs on Polygon on its own; its rules are public and can be checked on the <a href="/contract">contract page</a>. We may change features, the price of future Boosts or these terms; changes apply from the date they are posted here.</p>`],
['Limits', `<p>As far as the law allows, we are not responsible for losses caused by the blockchain, your wallet, the price of POL, third-party websites in ads, or events outside our control, and our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.</p>`],
CONTACT]);
legal('disclaimer.html', '/disclaimer', 'Earnings Disclaimer', 'Advertising, not income. Nothing is promised.', [
['What you are buying', `<p>A ViralAdBlitz Boost is advertising for your own text ad: guaranteed views, a ticker spot and member-page places. It is not an investment, a business opportunity, a share of profits or a promise of any payment.</p>`],
['Level shares are not promised', `<p>The contract pays a level share only when someone in your team chooses to buy a Boost. Nobody is required to buy one, and we do not know or promise whether anyone in your team ever will. Many members receive nothing, and many receive less than they spend. Your results depend on other people's free choices, not on anything we do.</p>`],
['No examples are promises', `<p>Any number on this site, in the ledger or in a Telegram post shows what really happened in one transaction. It is not a typical result and not a forecast of what you will receive.</p>`],
['Prices and taxes', `<p>Boosts are priced in US dollars and paid in POL, whose price moves. Anything you receive is in POL and its dollar value can change. You are responsible for any taxes on what you receive where you live.</p>`],
['Who to ask', `<p>${F.co}, ${F.addr}. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>.</p>`]]);
legal('privacy.html', '/privacy', 'Privacy Policy', 'What ViralAdBlitz keeps about you, why, and for how long.', [
['Who we are', `<p>ViralAdBlitz is run by ${F.co}, ${F.addr}.</p>`],
['What we keep', `<ul><li>Your wallet address and network username, and your text ad (it is public: that is its purpose).</li><li>Your network record from the network hub: your hub id and your sponsor line. ViralAdBlitz does not store your email. When you sign in through InstantAdPay or LinkSpin, your email is used once to check your network membership and is not kept.</li><li>Your Boosts, which are public on the Polygon blockchain, and how many of their views have been delivered.</li><li>For counting real views and clicks: a one-way code made from your internet address and browser type (never the address itself), the page, and the site that sent you. Visit and click records are kept 15 days; the records of each view counted toward a Boost are kept 120 days so delivery can be checked.</li></ul>`],
['Cookies', `<p>A sign-in cookie (7 days), a cookie that remembers whose page you came from (30 days), and short-lived cookies for signing in through the network. No advertising or tracking cookies of our own.</p>`],
['Who else sees data', `<ul><li>The Polygon blockchain: every Boost and payment is public there, by its nature.</li><li>The network hub, which keeps one record per person across the network sites (username, wallet, sponsor).</li><li>Our Telegram payments topic: each Boost is posted with the buyer's username (or a shortened wallet) and the amounts paid.</li><li>Services the pages load: Google Fonts, WalletConnect (Reown) when you connect a wallet, LinkSpin network ad zones, and Network Ad Space for finishing Boost views.</li></ul><p>We do not sell personal data.</p>`],
['Your choices', `<p>You can edit your ad at any time, or ask us to remove it and your account here. Records on the blockchain cannot be removed by anyone.</p>`],
CONTACT]);
console.log('pages written');