diff --git a/chatbot.js b/chatbot.js index d30b526..10d005c 100644 --- a/chatbot.js +++ b/chatbot.js @@ -13,7 +13,7 @@ const core = require('./chatcore'); const C = require('./config').get(); -const KNOWLEDGE_DATE = '2026-11-17'; +const KNOWLEDGE_DATE = '2026-11-18'; const weekend = require('./weekend'); // Network Weekend (2026-11-17): dated fact, from the live chain Boost (C.boost follows chainskus.js) if (C.boost.normalViews == null) { C.boost.normalViews = C.boost.views; C.boost.normalUsd = C.boost.usd; } // before the first chain read const URL_ = 'https://' + C.site; @@ -103,6 +103,7 @@ const FACTS = () => [ '- SPLIT (VABShop contract constants, no setter): ' + SP.levelPct + '% to each of ' + SP.levels + ' sponsor levels + ' + SP.companyPct + '% company, in the same transaction. Only Boost buyers (one Boost ever is enough) receive a level share; a non-buyer is passed over and the share goes up to the next buyer; the contract looks up to ' + SP.maxDepth + ' places; an unclaimed share goes to the company. No owner withdraw, no balance held; an undeliverable share waits in the contract for that wallet to claim.', '- SPONSOR LINE: from the network hub (same sponsor as InstantAdPay/LinkSpin). On the first Boost the keeper signs the line and the contract records it link by link; a recorded link never changes. People without a wallet in the network are left out.', '- TRUST: ' + URL_ + '/ledger (every Boost, every level paid, who was passed over, delivery), ' + URL_ + '/contract (live contract facts), toasts of real events, a Telegram card per Boost. Terms ' + URL_ + '/terms, Earnings Disclaimer ' + URL_ + '/disclaimer, Privacy ' + URL_ + '/privacy. Run by TrustClickz.', + '- VIDEO (2026-11-18): a 3-minute walkthrough video (the free ad, your page, the five-level spread, verified views, Boosts, where to start) is on ' + URL_ + '/how and ' + URL_ + '/guides/how-it-works.', '- GUIDES (2026-11-17): ' + URL_ + '/guides (index), /guides/how-it-works, /guides/is-it-legit (contract address, Polygonscan, split, how to check), /guides/free-account (writing, tracking and sharing the free ad), /guides/faq. Point people to the matching guide when it helps.', '- PROMO: ' + URL_ + '/promote (links, creatives in every common size, copy, all with the member\'s network username). Old ViralAdBlitz referral links open the member\'s new page; old balances were not carried.', '- NO REFUNDS: blockchain payments are final; views left on a removed ad\'s Boosts are not delivered or refunded. SUPPORT for account or purchase problems: network support at ' + SUPPORT + ' (InstantAdPay runs the one desk for every network site).', diff --git a/public/admin.html b/public/admin.html index e175458..b8676b7 100644 --- a/public/admin.html +++ b/public/admin.html @@ -22,7 +22,7 @@ - +
diff --git a/public/art/how-it-works.jpg b/public/art/how-it-works.jpg new file mode 100644 index 0000000..0c41b52 Binary files /dev/null and b/public/art/how-it-works.jpg differ diff --git a/public/art/how-it-works.mp4 b/public/art/how-it-works.mp4 new file mode 100644 index 0000000..fc45aa2 Binary files /dev/null and b/public/art/how-it-works.mp4 differ diff --git a/public/assets/vab.css b/public/assets/vab.css index f5ff542..bf3c06d 100644 --- a/public/assets/vab.css +++ b/public/assets/vab.css @@ -435,3 +435,9 @@ footer.foot .here{color:var(--ink);font-weight:700} .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}} + +/* tutorial video (2026-11-18): home watch link + the player on the how-it-works guide */ +.watchlink{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;color:#FFC629;text-decoration:underline;text-underline-offset:3px} +.watchlink svg{color:#E3242B;flex:none} +.howvid video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#0A1F6B;margin-top:6px} +.howvid p{margin:10px 0 0} diff --git a/public/boost.html b/public/boost.html index 5c4a55a..5c3d010 100644 --- a/public/boost.html +++ b/public/boost.html @@ -22,7 +22,7 @@ - +
diff --git a/public/contract.html b/public/contract.html index bd95b76..f746985 100644 --- a/public/contract.html +++ b/public/contract.html @@ -22,7 +22,7 @@ - +
diff --git a/public/disclaimer.html b/public/disclaimer.html index 5e84090..650167f 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guide-faq.html b/public/guide-faq.html index 94c4879..eab7716 100644 --- a/public/guide-faq.html +++ b/public/guide-faq.html @@ -23,7 +23,7 @@ - +
diff --git a/public/guide-free.html b/public/guide-free.html index 0cff6a0..582e597 100644 --- a/public/guide-free.html +++ b/public/guide-free.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guide-how.html b/public/guide-how.html index 7ff3a5d..ae04925 100644 --- a/public/guide-how.html +++ b/public/guide-how.html @@ -22,11 +22,12 @@ - +

Guide

How ViralAdBlitz works

One free text ad. It shows on your own page and on the pages of the people you bring in, five levels down.

+

Watch how it works

A 3-minute walkthrough in Marty's voice: your free text ad, your page, how it spreads five levels down, what counts as a view, Boosts, and where to start.

1. You post one free text ad

Every network member (anyone with an InstantAdPay or LinkSpin account) gets one free text ad: a headline, one or two short lines and your link. You post it on My page and you can edit it any time. Posting and editing cost nothing.

2. Your page shows your ad and your upline's

Your page lives at viraladblitz.com/your-name. It shows your ad on top, then the ads of the first five people above you in your sponsor line who have a live ad, labelled LEVEL 1 to LEVEL 5. Then come two Boosted places and a button for visitors to join free under you.

If someone above you has no live ad, the next person up takes the place. The site looks up to 20 places.

3. Your ad spreads five levels down

Because every page shows the five people above its owner, your ad shows on the page of everyone you bring in, everyone they bring in, and so on to level 5, as long as you are one of the first five people above them with a live ad.

diff --git a/public/guide-legit.html b/public/guide-legit.html index a17b536..a8701e0 100644 --- a/public/guide-legit.html +++ b/public/guide-legit.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guides.html b/public/guides.html index f9e145b..b334440 100644 --- a/public/guides.html +++ b/public/guides.html @@ -22,7 +22,7 @@ - +
diff --git a/public/how.html b/public/how.html index 89be947..b375839 100644 --- a/public/how.html +++ b/public/how.html @@ -23,7 +23,7 @@ - +
@@ -46,6 +46,7 @@ +

Watch how it works

A 3-minute walkthrough in Marty's voice: your free text ad, your page, how it spreads five levels down, what counts as a view, Boosts, and where to start.

01 ยท The spread

Your ad spreads down your team

diff --git a/public/index.html b/public/index.html index b6df89e..b8d8f05 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,7 @@ - +
@@ -50,7 +50,7 @@
5 LEVELSOF YOUR TEAM
500VIEWS PER BOOST
-
Post my free adFree for
network members
+
Post my free adFree for
network members
Watch the 3-minute walkthrough
diff --git a/public/ledger.html b/public/ledger.html index ab17afd..da3d4a0 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -22,7 +22,7 @@ - +
diff --git a/public/member.html b/public/member.html index e3863e0..b859bd2 100644 --- a/public/member.html +++ b/public/member.html @@ -22,7 +22,7 @@ - +
diff --git a/public/my.html b/public/my.html index 02552e8..eb62678 100644 --- a/public/my.html +++ b/public/my.html @@ -22,7 +22,7 @@ - +
diff --git a/public/privacy.html b/public/privacy.html index 7592ed9..4f49e03 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -22,7 +22,7 @@ - +
diff --git a/public/promote.html b/public/promote.html index b198dae..c4f694e 100644 --- a/public/promote.html +++ b/public/promote.html @@ -22,7 +22,7 @@ - +
diff --git a/public/terms.html b/public/terms.html index 9779b62..bd21dbf 100644 --- a/public/terms.html +++ b/public/terms.html @@ -22,7 +22,7 @@ - +
diff --git a/server.js b/server.js index b68842d..b5e4d50 100644 --- a/server.js +++ b/server.js @@ -54,7 +54,7 @@ wire.setSecret(SECRET); // ---- http helpers ---- const MIME = { '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': 'text/javascript', '.png': 'image/png', '.jpg': 'image/jpeg', - '.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml' }; + '.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml', '.mp4': 'video/mp4', '.webm': 'video/webm' }; const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://linkspin.app https://polhunter.com; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; " + "img-src 'self' data: blob: https:; connect-src 'self' https://linkspin.app https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org " + "https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com; " @@ -69,6 +69,19 @@ function sendFile(res, file, extra, code) { res.end(data); }); } +// video needs byte ranges (Safari will not play it without them); tutorial videos 2026-11-18 +function sendMedia(req, res, file) { + fs.stat(file, (err, st) => { + if (err || !st.isFile()) { res.writeHead(404, headers({ 'Content-Type': 'text/plain' })); return res.end('Not found'); } + const base = { 'Content-Type': MIME[path.extname(file).toLowerCase()], 'Accept-Ranges': 'bytes', 'Cache-Control': 'public, max-age=86400' }; + const m = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range || ''); + if (!m || (!m[1] && !m[2])) { res.writeHead(200, headers(Object.assign(base, { 'Content-Length': st.size }))); return fs.createReadStream(file).pipe(res); } + let a = m[1] ? +m[1] : Math.max(0, st.size - +m[2]), b = m[1] && m[2] ? Math.min(+m[2], st.size - 1) : st.size - 1; + if (a > b || a >= st.size) { res.writeHead(416, headers({ 'Content-Range': 'bytes */' + st.size })); return res.end(); } + res.writeHead(206, headers(Object.assign(base, { 'Content-Range': 'bytes ' + a + '-' + b + '/' + st.size, 'Content-Length': b - a + 1 }))); + fs.createReadStream(file, { start: a, end: b }).pipe(res); + }); +} function readRaw(req, max) { return new Promise((resolve, reject) => { const ch = []; let n = 0; req.on('data', c => { n += c.length; if (n > max * 8) { req.destroy(); return; } if (n <= max) ch.push(c); }); @@ -250,6 +263,7 @@ const server = http.createServer(async (req, res) => { if (p === '/robots.txt') { res.writeHead(200, headers({ 'Content-Type': 'text/plain; charset=utf-8' })); return res.end('User-agent: *\nAllow: /\nDisallow: /my\nDisallow: /admin\nDisallow: /api/\nDisallow: /go/\nDisallow: /sso/\n\nSitemap: https://' + C.site + '/sitemap.xml\n'); } if (p.startsWith('/assets/') || p.startsWith('/art/') || p === '/favicon.ico') { const f = path.normalize(path.join(PUB, p === '/favicon.ico' ? '/art/icon-192.png' : p)); if (!f.startsWith(PUB + path.sep)) { res.writeHead(400); return res.end(); } + if (/\.(mp4|webm)$/i.test(f)) return sendMedia(req, res, f); return sendFile(res, f); } // click relay: /go/?v=&p= -> the ad's link. Verified clicks rank the weekly board.