diff --git a/chatbot.js b/chatbot.js index 8a4f6f6..4ad1436 100644 --- a/chatbot.js +++ b/chatbot.js @@ -12,7 +12,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'); const URL_ = 'https://' + C.site; const SUPPORT = 'https://instantadpay.com/support'; @@ -93,6 +93,7 @@ const FACTS = () => [ '- SPLIT (DraftPosition constants, no owner withdraw): sponsor ' + SP.sponsorPct + '%, levels 2-5 ' + SP.levelPct + '% each, Best Coach pot ' + SP.potPct + '%, company ' + SP.companyPct + '%, same transaction. Pass-up: only position holders receive; the first holder up the line gets the ' + SP.sponsorPct + '%, the next four ' + SP.levelPct + '% each, within ' + SP.maxDepth + ' places; an unclaimed level share goes to the company; the pot share always goes to the pot. A failed send waits in the contract for its owner to claim. Sponsor line from the network hub, signed on the first position and recorded link by link, never changed.', '- BEST COACH POT: ' + SP.potPct + '% of every position to a prize wallet fixed in the contract; each Central week shared among the coaches whose picks started the most (places ' + POT + ' percent; tie = got there first), announced on the board, every payout on the ledger. Prizes depend on that week\'s pot, never promised. Boards also show Rookie of the Week and last week\'s top 3.', '- CARDS: Rookie (drafted), Starter (wallet), Pro (payouts on), All-Star (first purchase), Hall of Fame (holds a position of their own). Public cards show milestones, never earnings; scouting earnings show to coaches only.', + '- VIDEO (2026-11-18): a short walkthrough video (the pool, positions, draft day, coaching on My Team, started picks and cards, Best Coach, where to start) is on ' + URL_ + '/guides/how-the-draft-works.', '- GUIDES (plain-word pages, send people there for detail): ' + URL_ + '/guides (index), /guides/how-the-draft-works, /guides/is-5xyourteam-legit (contract, ledger, split), /guides/coaching-your-picks, /guides/faq.', '- PAGES: / (pool, tracker, standings), /join (buy), /guides, /team (coaching), /cards, /builder (CryptoTeamBuild builder, third-party programs), /promote, /ledger, /contract, /terms, /disclaimer, /privacy. Run by TrustClickz.', (weekend.live() ? '- NETWORK WEEKEND (live now, Black Friday to Cyber Monday, Fri 11-27 to Mon 11-30, midnight to midnight Central): every position bought in the window comes with ' + weekend.weekendPicks() + ' instant picks instead of ' + PO.picksOnBuy + ', same $' + PO.usd + ' price. This overrides the ' + PO.picksOnBuy + ' picks above until Tuesday 12-01 00:00 Central. Every network deal: https://instantadpay.com/weekend' : null), diff --git a/public/admin.html b/public/admin.html index 6d0ea99..243f2c4 100644 --- a/public/admin.html +++ b/public/admin.html @@ -19,7 +19,7 @@ - +
diff --git a/public/art/how-it-works.jpg b/public/art/how-it-works.jpg new file mode 100644 index 0000000..1db3c7c 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..4646aba Binary files /dev/null and b/public/art/how-it-works.mp4 differ diff --git a/public/assets/fx.css b/public/assets/fx.css index b5fd614..db12874 100644 --- a/public/assets/fx.css +++ b/public/assets/fx.css @@ -221,3 +221,9 @@ footer.foot p{margin:4px 0}footer.foot a{color:var(--gold)}footer.foot .here{col /* staging test mode strip (DRAFT_LIVE not 1) */ .testmode{background:#ffc93c;color:#0b1530;font-size:14px;padding:8px 0;border-bottom:2px solid #0b1530} .testmode b{letter-spacing:.04em} + +/* 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:12px;font-weight:600;color:var(--gold);text-decoration:underline;text-underline-offset:3px} +.watchlink svg{flex:none} +.howvid video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid var(--line);background:#07102a} +.howvid p{margin:0} diff --git a/public/builder.html b/public/builder.html index 9ce2d36..1df6adf 100644 --- a/public/builder.html +++ b/public/builder.html @@ -19,7 +19,7 @@ - +
diff --git a/public/cards.html b/public/cards.html index d214252..aeda2a4 100644 --- a/public/cards.html +++ b/public/cards.html @@ -19,7 +19,7 @@ - +
diff --git a/public/coach.html b/public/coach.html index 80a4a9a..ac03848 100644 --- a/public/coach.html +++ b/public/coach.html @@ -19,7 +19,7 @@ - +
diff --git a/public/contract.html b/public/contract.html index f637950..e16c491 100644 --- a/public/contract.html +++ b/public/contract.html @@ -19,7 +19,7 @@ - +
diff --git a/public/disclaimer.html b/public/disclaimer.html index 2488599..e3e311d 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -19,7 +19,7 @@ - +
diff --git a/public/guides.html b/public/guides.html index b8c1804..c4684b5 100644 --- a/public/guides.html +++ b/public/guides.html @@ -21,7 +21,7 @@ - +
diff --git a/public/guides/coaching-your-picks.html b/public/guides/coaching-your-picks.html index 42bf9d9..79d9aa5 100644 --- a/public/guides/coaching-your-picks.html +++ b/public/guides/coaching-your-picks.html @@ -21,7 +21,7 @@ - +
diff --git a/public/guides/faq.html b/public/guides/faq.html index 6a5e93f..6f42f46 100644 --- a/public/guides/faq.html +++ b/public/guides/faq.html @@ -21,7 +21,7 @@ - +
diff --git a/public/guides/how-the-draft-works.html b/public/guides/how-the-draft-works.html index 0a0994e..1419c56 100644 --- a/public/guides/how-the-draft-works.html +++ b/public/guides/how-the-draft-works.html @@ -21,11 +21,12 @@ - +

GUIDES · HOW IT WORKS

How The Draft works

Coaches draft people who joined the network without a sponsor, every week, then help them get started.

+

Watch how it works

A short walkthrough in Marty's voice: the pool, positions, draft day, coaching on My Team, started picks and trading cards, Best Coach, and where to start.

The short version

A $10 one-time position (paid in POL, never a subscription) makes you a coach. It gives you 5 picks right away and a spot in every weekly draft. Each pick becomes yours to sponsor and coach through site messages. Special network events can add extra instant picks; the join page shows the current number.

Who is in the pool

The pool is the network's holding tank: people who joined without a sponsor. A pick is an adoption under the network's holding-tank rules. These people are never in the pool:

  • anyone locked on a network contract
  • anyone who already has a sponsor
  • anyone who has already been adopted twice
  • spam or throwaway sign-ups
  • anyone in their first 24 hours after signing up

Draft day

The draft runs every Monday at 7 PM Central, 5 rounds, in straight order (the same earned order every round).

  • When it is your turn and you are on the draft board page, you get a 90-second clock to pick.
  • If you are away, you are auto-picked at once: the first available player on your own queue, or else the best available player by scouting score.
  • A coach who already has 10 open picks is skipped for that slot.
  • The draft ends when every round is made or the pool runs out.
  • If the site is down and a draft would start more than 6 hours late, that week's draft is skipped, never run late.
diff --git a/public/guides/is-5xyourteam-legit.html b/public/guides/is-5xyourteam-legit.html index 2ad7c67..a9e31e5 100644 --- a/public/guides/is-5xyourteam-legit.html +++ b/public/guides/is-5xyourteam-legit.html @@ -21,7 +21,7 @@ - +
diff --git a/public/index.html b/public/index.html index e7208d2..843e5eb 100644 --- a/public/index.html +++ b/public/index.html @@ -19,14 +19,15 @@ - +

THE DRAFT

Draft your team every Monday.

Draft order is earned: the coaches who got the most of last week's picks started pick first. Help your picks get going and you move up next Monday.

-
+ + Watch the 2-minute walkthrough
Best Coach pot this week0 POL10% of every position sold this week
diff --git a/public/join.html b/public/join.html index c65ed85..e951004 100644 --- a/public/join.html +++ b/public/join.html @@ -19,7 +19,7 @@ - +
diff --git a/public/ledger.html b/public/ledger.html index 0bc93aa..a16fb8e 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -19,7 +19,7 @@ - +
diff --git a/public/privacy.html b/public/privacy.html index 4e185d3..bbcbaa1 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -19,7 +19,7 @@ - +
diff --git a/public/promote.html b/public/promote.html index 63a420d..96737a7 100644 --- a/public/promote.html +++ b/public/promote.html @@ -19,7 +19,7 @@ - +
diff --git a/public/team.html b/public/team.html index 944df62..be373a1 100644 --- a/public/team.html +++ b/public/team.html @@ -19,7 +19,7 @@ - +
diff --git a/public/terms.html b/public/terms.html index 621e767..4e4b99f 100644 --- a/public/terms.html +++ b/public/terms.html @@ -19,7 +19,7 @@ - +
diff --git a/server.js b/server.js index b41042c..8114d28 100644 --- a/server.js +++ b/server.js @@ -46,7 +46,7 @@ const DAY = 86400000; // ---- 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, 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); }); @@ -243,6 +256,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: /team\nDisallow: /admin\nDisallow: /api/\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); } // the Draft Day results card (1080 x 1080, rendered to PNG by tools/art.mjs for Telegram)