Guides (Marty 2026-11-17): /guides index + How The Draft works, Is 5xYourTeam legit?, Coaching your picks, FAQ
Static pages in the site's look (legal card layout, FX nav/footer via misc.js data-page=guides), canonical + meta + OG, linked from the nav and footer, in the sitemap, 'guides' reserved from coach URLs. Every number checked against config.js defaults (no DRAFT_/PICK_/POT_ env overrides on the live app) and DraftPosition on chain (priceCents 1000, 2500/500/1000 bps, MAX_DEPTH 20, MAX_QTY 10, company + prize wallets). Chatbot: f-guides FAQ entry + GUIDES fact. qa/guides.test.cjs (59 checks) keeps the pages in step with config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ window.FX = (function () {
|
||||
let weekLabel = '';
|
||||
function renderNav(active, week) {
|
||||
const nav = document.createElement('nav'); nav.className = 'top';
|
||||
const links = [['/', 'Draft Board'], ['/team', 'My Team'], ['/cards', 'Card Collection'], ['/join', 'Get a Position'], ['/ledger', 'Ledger'], ['/contract', 'Contract']];
|
||||
const links = [['/', 'Draft Board'], ['/team', 'My Team'], ['/cards', 'Card Collection'], ['/join', 'Get a Position'], ['/ledger', 'Ledger'], ['/contract', 'Contract'], ['/guides', 'Guides']];
|
||||
nav.innerHTML = '<div class="wrap"><a class="brand" href="/" aria-label="5xYourTeam, the draft board"><span class="wm">5X<b>YOUR</b>TEAM</span><span class="wk" id="navWeek" hidden></span></a><div class="links">'
|
||||
+ links.map(l => '<a href="' + l[0] + '"' + (l[0] === active ? ' class="on" aria-current="page"' : '') + '>' + l[1] + '</a>').join('') + '</div></div>';
|
||||
document.body.prepend(nav);
|
||||
@@ -49,7 +49,7 @@ window.FX = (function () {
|
||||
const f = document.createElement('footer'); f.className = 'foot';
|
||||
f.innerHTML = '<div class="wrap"><p><b>5xYourTeam</b>, the weekly draft for people who need a sponsor</p>'
|
||||
+ '<p>A position buys a draft spot and coaching tools, not income. Nothing is promised.</p>'
|
||||
+ '<p><a href="/">Draft Board</a> · <a href="/team">My Team</a> · <a href="/cards">Cards</a> · <a href="/join">Get a Position</a> · <a href="/promote">Promote</a></p>'
|
||||
+ '<p><a href="/">Draft Board</a> · <a href="/team">My Team</a> · <a href="/cards">Cards</a> · <a href="/join">Get a Position</a> · <a href="/promote">Promote</a> · <a href="/guides">Guides</a></p>'
|
||||
+ '<p class="legal-links"><a href="/terms">Terms</a> · <a href="/disclaimer">Earnings Disclaimer</a> · <a href="/privacy">Privacy</a> · <a href="/contract">Contract</a> · <a href="/ledger">Ledger</a> · <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Support</a></p>'
|
||||
+ '<p class="co">© 2026 TrustClickz</p><p class="netline"></p></div>';
|
||||
document.body.appendChild(f);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
(async function () {
|
||||
const page = document.body.dataset.page; const $ = FX.$, esc = FX.esc;
|
||||
if (page === 'legal') { FX.renderNav(''); FX.renderFooter(); return; }
|
||||
if (page === 'guides') { FX.renderNav('/guides'); FX.renderFooter(); return; } // Guides pages (2026-11-17)
|
||||
if (page === 'promote') {
|
||||
FX.renderNav(''); FX.renderFooter();
|
||||
const RE = /^(?:[A-Za-z0-9_.-]{2,40}|0x[0-9a-fA-F]{40})$/;
|
||||
|
||||
Reference in New Issue
Block a user