Guides (Marty approved 2026-11-17): /guides index plus How it works, Is it legit (VASShop address, Polygonscan + Sourcify, ledger, the 20/10/5x10/20 split checked on chain), Getting the most from your free account, and the FAQ (from the chatbot answers, FAQPage schema). Nav + footer links, sitemap, /how and /faq now open the guides, chatbot 'legit' and 'guides' answers + a GUIDES fact

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:26:34 -06:00
parent 13255c6fda
commit 482ecc62c9
9 changed files with 241 additions and 8 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ window.VAS = (function () {
const MARK = '<svg width="34" height="34" viewBox="0 0 34 34" aria-hidden="true"><circle cx="17" cy="8" r="5" fill="#C4371B"></circle><path d="M17 13 V20 M17 20 L8 29 M17 20 L26 29 M17 20 V30" stroke="#0B2730" stroke-width="2.4" fill="none" stroke-linecap="round"></path></svg>';
function renderNav(active) {
const h = document.createElement('header'); h.className = 'top';
const links = [['/#how', 'How it spreads'], ['/#board', 'Reshare board'], ['/rewards', 'Rewards'], ['/boost', 'Boost'], ['/ledger', 'Ledger'], ['/my', 'My ad tree']];
const links = [['/#how', 'How it spreads'], ['/#board', 'Reshare board'], ['/rewards', 'Rewards'], ['/boost', 'Boost'], ['/ledger', 'Ledger'], ['/guides', 'Guides'], ['/my', 'My ad tree']];
h.innerHTML = '<a class="skip" href="#main">Skip to content</a><div class="wrap"><a class="brand" href="/" aria-label="ViralAdSource, front page">' + MARK + '<span class="wm">ViralAd<b>Source</b></span></a>'
+ '<nav class="links" aria-label="Main">' + links.map(l => '<a href="' + l[0] + '"' + (l[0] === active ? ' class="on" aria-current="page"' : '') + '>' + l[1] + '</a>').join('') + '</nav>'
+ '<div class="row"><a class="btn sm" id="navSign" href="/my">Sign in</a><a class="btn sm ink" href="/my#post">Post your ad free</a></div></div>';
@@ -71,7 +71,7 @@ window.VAS = (function () {
function renderFooter() {
const f = document.createElement('footer'); f.className = 'foot';
f.innerHTML = '<div class="wrap"><p><b>ViralAdSource</b>: every ad has a source. Ad credits buy advertising, not income. Nothing is promised.</p>'
+ '<p><a href="/">Front page</a> &middot; <a href="/#how">How it spreads</a> &middot; <a href="/rewards">Rewards</a> &middot; <a href="/my">My ad tree</a> &middot; <a href="/boost">Boost</a> &middot; <a href="/promote">Promote</a></p>'
+ '<p><a href="/">Front page</a> &middot; <a href="/#how">How it spreads</a> &middot; <a href="/rewards">Rewards</a> &middot; <a href="/my">My ad tree</a> &middot; <a href="/boost">Boost</a> &middot; <a href="/promote">Promote</a> &middot; <a href="/guides">Guides</a> &middot; <a href="/guides/faq">FAQ</a></p>'
+ '<p><a href="/terms">Terms</a> &middot; <a href="/disclaimer">Earnings Disclaimer</a> &middot; <a href="/privacy">Privacy</a> &middot; <a href="/contract">Contract</a> &middot; <a href="/ledger">Ledger</a> &middot; <a href="https://instantadpay.com/support?from=viraladsource" target="_blank" rel="noopener">Support</a></p>'
+ '<p>&copy; 2026 TrustClickz</p><p class="netline"></p></div>';
document.body.appendChild(f);