diff --git a/public/admin.html b/public/admin.html index 26bd578..9f48367 100644 --- a/public/admin.html +++ b/public/admin.html @@ -22,7 +22,7 @@ - +
@@ -35,7 +35,7 @@

Old site links

JSON file {"oldrefs": {"old username": "network username"}} replaces the whole map.

- - + + diff --git a/public/assets/common.js b/public/assets/common.js index 61ffd05..8ae2465 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -18,7 +18,7 @@ window.VAB = (function () { const CHECK = ''; function renderNav(active) { const nav = document.createElement('nav'); nav.className = 'top'; - const links = [['/#board', 'Top ads'], ['/my', 'My page'], ['/boost', 'Boost'], ['/ledger', 'Ledger'], ['/contract', 'Contract'], ['/promote', 'Promote']]; + const links = [['/#board', 'Top ads'], ['/how', 'How it works'], ['/my', 'My page'], ['/boost', 'Boost'], ['/ledger', 'Ledger'], ['/contract', 'Contract'], ['/promote', 'Promote']]; nav.innerHTML = '
' + MARK + 'VIRALADBLITZ' + 'Post my free text ad
'; @@ -102,7 +102,7 @@ window.VAB = (function () { const f = document.createElement('footer'); f.className = 'foot'; f.innerHTML = '

ViralAdBlitz, the network\'s text ad wire

' + '

A Boost buys advertising, not income. Nothing is promised.

' - + '

Front page · My page · Boost · Promote

' + + '

Front page · How it works · My page · Boost · Promote

' + '' + '

TrustClickz · 615 Green Valley Drive, Moody, AL 35004

'; document.body.appendChild(f); diff --git a/public/assets/how.js b/public/assets/how.js new file mode 100644 index 0000000..6dc4256 --- /dev/null +++ b/public/assets/how.js @@ -0,0 +1,2 @@ +// How it works (/how): a plain page with nav, the ticker (its views count like any page) and the footer. +(function () { VAB.renderNav('/how'); VAB.renderFooter(); VAB.wire('other').catch(() => {}); })(); diff --git a/public/assets/vab.css b/public/assets/vab.css index 70ca954..467d0ef 100644 --- a/public/assets/vab.css +++ b/public/assets/vab.css @@ -380,3 +380,58 @@ footer.foot .here{color:var(--ink);font-weight:700} .btn{font:600 13px var(--body);padding:8px 12px;border:2px solid var(--ink);color:var(--ink);background:#fff;cursor:pointer;text-decoration:none;display:inline-block} .btn:hover{background:var(--tint);color:var(--ink)} .btn.sec{border-color:var(--line);color:var(--ink2)} .btn.small{font-size:12.5px;padding:6px 10px} + +/* How it works page (/how): diagrams are inline SVG, text styled here so it follows the type scale */ +.shead a.side{color:var(--link);font-weight:600} +.jump{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0;padding:0;list-style:none} +.jump a{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.4);color:#fff;text-decoration:none;padding:9px 14px;font:600 14px var(--body);clip-path:var(--cuts)} +.jump a b{font:700 12px var(--mono);color:var(--gold)} +.jump a:hover{background:rgba(255,255,255,.2);color:#fff} +.hsec{scroll-margin-top:16px} +.hsec .shead .kicker{margin:0 0 6px} +.hsplit{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start} +.hsplit>.dg{flex:1 1 400px;max-width:520px} +.htxt{flex:999 1 340px;min-width:0;display:flex;flex-direction:column;gap:18px} +.dg{background:var(--card);border:1px solid var(--line);padding:22px;clip-path:var(--cut);min-width:0;margin:0} +.dg.sm{max-width:440px;width:100%;border-top:6px solid var(--blue2)} +.dg svg{display:block;width:100%;height:auto} +.dg figcaption{margin-top:14px;font-size:13.5px;color:var(--sub);line-height:1.5} +@media (max-width:600px){.dg{padding:12px}.hsplit>.dg{flex-basis:100%}} +.dg .sv-tag{font:700 12px var(--mono);letter-spacing:.5px} +.dg .sv-lv{font:700 12.5px var(--mono)} +.dg .sv-h{font:700 18px var(--head)} +.dg .sv-h2{font:700 14.5px var(--head)} +.dg .sv-big{font:700 23px var(--head)} +.dg .sv-b{font:500 13px var(--body)} +.dg .sv-s{font:500 12.5px var(--body)} +.dg .sv-url{font:500 12px var(--mono)} +.dg .sv-j{font:700 14.5px var(--head)} +.legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none;font-size:13.5px;color:var(--ink2)} +.legend li{display:flex;align-items:center;gap:8px} +.legend i{width:18px;height:12px;display:inline-block;flex:none} +.hpts{margin:0;padding:0;list-style:none;counter-reset:hp;display:flex;flex-direction:column;gap:14px} +.hpts li{counter-increment:hp;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;row-gap:2px;background:var(--card);border:1px solid var(--line);padding:16px 18px;clip-path:var(--cut)} +.hpts li:before{content:counter(hp,decimal-leading-zero);grid-row:1 / span 2;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font:700 17px var(--head);background:var(--tint);color:var(--blue-ink);clip-path:var(--cuts)} +.hpts b{font:700 18px var(--head);color:var(--ink);line-height:1.25} +.hpts span{color:var(--ink2);line-height:1.5} +.vcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px} +.vcard{background:var(--card);border:1px solid var(--line);padding:22px;display:flex;flex-direction:column;gap:8px;clip-path:var(--cut);min-width:0;border-top:5px solid var(--blue2)} +.vcard .ic{width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:var(--royal);color:var(--gold);clip-path:var(--cuts);margin-bottom:4px} +.vcard b{font:700 18px var(--head);color:var(--ink);line-height:1.25} +.vcard span:not(.ic){color:var(--ink2);line-height:1.5} +.deliv{display:flex;flex-direction:column;gap:0;background:var(--royal);clip-path:var(--cut);padding:8px 20px} +.deliv>div{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:14px;padding:14px 0;border-top:1px solid var(--royal3)} +.deliv>div:first-child{border-top:0} +.deliv .dn{grid-row:1 / span 2;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--gold);color:var(--ink);font:700 16px var(--head);clip-path:var(--cuts)} +.deliv b{font:700 17px var(--head);color:#fff} +.deliv span:not(.dn){color:var(--on-dark);line-height:1.5;font-size:15px} +.faq{display:flex;flex-direction:column;gap:10px} +.faq details{background:var(--card);border:1px solid var(--line);clip-path:var(--cut)} +.faq summary{list-style:none;cursor:pointer;padding:18px 56px 18px 20px;font:700 18px var(--head);color:var(--ink);position:relative;line-height:1.3} +.faq summary::-webkit-details-marker{display:none} +.faq summary:after{content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--tint);color:var(--blue-ink);font:700 20px var(--head);transition:transform .2s} +.faq details[open] summary:after{transform:translateY(-50%) rotate(45deg);background:var(--gold);color:var(--ink)} +.faq summary:focus-visible{outline:3px solid var(--blue);outline-offset:-3px} +.faq details p{margin:0;padding:0 20px 20px;color:var(--ink2);line-height:1.6;max-width:820px} +.how .joinbar .row{gap:14px} +@media (max-width:600px){.faq summary{font-size:16.5px;padding:16px 52px 16px 16px}.faq details p{padding:0 16px 16px}.hpts li{padding:14px}} diff --git a/public/boost.html b/public/boost.html index d91942c..68c81e0 100644 --- a/public/boost.html +++ b/public/boost.html @@ -22,7 +22,7 @@ - +
@@ -67,9 +67,9 @@
- - - - + + + + diff --git a/public/contract.html b/public/contract.html index d0d020b..a19d77b 100644 --- a/public/contract.html +++ b/public/contract.html @@ -22,7 +22,7 @@ - +
@@ -44,7 +44,7 @@
- - + + diff --git a/public/disclaimer.html b/public/disclaimer.html index 970fabc..1bb0fa6 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -22,7 +22,7 @@ - +
@@ -33,7 +33,7 @@

Prices and taxes

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.

Who to ask

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support.

- - + + diff --git a/public/how.html b/public/how.html new file mode 100644 index 0000000..4f355c9 --- /dev/null +++ b/public/how.html @@ -0,0 +1,135 @@ + + + + +How It Works | ViralAdBlitz + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

How it works

+

One free ad. Five levels deep.

+

Post one text ad. It shows on your page and on the page of everyone you bring in, five levels down. Here is the whole idea in three pictures.

+ +
+
+
+
1 FREETEXT AD
+
5 LEVELSOF YOUR TEAM
+
500VIEWS PER BOOST
+
+ +
+
+ +
+

01 · The spread

Your ad spreads down your team

+
+
Your ad spreads five levels down your teamYou post one free text ad at the top. Below you are the people you bring in (level 1), their people (level 2), and so on to level 5. Every one of their member pages shows your ad among the five team ads: on a level 1 page it is the LEVEL 1 row, on a level 5 page the LEVEL 5 row.YOUyour adLEVEL 1your directsLEVEL 2their peopleLEVEL 3their peopleLEVEL 4their peopleLEVEL 5their peopleYOUR FREE TEXT ADYour headline hereTwo short lines about your offeryoursite.com +
  • their own ad
  • YOUR ad
  • other team ads
+
+
+
    +
  1. You post one free text ad.A headline, two lines and your link. It goes on your own page, viraladblitz.com/your-name.
  2. +
  3. Everyone you bring in shows it.Their page carries your ad as one of the five team ads. That is level 1.
  4. +
  5. And so on, five levels down.When they bring people in, your ad is on those pages too: level 2, then 3, 4 and 5. On a level 3 page, yours is the LEVEL 3 row.
  6. +
+

The rows show the first five people above a member who have a live ad. If someone in between has no live ad, the next person up moves into their place, so the picture holds when everyone in between has posted.

+
What a member page showsA member page at viraladblitz.com slash their name: their own ad on top, then the ads of the first five people above them in their sponsor line who have a live ad, labelled LEVEL 1 to LEVEL 5, then two Boosted places, then a button to join free under them.viraladblitz.com/their-nameTHEIR OWN AD, ON TOPTheir headlineTheir two lines and their linkTHE 5 PEOPLE ABOVE THEM WITH A LIVE ADLEVEL 1Ad of the 1st person aboveLEVEL 2Ad of the 2nd person aboveLEVEL 3Ad of the 3rd person aboveLEVEL 4Ad of the 4th person aboveLEVEL 5Ad of the 5th person aboveBOOSTED PLACES★ BOOSTA Boosted ad from the network★ BOOSTA Boosted ad from the networkJoin free under @their-name +
Every member page looks like this: their own ad, the five team ads labelled LEVEL 1 to LEVEL 5, two Boosted places and a button to join free under them.
+
+
+
+
+ +
+

02 · Fair counting

What counts as a view

The same rules for every ad, Boosted or not
+
+
A real browser, a few secondsA view counts only when a real browser keeps the page open and visible for a few seconds. The server decides which ads the page showed, never the browser.
+
Once per visitor per ad per dayEach ad on the page gets at most one view from the same visitor in 24 hours. Reloading the page does not add more.
+
Your own views never countWhen you look at your own page, or any page showing your ad, your ad gets no view and no verified click from you.
+
Bots and tricks are refusedBots, sends that come too early and more than a few browsers from one connection in a day are not counted.
+
Verified clicks, the same wayA click counts as verified once per visitor per ad per 24 hours, never your own. Top ads this week is ranked by verified clicks.
+
A LinkSpin tracked linkYour ad link goes out as a tracked link on your own LinkSpin account, and My page shows its LinkSpin clicks. Visitors still land on your link.
+
+
+ +
+

03 · Boost

Boost: where your $5 goes

One-time, never a subscription
+
+
Where a $5 Boost goesYou buy a $5 Boost. In the same transaction half goes to the company and half is paid as five shares of 10% up your sponsor line. In this example the person 1 place up has boosted and gets the LEVEL 1 share. The person 2 places up has not bought a Boost, so they are passed over and the next share skips to the person 3 places up, who gets LEVEL 2. The people 4, 5 and 6 places up get LEVEL 3, 4 and 5. The contract looks up to 20 places up; a share nobody qualifies for goes to the company.YOU BUY A BOOST$5, one time50% · FIVE LEVELS10% each, $0.50 in POL50% · COMPANY$2.50, runs the network11 place upYour sponsor, has boostedLEVEL 1 · 10%22 places upNo Boost yet: passed overPASSED OVER33 places upHas boostedLEVEL 2 · 10%44 places upHas boostedLEVEL 3 · 10%55 places upHas boostedLEVEL 4 · 10%66 places upHas boostedLEVEL 5 · 10%The contract looks up to 20 places up your line.A share nobody qualifies for goes to the company. +
  • has bought a Boost: receives a share
  • no Boost yet: passed over
  • the share skips up
+
+
+
    +
  1. Split in the same transaction.You pay $5 in POL on Polygon. The contract pays 10% to each of five people up your sponsor line and 50% to the company before the transaction ends. Nothing is held and there is nothing to withdraw.
  2. +
  3. Only Boost buyers receive a share.Someone in your line who has never bought a Boost is passed over, and that share goes to the next person up who has. One Boost ever is enough to qualify.
  4. +
  5. Up to 20 places up.The contract looks for five buyers within 20 places up your line. A share nobody qualifies for goes to the company.
  6. +
+
500 GUARANTEED VIEWSWhat you buy is advertising for your own ad.A Boost buys advertising, not income. Nothing is promised.
+
+
1Starred on the tickerYour ad gets a gold star on the live ticker on every page while its views are delivered.
+
2Boosted places on member pagesBoosted ads fill the two Boosted places on every member page, the one furthest behind first. Every verified view counts toward your 500.
+
3Finished within 30 daysViews not delivered on ViralAdBlitz within 30 days are finished through Network Ad Space as a text ad with your headline, lines and link, for exactly the views still owed.
+
+

See every Boost in the live ledger · Check the contract

+
+
+
+ +
+

04 · Go

Start in 3 steps

+
+
01Sign inWith your InstantAdPay or LinkSpin account, or your wallet. Your username and sponsor line come with you.
+
02Post your free text adA headline, two lines and your link. You can edit it any time.
+
03Share your pageSend people to viraladblitz.com/your-name. Everyone who joins under you carries your ad.
+
+
+
Ready to spread your ad?

Free for network members. Boost it any time for 500 guaranteed views.

+ +
+
+ +
+

Questions

+
+
Is it really free?

Yes. Every network member (InstantAdPay or LinkSpin) gets one free text ad: a headline, two lines and your link. Posting it and editing it costs nothing. A Boost is optional.

+
Whose ads show on my page?

Your own ad on top. Then the ads of the first five people above you in your sponsor line who have a live ad here, labelled LEVEL 1 to LEVEL 5 in the order shown. If someone above you has no live ad, the next person up takes the place (the site looks up to 20 places). Then two Boosted places.

+
How far does my ad spread?

Five levels down. Your ad shows on the page of everyone you bring in, of everyone they bring in, and so on, as long as you are one of the first five people above them with a live ad.

+
What does a $5 Boost buy?

500 guaranteed network views from verified visitors, a starred spot on the live ticker and an extra place on member pages. It is paid once in POL on Polygon and never renews: one-time, never a subscription. Views not delivered on ViralAdBlitz within 30 days are finished through Network Ad Space.

+
Who is paid when someone boosts?

The contract pays 10% to each of five people up the buyer's sponsor line and 50% to the company, in the same transaction. Only people who have bought a Boost receive a share; anyone who has not is passed over and the share goes to the next person up who has, up to 20 places. A Boost buys advertising, not income. Nothing is promised.

+
Which wallet do I need?

SafePal or any other crypto wallet that holds POL on Polygon. You only need it to buy a Boost or to sign in by wallet; signing in is a free signature that cannot move funds.

+
Can I check the payouts myself?

Yes. Every Boost and every level payout is in the live ledger with a link to its transaction on Polygonscan, and the contract page reads the fixed split straight from the chain.

+
+
+

A Boost buys advertising, not income. Nothing is promised.

+ +
+ + + + diff --git a/public/index.html b/public/index.html index d33def5..34eea6d 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,7 @@ - +
@@ -67,7 +67,7 @@
-

How your ad spreads

+
01Post one free text adSign in with your InstantAdPay or LinkSpin account. A headline, two lines and your link.
02Share your pageYour page shows your ad and the five people above you. Every visit shows six ads.
@@ -79,7 +79,7 @@
BOOST · ONE-TIME, NEVER A SUBSCRIPTION

$5 = 500 guaranteed network views

Plus a starred spot on the ticker. Each Boost pays 10% to five levels of your sponsor line in the same transaction, and 50% to the company.

L1 10%
L2 10%
L3 10%
L4 10%
L5 10%
- Boost my ad +
@@ -95,7 +95,7 @@

A Boost buys advertising, not income. Nothing is promised.

- - + + diff --git a/public/ledger.html b/public/ledger.html index 384e8c4..0e94ee8 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -22,7 +22,7 @@ - +
@@ -34,7 +34,7 @@

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.

- - + + diff --git a/public/member.html b/public/member.html index f20205b..927baf1 100644 --- a/public/member.html +++ b/public/member.html @@ -22,7 +22,7 @@ - +
@@ -42,7 +42,7 @@

Advertising, not income. Nothing is promised.

- - + + diff --git a/public/my.html b/public/my.html index f5c60b0..53ce7f1 100644 --- a/public/my.html +++ b/public/my.html @@ -22,7 +22,7 @@ - +
@@ -84,8 +84,8 @@
- - - + + + diff --git a/public/privacy.html b/public/privacy.html index 46e1b5a..cfe8ef1 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -22,7 +22,7 @@ - +
@@ -34,7 +34,7 @@

Your choices

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.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- - + + diff --git a/public/promote.html b/public/promote.html index 6636cf2..2d4b6f8 100644 --- a/public/promote.html +++ b/public/promote.html @@ -22,7 +22,7 @@ - +
@@ -33,8 +33,8 @@

Loading the kit...

- - - + + + diff --git a/public/terms.html b/public/terms.html index 13c9a24..2537d86 100644 --- a/public/terms.html +++ b/public/terms.html @@ -22,7 +22,7 @@ - +
@@ -42,7 +42,7 @@

Limits

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.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- - + + diff --git a/qa/smoke.mjs b/qa/smoke.mjs index 2e0c18f..1a05de6 100644 --- a/qa/smoke.mjs +++ b/qa/smoke.mjs @@ -195,9 +195,14 @@ async function main() { console.log('3. pages'); const anon = client(); - for (const p of ['/', '/my', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy', '/admin', '/robots.txt', '/sitemap.xml', '/art/mark.svg', '/art/og-share.png', '/assets/vab.css', '/assets/common.js']) { const r = await anon.req(p); ok(r.status === 200, 'GET ' + p + ' 200', r.status); } + for (const p of ['/', '/how', '/my', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy', '/admin', '/robots.txt', '/sitemap.xml', '/art/mark.svg', '/art/og-share.png', '/assets/vab.css', '/assets/common.js']) { const r = await anon.req(p); ok(r.status === 200, 'GET ' + p + ' 200', r.status); } let r = await anon.req('/'); const home = await r.text(); ok(/

Spread your ad<\/span> 5 levels deep<\/span><\/h1>/.test(home) && /id="boardCards"/.test(home) && /og:image" content="https:\/\/viraladblitz\.com\/art\/og-share\.png/.test(home), 'front page: "Spread your ad 5 levels deep" headline, board, Open Graph'); + r = await anon.req('/how'); const how = await r.text(); + ok((how.match(//g) || []).length >= 5 && /PASSED OVER/.test(how) && /A Boost buys advertising, not income\. Nothing is promised\./.test(how) && /SafePal or any other crypto wallet/.test(how) && !/[—–]/.test(how) && /"@type":"FAQPage"/.test(how), 'How it works page: 3 accessible diagrams, 4 sections, FAQ, pass-up shown, copy rules', how.length); + ok(/href="\/how#boost">How a Boost worksHow it works<\/a>/.test(fs.readFileSync(path.join(APP, 'public/assets/common.js'), 'utf8')), 'How it works linked from the nav, the footer and the front page ("How a Boost works")'); + ok((await (await anon.req('/sitemap.xml')).text()).includes('/how'), 'sitemap lists /how'); ok(!r.headers.get('x-frame-options'), 'front page stays frameable (traffic exchanges)'); r = await anon.req('/my'); ok(r.headers.get('x-frame-options') === 'DENY', '/my is never framed'); ok(/script-src[^;]*https:\/\/linkspin\.app/.test(r.headers.get('content-security-policy') || ''), 'CSP admits linkspin.app (network zones)'); @@ -460,13 +465,20 @@ const mtop = await anon.json('/api/wire?page=member&u=topdog'); // nothing leaves this machine; UI_FONTS=1 lets Google Fonts through so the screenshots show the real type (read-only font GETs) await ctx.route(/^https:\/\//, rt => (process.env.UI_FONTS && /^https:\/\/fonts\.(googleapis|gstatic)\.com\//.test(rt.request().url())) ? rt.continue() : rt.abort()); const errs = []; const pg = await ctx.newPage(); pg.on('pageerror', e => errs.push(e.message)); - for (const [p, sel] of [['/', '#boardCards .paper'], ['/owner', '#levels .lvl'], ['/boost', '#bQty option'], ['/ledger', '#rows tbody tr'], ['/contract', '#facts th'], ['/promote', '#kit .card'], ['/terms', '.legal .card'], ['/disclaimer', '.legal .card'], ['/privacy', '.legal .card']]) { + for (const [p, sel] of [['/', '#boardCards .paper'], ['/how', '.dg svg[role=img]'], ['/owner', '#levels .lvl'], ['/boost', '#bQty option'], ['/ledger', '#rows tbody tr'], ['/contract', '#facts th'], ['/promote', '#kit .card'], ['/terms', '.legal .card'], ['/disclaimer', '.legal .card'], ['/privacy', '.legal .card']]) { await pg.goto(BASE + p, { waitUntil: 'domcontentloaded' }); await pg.waitForSelector(sel, { timeout: 8000 }).catch(() => {}); const found = await pg.$$eval(sel, els => els.length); const wide = await pg.evaluate(() => document.documentElement.scrollWidth - window.innerWidth); ok(found > 0 && wide <= 1, label + ' ' + p + ': renders (' + sel + ') with no sideways scroll', { found, wide }); await pg.screenshot({ path: path.join(OUT, label + '-' + (p === '/' ? 'front' : p.slice(1)) + '.png'), fullPage: true }); } + { const cerr = [], bad = []; const onC = m => { if (m.type() === 'error' && !/Failed to load resource|net::ERR_FAILED/.test(m.text())) cerr.push(m.text()); }; const onR = rs => { if (rs.url().startsWith(BASE) && rs.status() >= 400) bad.push(rs.status() + ' ' + rs.url()); }; + pg.on('console', onC); pg.on('response', onR); + await pg.goto(BASE + '/how', { waitUntil: 'load' }); await pg.waitForSelector('#ticker .run a', { timeout: 8000 }).catch(() => {}); + const hv = await pg.evaluate(() => ({ svgs: [...document.querySelectorAll('.dg svg')].map(s => Math.round(s.getBoundingClientRect().width)), dash: /[—–]/.test(document.body.innerText), nav: !!document.querySelector('nav.top a.on[href="/how"]'), foot: !!document.querySelector('footer a[href="/how"]'), wide: document.documentElement.scrollWidth - window.innerWidth })); + await pg.click('.faq details summary'); const opened = await pg.$eval('.faq details', d => d.open); + ok(hv.svgs.length === 3 && hv.svgs.every(w => w >= 280) && !hv.dash && hv.nav && hv.foot && hv.wide <= 1 && opened && !cerr.length && !bad.length, label + ' /how: 3 diagrams at readable width, no dashes, nav on, footer link, FAQ opens, no console errors, no failed same-origin requests', { hv, opened, cerr, bad }); + pg.off('console', onC); pg.off('response', onR); } await pg.goto(BASE + '/', { waitUntil: 'domcontentloaded' }); await pg.waitForSelector('#ticker .run a', { timeout: 8000 }).catch(() => {}); ok((await pg.$$eval('#ticker .run a', els => els.length)) > 0 && (await pg.textContent('footer')).includes('TrustClickz') && /Part of the network/.test(await pg.textContent('footer')), label + ': ticker runs; footer has the company line and the network line'); await pg.goto(BASE + '/owner', { waitUntil: 'domcontentloaded' }); await pg.waitForSelector('#levels .lvl a[data-go]', { timeout: 8000 }).catch(() => {}); diff --git a/server.js b/server.js index a9f4519..9e2a5f4 100644 --- a/server.js +++ b/server.js @@ -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), / (member page), /my, /boost, /ledger, /contract, /promote, /terms, /disclaimer, /privacy, /admin. +// Pages: / (front), / (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 => 'https://' + C.site + x + '' + day + '').join(''); + const urls = ['/', '/how', '/boost', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy'].map(x => 'https://' + C.site + x + '' + day + '').join(''); res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' })); return res.end('' + urls + ''); } diff --git a/tools/pages.mjs b/tools/pages.mjs index 1c1ec21..479c961 100644 --- a/tools/pages.mjs +++ b/tools/pages.mjs @@ -7,7 +7,7 @@ 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: 5, common: 6, page: 5 }; +const V = { css: 6, common: 7, page: 6 }; 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=Barlow+Condensed:ital,wght@1,700;1,800&family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap'; // the daylight look's shared SVG bits (same as common.js) @@ -99,7 +99,7 @@ page('index.html', { path: '/', title: 'ViralAdBlitz | Your text ad on your whol
-

How your ad spreads

+
01Post one free text adSign in with your InstantAdPay or LinkSpin account. A headline, two lines and your link.
02Share your pageYour page shows your ad and the five people above you. Every visit shows six ads.
@@ -111,7 +111,7 @@ page('index.html', { path: '/', title: 'ViralAdBlitz | Your text ad on your whol
BOOST · ONE-TIME, NEVER A SUBSCRIPTION

$${F.boostUsd} = ${F.views} guaranteed network views

Plus a starred spot on the ticker. Each Boost pays 10% to five levels of your sponsor line in the same transaction, and 50% to the company.

${LVLBARS} - Boost my ad +
@@ -349,4 +349,189 @@ legal('privacy.html', '/privacy', 'Privacy Policy', 'What ViralAdBlitz keeps abo ['Who else sees data', `
  • The Polygon blockchain: every Boost and payment is public there, by its nature.
  • The network hub, which keeps one record per person across the network sites (username, wallet, sponsor).
  • Our Telegram payments topic: each Boost is posted with the buyer's username (or a shortened wallet) and the amounts paid.
  • 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.

We do not sell personal data.

`], ['Your choices', `

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.

`], CONTACT]); +// ---------------------------------------------------------------- how it works (Marty 2026-11-15: "a How It Works section with maybe a diagram") +// Every fact here is from the code: server.js memberPage (own ad + first 5 people above with a live ad, LEVEL 1-5 in display +// order, C.lineSearch 20 places, C.boostSlots 2 Boosted places), wire.js (one view per visitor per ad per 24 h, never the owner's +// own, verified clicks the same), config.js split (5 x 10% + 50%, maxDepth 20), contracts/README (pass-up), vabnas.js (30 days, NAS). +const T = (x, y, cls, fill, txt, anchor) => `${txt}`; +const ORD = ['1st', '2nd', '3rd', '4th', '5th']; +// 1. the spread: YOU, then member pages five levels down, each showing YOUR ad in the LEVEL row that matches its depth +function svgSpread() { + const rows = [2, 3, 4, 5, 5], pw = 40, ph = 54, x0 = 108, aw = 244, top0 = 136, pitch = 96, H = 584; + const subs = ['your directs', 'their people', 'their people', 'their people', 'their people']; + const pos = rows.map((n, i) => { const gap = n > 1 ? Math.min(30, (aw - n * pw) / (n - 1)) : 0; const sx = x0 + (aw - (n * pw + (n - 1) * gap)) / 2; + return Array.from({ length: n }, (_, k) => ({ x: Math.round(sx + k * (pw + gap)), y: top0 + i * pitch })); }); + let lines = '', pages = '', left = ''; + // connectors: YOU card to level 1, each page to the pages below it + pos[0].forEach(p => { lines += ``; }); + for (let i = 1; i < rows.length; i++) pos[i].forEach((p, k) => { const par = pos[i - 1][Math.min(pos[i - 1].length - 1, Math.floor(k * pos[i - 1].length / rows[i]))]; lines += ``; }); + pos.forEach((row, i) => row.forEach(p => { + let bars = ``; + for (let r = 0; r < 5; r++) bars += r === i ? `` : ``; + pages += `${bars}`; + })); + // the left column: YOU badge, LEVEL badges, red arrows down + const badge = (y, txt, fill, sub) => `` + T(48, y + 26, 'sv-lv', '#FFFFFF', txt, 'middle') + T(48, y + 52, 'sv-s', '#3E4C7A', sub, 'middle'); + left += badge(8, 'YOU', '#E3141E', 'your ad'); + pos.forEach((row, i) => { left += badge(row[0].y, 'LEVEL ' + (i + 1), '#0A1F6B', subs[i]); }); + const ys = [8].concat(pos.map(r => r[0].y)); + for (let i = 0; i < ys.length - 1; i++) left += ``; + const you = `` + T(126, 30, 'sv-tag', '#0A1F6B', 'YOUR FREE TEXT AD') + T(126, 54, 'sv-h', '#0A1F6B', 'Your headline here') + T(126, 74, 'sv-b', '#2A3A6E', 'Two short lines about your offer') + T(126, 92, 'sv-tag', '#0A1F6B', 'yoursite.com'); + return `Your ad spreads five levels down your teamYou post one free text ad at the top. Below you are the people you bring in (level 1), their people (level 2), and so on to level 5. Every one of their member pages shows your ad among the five team ads: on a level 1 page it is the LEVEL 1 row, on a level 5 page the LEVEL 5 row.` + + `` + + `${lines}${left}${you}${pages}`; +} +// 2. a member's page: their own ad, five team ads labelled LEVEL 1-5, two Boosted places, the join bar +function svgPage() { + let s = `` + + `` + T(58, 21, 'sv-url', '#D3DEFF', 'viraladblitz.com/their-name') + + `` + T(26, 61, 'sv-tag', '#FFC21A', 'THEIR OWN AD, ON TOP') + T(26, 85, 'sv-h', '#FFFFFF', 'Their headline') + T(26, 105, 'sv-b', '#E3EBFF', 'Their two lines and their link') + + T(14, 138, 'sv-tag', '#1546D6', 'THE 5 PEOPLE ABOVE THEM WITH A LIVE AD'); + for (let i = 0; i < 5; i++) { const y = 146 + i * 38; + s += `` + T(54, y + 21, 'sv-lv', '#FFFFFF', 'LEVEL ' + (i + 1), 'middle') + T(106, y + 21, 'sv-b', '#0A1F6B', 'Ad of the ' + ORD[i] + ' person above'); } + s += T(14, 352, 'sv-tag', '#7A5B00', 'BOOSTED PLACES'); + for (let i = 0; i < 2; i++) { const y = 360 + i * 38; + s += `` + T(54, y + 21, 'sv-lv', '#0A1F6B', '★ BOOST', 'middle') + T(106, y + 21, 'sv-b', '#0A1F6B', 'A Boosted ad from the network'); } + s += `` + T(180, 461, 'sv-j', '#FFFFFF', 'Join free under @their-name', 'middle'); + return `What a member page showsA member page at viraladblitz.com slash their name: their own ad on top, then the ads of the first five people above them in their sponsor line who have a live ad, labelled LEVEL 1 to LEVEL 5, then two Boosted places, then a button to join free under them.${s}`; +} +// 3. where a $5 Boost goes: 50% company, 50% as five 10% shares walking up the line; a person with no Boost is passed over +function svgBoost() { + const line = [['1 place up', 'Your sponsor, has boosted', 1], ['2 places up', 'No Boost yet: passed over', 0], ['3 places up', 'Has boosted', 2], ['4 places up', 'Has boosted', 3], ['5 places up', 'Has boosted', 4], ['6 places up', 'Has boosted', 5]]; + const y0 = 178, pitch = 58, h = 46, cx = 52; + let rows = '', spine = ''; + line.forEach(([a, b, lv], i) => { const y = y0 + i * pitch, cy = y + h / 2, paid = lv > 0; + rows += paid ? `` : ``; + rows += `` + T(cx, cy + 4.5, 'sv-lv', paid ? '#FFFFFF' : '#3E4C7A', String(i + 1), 'middle') + + T(76, y + 20, 'sv-h2', paid ? '#0A1F6B' : '#3E4C7A', a) + T(76, y + 37, 'sv-s', paid ? '#2A3A6E' : '#3E4C7A', b); + rows += paid ? `` + T(293, y + 28, 'sv-lv', '#1546D6', 'LEVEL ' + lv + ' · 10%', 'middle') + : `` + T(293, y + 28, 'sv-lv', '#3E4C7A', 'PASSED OVER', 'middle'); + }); + const cy = i => y0 + i * pitch + h / 2; + spine += ``; + for (const i of [2, 3, 4]) spine += ``; + const skip = ``; + const fy = y0 + 6 * pitch + 6; + return `Where a $5 Boost goesYou buy a $5 Boost. In the same transaction half goes to the company and half is paid as five shares of 10% up your sponsor line. In this example the person 1 place up has boosted and gets the LEVEL 1 share. The person 2 places up has not bought a Boost, so they are passed over and the next share skips to the person 3 places up, who gets LEVEL 2. The people 4, 5 and 6 places up get LEVEL 3, 4 and 5. The contract looks up to 20 places up; a share nobody qualifies for goes to the company.` + + `` + + `` + T(180, 27, 'sv-tag', '#0A1F6B', 'YOU BUY A BOOST', 'middle') + T(180, 53, 'sv-big', '#0A1F6B', '$5, one time', 'middle') + + `` + + `` + + `` + T(91, 118, 'sv-tag', '#FFFFFF', '50% · FIVE LEVELS', 'middle') + T(91, 138, 'sv-b', '#FFFFFF', '10% each, $0.50 in POL', 'middle') + + `` + T(269, 118, 'sv-tag', '#FFC21A', '50% · COMPANY', 'middle') + T(269, 138, 'sv-b', '#D3DEFF', '$2.50, runs the network', 'middle') + + rows + `${spine}` + skip + + T(180, fy + 8, 'sv-s', '#3E4C7A', 'The contract looks up to 20 places up your line.', 'middle') + T(180, fy + 26, 'sv-s', '#3E4C7A', 'A share nobody qualifies for goes to the company.', 'middle') + + ``; +} +const FAQ = [ + ['Is it really free?', `Yes. Every network member (InstantAdPay or LinkSpin) gets one free text ad: a headline, two lines and your link. Posting it and editing it costs nothing. A Boost is optional.`], + ['Whose ads show on my page?', `Your own ad on top. Then the ads of the first five people above you in your sponsor line who have a live ad here, labelled LEVEL 1 to LEVEL 5 in the order shown. If someone above you has no live ad, the next person up takes the place (the site looks up to 20 places). Then two Boosted places.`], + ['How far does my ad spread?', `Five levels down. Your ad shows on the page of everyone you bring in, of everyone they bring in, and so on, as long as you are one of the first five people above them with a live ad.`], + ['What does a $5 Boost buy?', `${F.views} guaranteed network views from verified visitors, a starred spot on the live ticker and an extra place on member pages. It is paid once in POL on Polygon and never renews: one-time, never a subscription. Views not delivered on ViralAdBlitz within ${F.days} days are finished through Network Ad Space.`], + ['Who is paid when someone boosts?', `The contract pays 10% to each of five people up the buyer's sponsor line and 50% to the company, in the same transaction. Only people who have bought a Boost receive a share; anyone who has not is passed over and the share goes to the next person up who has, up to 20 places. A Boost buys advertising, not income. Nothing is promised.`], + ['Which wallet do I need?', `SafePal or any other crypto wallet that holds POL on Polygon. You only need it to buy a Boost or to sign in by wallet; signing in is a free signature that cannot move funds.`], + ['Can I check the payouts myself?', `Yes. Every Boost and every level payout is in the live ledger with a link to its transaction on Polygonscan, and the contract page reads the fixed split straight from the chain.`] +]; +const VC = (ic, b, t) => `
${b}${t}
`; +const I = p => ``; +page('how.html', { path: '/how', title: 'How It Works | ViralAdBlitz', desc: 'How ViralAdBlitz works: one free text ad that shows on your team\'s pages five levels down, what counts as a view, and where a $5 one-time Boost goes, in pictures.', + ld: { '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: FAQ.map(([q, a]) => ({ '@type': 'Question', name: q, acceptedAnswer: { '@type': 'Answer', text: a } })) } }, `
+
${NETLINES} +
+

How it works

+

One free ad. Five levels deep.

+

Post one text ad. It shows on your page and on the page of everyone you bring in, five levels down. Here is the whole idea in three pictures.

+ +
+
+
+
${ICON.ad}1 FREETEXT AD
+
${ICON.team}5 LEVELSOF YOUR TEAM
+
${ICON.bars}${F.views}VIEWS PER BOOST
+
+ +
+
+ +
+

01 · The spread

Your ad spreads down your team

+
+
${svgSpread()} +
  • their own ad
  • YOUR ad
  • other team ads
+
+
+
    +
  1. You post one free text ad.A headline, two lines and your link. It goes on your own page, viraladblitz.com/your-name.
  2. +
  3. Everyone you bring in shows it.Their page carries your ad as one of the five team ads. That is level 1.
  4. +
  5. And so on, five levels down.When they bring people in, your ad is on those pages too: level 2, then 3, 4 and 5. On a level 3 page, yours is the LEVEL 3 row.
  6. +
+

The rows show the first five people above a member who have a live ad. If someone in between has no live ad, the next person up moves into their place, so the picture holds when everyone in between has posted.

+
${svgPage()} +
Every member page looks like this: their own ad, the five team ads labelled LEVEL 1 to LEVEL 5, two Boosted places and a button to join free under them.
+
+
+
+
+ +
+

02 · Fair counting

What counts as a view

The same rules for every ad, Boosted or not
+
+ ${VC(I(''), 'A real browser, a few seconds', 'A view counts only when a real browser keeps the page open and visible for a few seconds. The server decides which ads the page showed, never the browser.')} + ${VC(I(''), 'Once per visitor per ad per day', 'Each ad on the page gets at most one view from the same visitor in 24 hours. Reloading the page does not add more.')} + ${VC(I(''), 'Your own views never count', 'When you look at your own page, or any page showing your ad, your ad gets no view and no verified click from you.')} + ${VC(I(''), 'Bots and tricks are refused', 'Bots, sends that come too early and more than a few browsers from one connection in a day are not counted.')} + ${VC(I(''), 'Verified clicks, the same way', 'A click counts as verified once per visitor per ad per 24 hours, never your own. Top ads this week is ranked by verified clicks.')} + ${VC(I(''), 'A LinkSpin tracked link', 'Your ad link goes out as a tracked link on your own LinkSpin account, and My page shows its LinkSpin clicks. Visitors still land on your link.')} +
+
+ +
+

03 · Boost

Boost: where your $${F.boostUsd} goes

One-time, never a subscription
+
+
${svgBoost()} +
  • has bought a Boost: receives a share
  • no Boost yet: passed over
  • the share skips up
+
+
+
    +
  1. Split in the same transaction.You pay ${'$'}${F.boostUsd} in POL on Polygon. The contract pays 10% to each of five people up your sponsor line and 50% to the company before the transaction ends. Nothing is held and there is nothing to withdraw.
  2. +
  3. Only Boost buyers receive a share.Someone in your line who has never bought a Boost is passed over, and that share goes to the next person up who has. One Boost ever is enough to qualify.
  4. +
  5. Up to 20 places up.The contract looks for five buyers within 20 places up your line. A share nobody qualifies for goes to the company.
  6. +
+
${F.views} GUARANTEED VIEWSWhat you buy is advertising for your own ad.A Boost buys advertising, not income. Nothing is promised.
+
+
1Starred on the tickerYour ad gets a gold star on the live ticker on every page while its views are delivered.
+
2Boosted places on member pagesBoosted ads fill the two Boosted places on every member page, the one furthest behind first. Every verified view counts toward your ${F.views}.
+
3Finished within ${F.days} daysViews not delivered on ViralAdBlitz within ${F.days} days are finished through Network Ad Space as a text ad with your headline, lines and link, for exactly the views still owed.
+
+

See every Boost in the live ledger · Check the contract

+
+
+
+ +
+

04 · Go

Start in 3 steps

+
+
01Sign inWith your InstantAdPay or LinkSpin account, or your wallet. Your username and sponsor line come with you.
+
02Post your free text adA headline, two lines and your link. You can edit it any time.
+
03Share your pageSend people to viraladblitz.com/your-name. Everyone who joins under you carries your ad.
+
+
+
Ready to spread your ad?

Free for network members. Boost it any time for ${F.views} guaranteed views.

+ +
+
+ +
+

Questions

+
+${FAQ.map(([q, a]) => `
${q}

${a}

`).join('\n')} +
+
+

A Boost buys advertising, not income. Nothing is promised.

+ +
+`, ['how.js']); + console.log('pages written');