Tutorial video: 2.5-minute narrated walkthrough on /how and /guides/how-it-works (Watch how it works) + 'Watch the 3-minute walkthrough' link under the home hero button; server sends .mp4/.webm with byte ranges (sendMedia); chatbot fact; vab.css?v=8 (Marty 2026-11-18: tutorial explainer videos for each rebuilt site)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -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).',
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
Binary file not shown.
@@ -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}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal">
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal guides">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal guides">
|
||||
|
||||
@@ -22,11 +22,12 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal guides">
|
||||
<section class="panel hero"><svg class="netlines" viewBox="0 0 600 400" preserveAspectRatio="none" aria-hidden="true"><g stroke="#9DBEFF" stroke-width="1" fill="none"><path d="M0 300 Q150 180 300 240 T600 120"/><path d="M0 220 Q200 90 360 160 T600 40"/><path d="M40 400 L220 120 L420 260 L600 60"/></g><g fill="#FFC21A"><circle cx="220" cy="120" r="4"/><circle cx="420" cy="260" r="4"/><circle cx="360" cy="160" r="3"/><circle cx="300" cy="240" r="3"/><circle cx="520" cy="90" r="4"/></g></svg><div class="copy"><p class="kicker">Guide</p><h1>How ViralAdBlitz works</h1><p class="lead">One free text ad. It shows on your own page and on the pages of the people you bring in, five levels down.</p></div></section>
|
||||
<div class="card howvid" id="watch"><h2 id="watchTitle">Watch how it works</h2><video controls playsinline preload="none" poster="/art/how-it-works.jpg?v=20261118a" width="1920" height="1080" aria-describedby="watchNote"><source src="/art/how-it-works.mp4?v=20261118a" type="video/mp4"></video><p id="watchNote">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.</p></div>
|
||||
<div class="card"><h2>1. You post one free text ad</h2><p>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 <a href="/my">My page</a> and you can edit it any time. Posting and editing cost nothing.</p></div>
|
||||
<div class="card"><h2>2. Your page shows your ad and your upline's</h2><p>Your page lives at <span class="mono">viraladblitz.com/your-name</span>. 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.</p><p>If someone above you has no live ad, the next person up takes the place. The site looks up to 20 places.</p></div>
|
||||
<div class="card"><h2>3. Your ad spreads five levels down</h2><p>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.</p></div>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal guides">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal guides">
|
||||
|
||||
+2
-1
@@ -23,7 +23,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap how">
|
||||
@@ -46,6 +46,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="card howvid" id="watch" style="margin:24px 0"><h2 id="watchTitle">Watch how it works</h2><video controls playsinline preload="none" poster="/art/how-it-works.jpg?v=20261118a" width="1920" height="1080" aria-describedby="watchNote"><source src="/art/how-it-works.mp4?v=20261118a" type="video/mp4"></video><p id="watchNote">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.</p></div>
|
||||
<section class="hsec" id="spread" aria-labelledby="hSpread">
|
||||
<div class="shead"><div><p class="kicker">01 · The spread</p><h2 id="hSpread">Your ad spreads down your team</h2></div></div>
|
||||
<div class="hsplit">
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -50,7 +50,7 @@
|
||||
<div class="gchip"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#0A1F6B" stroke-width="2" aria-hidden="true"><circle cx="12" cy="5" r="2.5"/><circle cx="6" cy="18" r="2.5"/><circle cx="18" cy="18" r="2.5"/><path d="M12 7.5v4M12 11.5 6 15.5M12 11.5l6 4"/></svg><span><b>5 LEVELS</b><i>OF YOUR TEAM</i></span></div>
|
||||
<div class="gchip"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#0A1F6B" stroke-width="2" aria-hidden="true"><path d="M4 20V10M10 20V6M16 20v-8M22 20V3"/></svg><span><b>500</b><i>VIEWS PER BOOST</i></span></div>
|
||||
</div>
|
||||
<div class="hx-cta"><a class="pill-cta" href="/my">Post my free ad<span class="chev" aria-hidden="true"> »</span></a><span class="slant-note">Free for<br>network members</span></div>
|
||||
<div class="hx-cta"><a class="pill-cta" href="/my">Post my free ad<span class="chev" aria-hidden="true"> »</span></a><span class="slant-note">Free for<br>network members</span></div><a class="watchlink" href="/guides/how-it-works#watch"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><circle cx="12" cy="12" r="11" fill="currentColor"/><path d="M10 8l6 4-6 4z" fill="#fff"/></svg>Watch the 3-minute walkthrough</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<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="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">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vab.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap legal">
|
||||
|
||||
@@ -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/<ad id>?v=<verified token>&p=<placement> -> the ad's link. Verified clicks rank the weekly board.
|
||||
|
||||
Reference in New Issue
Block a user