diff --git a/chatbot.js b/chatbot.js index cfd3d01..6a6361f 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 URL_ = 'https://' + C.site; const SUPPORT = 'https://instantadpay.com/support'; const NOT_INCOME = 'You buy advertising for your own banners, not an income opportunity.'; @@ -97,6 +97,7 @@ const FACTS = () => [ '- PACKAGES (one-time, POL at the live price, never a subscription, overpayment returned; read from the VBBShop contract just now): ' + livePacksText() + '; banner look $' + C.lookUsd + ' per banner (border + hover teaser, on a waiting or in-loop banner, one per banner); tokens (network visits at the InstantAdPay visit rate) coming soon.', '- SPLIT (VBBShop constants, no owner withdraw): 30% to the member who introduced the buyer (bound once, by a keeper-signed voucher, on the first purchase; none = company), 10% to the weekly prize pot, 60% company, same transaction. Failed sends wait in the contract for their owner to claim.', '- LEADERBOARDS (Monday to Sunday Central): most verified visitors sent (the member\'s ?ref= link) and most different traffic sources (referring sites). Prize pot = 10% of the week\'s sales, half per board, top three ' + places + ' percent, paid in POL to the winners\' VBB wallets the following Monday at the POL price at payout; ties to whoever got there first. Never state a maximum or a cap.', + '- VIDEO (2026-11-18): a short walkthrough video (free daily credit, posting a banner, how visitors move the loop, your link and the weekly leaderboards, packages, where to start) is on ' + URL_ + '/how.', '- PAGES: / (the loop), /how, /packages, /my (My Banners), /leaders, /promote, /ledger, /contract, /terms, /disclaimer, /privacy. GUIDES (point people to them): /guides (index), /guides/is-it-legit (contract, ledger, split), /guides/free-account (free daily credit, network-verified, tips), /guides/prize-boards (weekly leaderboards and prizes), /guides/faq. Sign in through InstantAdPay, LinkSpin or a wallet signature.', weekendFact(), '- NO REFUNDS: blockchain payments are final. SUPPORT for account or payment problems: network support at ' + SUPPORT + ' (InstantAdPay runs the one desk for every network site). ' + NOT_INCOME diff --git a/public/admin.html b/public/admin.html index c52a31d..6d39c20 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..b6541cd 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..653abd4 Binary files /dev/null and b/public/art/how-it-works.mp4 differ diff --git a/public/assets/vbb.css b/public/assets/vbb.css index e931e59..bc26708 100644 --- a/public/assets/vbb.css +++ b/public/assets/vbb.css @@ -208,3 +208,9 @@ footer.foot .netline b{color:#fff} footer.foot .netline .here{color:#fff;font-we .faq summary{cursor:pointer;font-weight:700;font-size:16px} .faq details p{margin:8px 0 0;max-width:760px} .addr{word-break:break-all} + +/* 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:var(--ink);text-decoration:underline;text-underline-offset:3px} +.watchlink svg{color:var(--hot);flex:none} +.howvid video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:var(--edge);border-radius:12px;background:#14121f;margin-top:8px} +.howvid p{margin:10px 0 0} diff --git a/public/contract.html b/public/contract.html index 39600ec..7ba25f3 100644 --- a/public/contract.html +++ b/public/contract.html @@ -22,7 +22,7 @@ - +
diff --git a/public/disclaimer.html b/public/disclaimer.html index f631a92..377fa1a 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 ef23bf7..f38e684 100644 --- a/public/guide-faq.html +++ b/public/guide-faq.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guide-free.html b/public/guide-free.html index 55d44cc..5326359 100644 --- a/public/guide-free.html +++ b/public/guide-free.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guide-legit.html b/public/guide-legit.html index 67f8a56..2bc2f03 100644 --- a/public/guide-legit.html +++ b/public/guide-legit.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guide-prizes.html b/public/guide-prizes.html index fee7349..9efa525 100644 --- a/public/guide-prizes.html +++ b/public/guide-prizes.html @@ -22,7 +22,7 @@ - +
diff --git a/public/guides.html b/public/guides.html index 28a8c38..3986b25 100644 --- a/public/guides.html +++ b/public/guides.html @@ -22,7 +22,7 @@ - +
diff --git a/public/how.html b/public/how.html index de8455e..1aeb212 100644 --- a/public/how.html +++ b/public/how.html @@ -22,11 +22,12 @@ - +

How the loop works

One public page, one shared loop. The whole community moves it with real visitors.

+

Watch how it works

A short walkthrough in Marty's voice: your free daily credit, posting a banner, how visitors move the loop, your link and the weekly leaderboards, packages, and where to start.

  1. Sign in, get a creditSign in through InstantAdPay, LinkSpin or a wallet. Network members (InstantAdPay or LinkSpin) get one free post credit every day they sign in.
  2. Post a bannerA 125x125 image and a link. It waits in line, then enters the loop at the front.
  3. diff --git a/public/index.html b/public/index.html index dd443c2..a2e058a 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,7 @@ - +
    @@ -32,6 +32,7 @@

    Every visitor pushes the loop. Ride it out, earn advertising.

    This page is the loop: member banners in 125x125 tiles. Every 10 verified visitors shift it one place, and the banner at the end rides out. That banner has cycled, and its owner earns 150 network ad views.

    + Watch the 2-minute walkthrough
    diff --git a/public/leaders.html b/public/leaders.html index e19ac87..21d64ae 100644 --- a/public/leaders.html +++ b/public/leaders.html @@ -22,7 +22,7 @@ - +
    diff --git a/public/ledger.html b/public/ledger.html index f2b4070..2ff5be9 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -22,7 +22,7 @@ - +
    diff --git a/public/my.html b/public/my.html index 2e52fe4..359281c 100644 --- a/public/my.html +++ b/public/my.html @@ -22,7 +22,7 @@ - +
    diff --git a/public/packages.html b/public/packages.html index 525ff01..184a6bd 100644 --- a/public/packages.html +++ b/public/packages.html @@ -22,7 +22,7 @@ - +
    diff --git a/public/privacy.html b/public/privacy.html index 85a87ee..0589db3 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -22,7 +22,7 @@ - +
    diff --git a/public/promote.html b/public/promote.html index 2772faf..e70b1ce 100644 --- a/public/promote.html +++ b/public/promote.html @@ -22,7 +22,7 @@ - + diff --git a/public/terms.html b/public/terms.html index 49cb70d..65fa9fb 100644 --- a/public/terms.html +++ b/public/terms.html @@ -22,7 +22,7 @@ - +
    diff --git a/server.js b/server.js index 1992882..eaa70e1 100644 --- a/server.js +++ b/server.js @@ -46,7 +46,7 @@ const hash = s => crypto.createHmac('sha256', SECRET).update(s).digest('hex').sl // ---- 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; " @@ -61,6 +61,19 @@ function sendFile(res, file, extra) { 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); }); @@ -266,6 +279,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); } if (p.startsWith('/u/')) {