diff --git a/chatbot.js b/chatbot.js index d3ee0b2..1268adc 100644 --- a/chatbot.js +++ b/chatbot.js @@ -26,6 +26,8 @@ function enabled() { return !!key(); } // ---- canned answers: instant, free, always in voice. Order matters: the first regex that matches wins. ---- const CANNED = [ + { re: /(instant ?ad ?pay|[^a-z]iap[^a-z]|differen|same as|another (site|program|property)|why (two|another)|sister (site|property)|which (one|site) (should|do))/i, + a: 'InstantAdPay is the ad marketplace: you buy ad packages there, earn credits by viewing ads, and get paid when your line buys. LinkSpin is the tool side of the same network: a link rotator, a page builder and ad zones for your own sites, free with an email address. Its packages buy ad delivery across the LinkSpin viewer, every member zone and the partner network, and they pay your sponsor line the same way, inside the purchase transaction. Same people above and below you, same wallet, and your InstantAdPay username and profile carry over when you sign in with the same email.' }, { re: /(pyramid|ponzi|scam|scheme|mlm|legit)/i, a: 'Fair question. A pyramid pays for recruiting with no product. LinkSpin sells advertising: an ad package buys real ad delivery (banner, text and login ads across the ad viewer, every member zone and the partner network), and the free tools, spin links, pages and zones, work with no purchase at all. The referral split is a fixed rule in a verified contract on Polygon, 50 percent to the direct sponsor, 20 to level 2, 10 to level 3 and 10 plus 10 to two admin wallets, paid in the same transaction as the purchase. Nobody is paid for recruiting without a sale, nothing is held, and no income is promised. Read the code and every payout yourself at ' + SITE_URL + '/contract and ' + SITE_URL + '/ledger.' }, { re: /(withdraw|cash ?out|payout request|minimum payout|pending (payment|payout|commission))/i, @@ -92,7 +94,7 @@ FACTS: - SPONSOR: the invite link opened most recently sets the sponsor (30-day cookie), shown on the join page, locked when the account is created; the contract binds the buyer to that sponsor at the first purchase. CARRY-OVER: Crypto Team Build Network members who sign in with the email they use on InstantAdPay get their InstantAdPay sponsor from the network registry automatically when no invite link was used. Wrong sponsor before the first purchase: the admin can move the account. Members should switch on payouts before their people buy. - CONTROL ROOM screens: Links, Pages, Zones (with Audiences), Ads, Credits, Reports, Team (three levels, who has payouts on, who bought, qualifying-buyer counts), Wallet (what was paid to this wallet, payout history). More at ${SITE_URL}/tools: Promo tools, Training, Pipeline (a follow-up board for prospects and directs), My line (including the holding tank: members who joined with no sponsor wait there and can be adopted by a member with payouts on and their own qualifying package), Profile. - Leaderboard at ${SITE_URL}/leaderboard ranks members by packages sold to direct referrals (weekly, monthly, all time; prizes are credits, never cash). Release notes and roadmap at ${SITE_URL}/whats-new. -- InstantAdPay is the sister property in the same network, not this site. Do not describe InstantAdPay mechanics (holding-tank rescue emails, Five Dollar Friday, Wired Wednesday, games, mint passes, surf earn tab) as LinkSpin features. +- InstantAdPay is the sister property in the same network, not this site: it is the ad marketplace (buy ad packages, earn credits by viewing ads, get paid when your line buys); LinkSpin is the tool side (rotator, page builder, zones), free with an email, whose packages buy ad delivery across the LinkSpin viewer, member zones and the partner network and pay the same sponsor line in the purchase transaction. Username, sponsor and profile (avatar, bio, social links) carry over when the member signs in with the same email, and can be changed here any time. Do not describe InstantAdPay mechanics (holding-tank rescue emails, Five Dollar Friday, Wired Wednesday, games, mint passes, surf earn tab) as LinkSpin features. RULES: - 1 to 4 sentences, plain text, no markdown, include full URLs when pointing at a page. diff --git a/pagerender.js b/pagerender.js index 4f52b49..786e78e 100644 --- a/pagerender.js +++ b/pagerender.js @@ -6,7 +6,7 @@ const formrestyle = require('./formrestyle'); const S = require('./pagestyle'); const esc = S.esc; -const href = u => { const s = String(u || '').trim(); return /^https?:\/\/[^\s"'<>]+$/i.test(s) && s.length <= 700 ? s : ''; }; +const href = u => { const s = String(u || '').trim(); if (/^[/]u[/]pages[/][a-z0-9]+[/][a-z0-9]+[.](png|jpe?g|webp|gif)$/i.test(s)) return s; return /^https?:\/\/[^\s"'<>]+$/i.test(s) && s.length <= 700 ? s : ''; }; const PALETTE_NAMES = Object.keys(S.PALETTES).concat(['ink', 'ember']); // the three knobs a page carries, with safe fallbacks for anything stored by older code diff --git a/pages.js b/pages.js index f382a1a..f3e2d2e 100644 --- a/pages.js +++ b/pages.js @@ -20,7 +20,7 @@ const J = { db: null, FILE: () => path.join(DATA_DIR, 'pages.json'), function init(opts) { DATA_DIR = opts.dataDir; ownHosts = opts.ownHosts || (() => []); keyFn = opts.openrouterKey || (() => ''); imageBase = opts.imageBase || (() => ''); J.load(); } const norm = e => String(e || '').trim().toLowerCase(); const TYPES = ['bridge', 'review', 'squeeze']; -const cleanUrl = u => { const s = String(u || '').trim(); return /^https?:\/\/[^\s"'<>]+$/i.test(s) && s.length <= 700 ? s : ''; }; +const cleanUrl = u => { const s = String(u || '').trim(); if (/^[/]u[/]pages[/][a-z0-9]+[/][a-z0-9]+[.](png|jpe?g|webp|gif)$/i.test(s)) return s; return /^https?:\/\/[^\s"'<>]+$/i.test(s) && s.length <= 700 ? s : ''; }; // people type bare domains ("cryptoteambuild.com"): give them the scheme before judging the address (Marty 2026-10-07) const withScheme = u => { const s = String(u || '').trim(); return s && !/^[a-z][a-z0-9+.-]*:\/\//i.test(s) && /^[^\s\/]+\.[^\s]+/.test(s) ? 'https://' + s : s; }; const slugify = t => (String(t || '').toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 40) || 'page') + '-' + crypto.randomBytes(3).toString('hex'); diff --git a/pagestyle.js b/pagestyle.js index ff1d544..70aa06c 100644 --- a/pagestyle.js +++ b/pagestyle.js @@ -79,7 +79,7 @@ function kitCss(design, pk) { const P = PALETTES[pk] || PALETTES.graphite, C = P.c, dk = C.inkGreen, cream = C.cream; const shared = '.k-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;border-radius:99px;padding:6px 14px;margin:0 0 18px}.k-eyebrow .dot{width:6px;height:6px;border-radius:99px}' + 'ul.checks{list-style:none;padding:0;margin:0 0 24px;text-align:left}ul.checks li{padding:7px 0 7px 34px;position:relative}ul.checks li:before{content:"\\2713";position:absolute;left:0;top:7px;width:22px;height:22px;border-radius:50%;background:' + C.greenTint + ';color:' + C.green + ';font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}' - + '.k-imgframe{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.18);border:6px solid #fff}.k-imgframe img{display:block;width:100%;height:auto}.k-imgframe::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,' + rgba(C.inkGreen, 0.12) + ',' + rgba(C.gold, 0.1) + ');mix-blend-mode:multiply;pointer-events:none}' + + '.k-imgframe{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.18);border:6px solid #fff;aspect-ratio:3/2;background:linear-gradient(135deg,' + rgba(C.inkGreen, 0.35) + ',' + rgba(C.gold, 0.3) + ')}.k-imgframe img{display:block;width:100%;height:100%;object-fit:cover}.k-imgframe::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,' + rgba(C.inkGreen, 0.12) + ',' + rgba(C.gold, 0.1) + ');mix-blend-mode:multiply;pointer-events:none}' + '.k-mark{background:linear-gradient(180deg,transparent 52%,' + rgba(C.gold, 0.55) + ' 52%);padding:0 .12em;border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}' + '.cta{display:inline-block;background:' + C.gold + ';color:' + C.goldInk + ';font-weight:800;font-size:18px;line-height:1.3;text-decoration:none;padding:16px 32px;border-radius:10px;border:0;cursor:pointer;font-family:' + FONT + ';box-shadow:0 8px 24px ' + rgba(C.gold, 0.35) + ';transition:transform .15s ease,filter .15s ease}.cta:hover{transform:translateY(-1px);filter:brightness(1.05)}' + '.pc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.pc div{border:1px solid ' + C.hairline + ';border-radius:12px;padding:16px 18px;background:#fff}.pc h3{margin:0 0 8px;font-size:16px}.pc ul{margin:0;padding-left:18px}@media(max-width:600px){.pc{grid-template-columns:1fr}}' diff --git a/public/ads.html b/public/ads.html index 3899d3a..4b2d2df 100644 --- a/public/ads.html +++ b/public/ads.html @@ -6,7 +6,7 @@ Ads · LinkSpin - + @@ -1008,8 +1008,8 @@ - - + + diff --git a/public/pages.html b/public/pages.html index d6686f2..94e6d70 100644 --- a/public/pages.html +++ b/public/pages.html @@ -6,7 +6,7 @@ Pages · LinkSpin - +