diff --git a/blog.js b/blog.js index 188af40..2e18d6f 100644 --- a/blog.js +++ b/blog.js @@ -153,7 +153,7 @@ function rss(posts) { return 'LinkSpin blog' + SITE + '/blogCoaching and teaching articles from Marty Bostick.' + items + ''; } function sitemap(posts) { - const pages = ['/', '/blog', '/whats-new', '/leaderboard', '/ledger', '/contract', '/plays', '/wallets', '/earning', '/partners', '/publishers']; + const pages = ['/', '/blog', '/whats-new', '/leaderboard', '/ledger', '/contract', '/plays', '/wallets', '/earning', '/partners', '/publishers', '/refuel']; const u = pages.map(p => '' + SITE + p + 'weekly').join('') + posts.map(p => '' + SITE + '/blog/' + p.slug + '' + new Date(p.updated).toISOString().slice(0, 10) + 'monthly').join(''); return '' + u + ''; diff --git a/catalog/training.json b/catalog/training.json index dd95e53..9057858 100644 --- a/catalog/training.json +++ b/catalog/training.json @@ -5,5 +5,13 @@ "title": "Banner Spin: one banner slot, a whole campaign", "desc": "Banner Spin gives you one image address and one click address that rotate up to 25 banners, each with its own target page or spin link. Put it in one banner slot on a traffic exchange, a safelist, a forum signature or your own site once, then change the banners from your Control Room whenever you like. Nobody has to update anything on their side.\n\nWho gets it. It is a free add-on that opens with your own package of $25 or more. Starter holds 2 Banner Spins with 5 banners each. Builder (level 2 open, 2 qualifying buyers) holds 5 with 15 each. Leader (level 3 open, 5 qualifying buyers) holds 10 with 25 each. If you drop below a tier, everything you built keeps serving; you just cannot add more until you are back.\n\nStep 1, name and size. Open Links, switch to Banner Spins and press New Banner Spin. Pick one size: a slot on an exchange has one size, so every banner in a Banner Spin should be that exact size (468x60, 728x90, 300x250, 125x125, 160x600, 120x600, 336x280, 250x250 or 320x50). Set a fallback page: that is where a click goes when we cannot tell which banner the visitor saw.\n\nStep 2, add banners. Upload a JPG, PNG or GIF (animated is fine, 150 KB at most) or paste an https image address. The builder previews it at real size and warns you when it is the wrong size. Pick where a click goes: any page, or one of your own spin links, so a banner can rotate pages behind it too.\n\nStep 3, weights and mode. A banner with weight 20 shows twice as often as one with 10. Random by weight picks again on every view. One per visitor shows the same person the same banner all day, which keeps a split test clean on exchanges that reload pages. You can also give the whole Banner Spin, or one banner, its own hours.\n\nStep 4, get the code. Open Get the code and copy the embed that fits the place: the image address plus click address for exchanges, safelists and downline builders; the HTML snippet for your own site or blog; the script tag wherever scripts are allowed (it writes the banner and its own link together, so every click lands on the right target); the forum code for signatures. Every link domain answers every code, so if one domain ever has trouble you swap only the domain.\n\nWhere it will not rotate. Paid ad networks copy your image to their own servers when you upload a creative, so it freezes on one banner there: upload real banners to them instead. Gmail and some mail apps fetch images once through their own proxy, so most email readers see one banner and their clicks go to the fallback. For email, use a Banner Spin with a single banner (still tracked) and swap it when you want a change.\n\nReading the numbers. The Stats tab and the Reports screen show views, unique viewers, clicks, click rate, match rate and conversions for every banner and every placement (the page your banner sits on), by day, country and device. Bots, link previews and servers are never counted as views; they are shown on their own line. A WINNER badge appears once two or more live banners have 1,000 views each and one leads on click rate. LinkSpin never changes your weights for you: raise the winner or pause the rest when you are ready. A placement marked CACHED copies banners to its own server, so the rotation is frozen there; spend your credits elsewhere.\n\nHealth checks. Every 30 minutes LinkSpin checks each live banner: the image must load as an image of the right size, and its target must not be dead or parked. Three failures in a row pause that banner and it comes back on its own after two clean checks. The last live banner in a Banner Spin is never paused. You see the status on every banner row.\n\nTeach it forward. When someone in your line buys their first $25 package, show them this lesson and help them build their first Banner Spin with two banners for the same offer. Two weeks of numbers tell them which banner to keep.", "docUrl": "/links#b" + }, + { + "id": "refuel-guide", + "group": "Fuel Your Offers", + "title": "Fuel Your Offers: how the Monthly Refuel streak works", + "desc": "Refuel your ads every month and the bonus climbs. A new package of $25 or more under Credits (or $20 or more on InstantAdPay) starts your streak and sets your own refuel day. Each monthly refuel inside your window (5 days before to 5 days after your refuel day) adds bonus ad credits: +10%, +15%, +20%, then +25% from month 4. Refuel both sites in the same cycle and both get +15%, +20%, +30%, then +40%. Either site alone keeps the streak going.\n\nThe guide walks through the whole flow with a diagram: Pit Stops, the one free miss a year, the Refuel Kit that loads into your Banner Spin, the Engine Room on Ads, and the reminders. Bonus credits buy ad delivery only; they are never cash.", + "docUrl": "/refuel", + "docLabel": "Read the guide" } ] diff --git a/chatbot.js b/chatbot.js index 31aeeda..c5d5585 100644 --- a/chatbot.js +++ b/chatbot.js @@ -41,7 +41,7 @@ const SUPPORT_RE = /(contact|reach|email|e-mail|message|talk to|speak (to|with)| const CANNED = [ { id: 'refuel', title: 'Monthly Refuel streak and Pit Stops', q: ['What is my refuel day?', 'How does the refuel streak work?', 'What is a Pit Stop?', 'How much should I spend each month?'], tags: ['refuel', 'streak', 'pit stop', 'twin engine', 'bonus credits'], re: /(refuel(ing)? (day|streak|bonus|window)|my refuel|monthly refuel|pit ?stop|twin engine|both engines|refuel streak|streak bonus|free miss)/i, - a: 'The Monthly Refuel streak rewards members who refuel their ads every month. A counted refuel is a new package of $20 or more on InstantAdPay, or $25 or more on LinkSpin, bought by one of your own positions. Your first one sets your refuel day; the next is due 30 days later, the window opens 5 days before that day and there is a 5-day grace after it (Central time). Each refuel adds bonus ad credits on the site where you bought: month 1 +10%, month 2 +15%, month 3 +20%, month 4 and up +25%. Refuel BOTH sites in the same cycle and each gets +15%, +20%, +30% or +40% (the first site is topped up to that rate), plus a 100-credit Featured bonus on InstantAdPay from month 4 (enough for two Featured days and more). The bonus stacks on Five Dollar Friday and Wired Wednesday. A $20+/$25+ top-up between refuel days is a Pit Stop: half your current rate, once per site per cycle, and it does not count as the refuel. Miss the grace and the streak starts again, except for one free miss a year. Badges at your first refuel and at 3, 6 and 12 months. Each counted refuel also unlocks the Refuel Kit for that month: members-only banners (728x90, 300x250, 468x60, 160x600 and 1200x630) with your @name and a QR code to your own link drawn on them, in the Ads screen (with a Load into my Banner Spin button); they stay yours after the month, a 3-month streak adds an animated version and 6 months a custom-banners credit. Your first counted refuel also opens the Engine Room panel on the Ads screen: three plain dials (fuel left on both sites against this cycle’s refuel with days left at your burn, clicks this week with clicks per 1,000 credits, goals this month against a goal you set), warning lights, six part lights with setup links and one next move. Your refuel day, streak, next bonus and Pit Stop status are on the Refuel card on your Credits screen. Buy here: https://linkspin.app/credits. Bonus credits are ad credits that buy delivery, never cash, and no income is guaranteed.' }, + a: 'The Monthly Refuel streak rewards members who refuel their ads every month. A counted refuel is a new package of $20 or more on InstantAdPay, or $25 or more on LinkSpin, bought by one of your own positions. Your first one sets your refuel day; the next is due 30 days later, the window opens 5 days before that day and there is a 5-day grace after it (Central time). Each refuel adds bonus ad credits on the site where you bought: month 1 +10%, month 2 +15%, month 3 +20%, month 4 and up +25%. Refuel BOTH sites in the same cycle and each gets +15%, +20%, +30% or +40% (the first site is topped up to that rate), plus a 100-credit Featured bonus on InstantAdPay from month 4 (enough for two Featured days and more). Either site alone keeps your streak going; both sites in a cycle is the bigger bonus. The bonus stacks on Five Dollar Friday and Wired Wednesday. Another $20+/$25+ package on a site you already refueled this cycle, before your next window opens, is a Pit Stop: half your current rate, once per site per cycle, and it does not count as the refuel. Miss the grace and the streak starts again, except for one free miss a year. Badges at your first refuel and at 3, 6 and 12 months. Each counted refuel also unlocks the Refuel Kit for that month: members-only banners (728x90, 300x250, 468x60, 160x600 and 1200x630) with your @name and a QR code to your own link drawn on them, in the Ads screen (with a Load into my Banner Spin button); they stay yours after the month, a 3-month streak adds an animated version and 6 months a custom-banners credit. Your first counted refuel also opens the Engine Room panel on the Ads screen: three plain dials (fuel left on both sites against this cycle’s refuel with days left at your burn, clicks this week with clicks per 1,000 credits, goals this month against a goal you set), warning lights, six part lights with setup links and one next move. Your refuel day, streak, next bonus and Pit Stop status are on the Refuel card on your Credits screen. Buy here: https://linkspin.app/credits. The full guide, with the flow step by step: https://linkspin.app/refuel. Bonus credits are ad credits that buy delivery, never cash, and no income is guaranteed.' }, { id: 'support', title: 'Contact support or open a ticket', q: ['How do I contact support?', 'How do I talk to a real person?', 'How do I open a ticket?'], tags: ['support', 'help', 'ticket', 'contact'], re: SUPPORT_RE, handoff: true, a: 'Open Help in your Control Room (' + SITE_URL + '/help) to send Marty a ticket, and his replies land right there and in your email. Not signed in or locked out? Use ' + SITE_URL + '/support. You can also tap "Send this to support" below and I will pass this chat along.' }, @@ -153,7 +153,7 @@ function seeds() { // ---- facts for the AI fallback ---- // the refuel fact follows the refuelStreak switch: while it is off the assistant says it is not live yet (2026-10-24) let REFUEL_ON = () => false; -function refuelFact() { return REFUEL_ON() ? "- MONTHLY REFUEL STREAK (built 2026-10-24, switch refuelStreak): ONE streak per member across InstantAdPay and LinkSpin. Counted refuel = a NEW package of $20+ on InstantAdPay or $25+ on LinkSpin by one of the member's own positions. First one sets the member's own refuel day; next due 30 days after the last counted refuel; window opens 5 days before the due day; 5-day grace after it; Central time. Missing the grace resets the streak, except one free miss per 365 days. Bonus (purchased-grade ad credits on the site where bought, credit log 'Refuel streak'): one engine m1 +10%, m2 +15%, m3 +20%, m4+ +25%; both sites in the same cycle m1 +15%, m2 +20%, m3 +30%, m4+ +40% each (first site topped up to the both rate, difference only) plus a 100-credit Featured bonus on InstantAdPay at m4+ (purchased-grade credits, any format). Stacks on Five Dollar Friday / Wired Wednesday. Pit Stop: a $20+/$25+ package between refuel days = half the current streak rate, once per site per cycle, not a counted refuel. Badges: Engine Started (first refuel), Refueled 3 / 6 / 12 months. ENGINE ROOM: unlocked by the first counted refuel (greyed 'Refuel to start your engine' before), IAP tab Engine Room + LinkSpin Ads screen panel, same data both sites: dials Fuel left (credits free + in campaigns on both sites vs this cycle's refuel credits incl. bonus, days left at the recent burn), Clicks this week (vs last week, clicks per 1,000 credits), Goals this month (conversion pixel conversions since the 1st Central vs the member's own goal); streak panel; warning lights (ads at 80%, ads out, refuel day coming, login slot open); six part lights (fuel, banner spin, spin link, page, testing, conversion tracking: green working, amber needs attention, grey not started with a Set it up link); one Next move button from simple rules. REFUEL KIT: each counted refuel unlocks the Central-month's members-only banner set for this site's own program (5 sizes, personalized server-side with @username + QR to the member's link; IAP: Promo tools card with Use in an IAP banner campaign; LinkSpin: Ads screen card with Load into my Banner Spin); kits stay usable after the month; streak month 3+ adds an animated GIF, month 6+ a BannerKitAI custom-banners credit (coming, entitlement saved). Reminders 5 days before, on the day, last call at the end of grace (email + on-site notice). The member's Refuel card (InstantAdPay Overview, LinkSpin Credits/Ads) shows refuel day, streak, next bonus, Pit Stop status. Ad credits only, never cash; never promise income. No auto-billing: the member chooses every package.\n" : '- MONTHLY REFUEL STREAK: built but NOT switched on yet. If asked, say it is coming and nothing counts toward it today; do not quote bonus rates or dates.\n'; } +function refuelFact() { return REFUEL_ON() ? "- MONTHLY REFUEL STREAK (built 2026-10-24, switch refuelStreak): ONE streak per member across InstantAdPay and LinkSpin. Counted refuel = a NEW package of $20+ on InstantAdPay or $25+ on LinkSpin by one of the member's own positions. First one sets the member's own refuel day; next due 30 days after the last counted refuel; window opens 5 days before the due day; 5-day grace after it; Central time. Missing the grace resets the streak, except one free miss per 365 days. Bonus (purchased-grade ad credits on the site where bought, credit log 'Refuel streak'): one engine m1 +10%, m2 +15%, m3 +20%, m4+ +25%; both sites in the same cycle m1 +15%, m2 +20%, m3 +30%, m4+ +40% each (first site topped up to the both rate, difference only) plus a 100-credit Featured bonus on InstantAdPay at m4+ (purchased-grade credits, any format). Stacks on Five Dollar Friday / Wired Wednesday. Pit Stop: another $20+/$25+ package on a site already refueled this cycle, before the next window opens (the other site's first package in the cycle is the second engine instead) = half the current streak rate, once per site per cycle, not a counted refuel. Badges: Engine Started (first refuel), Refueled 3 / 6 / 12 months. ENGINE ROOM: unlocked by the first counted refuel (greyed 'Refuel to start your engine' before), IAP tab Engine Room + LinkSpin Ads screen panel, same data both sites: dials Fuel left (credits free + in campaigns on both sites vs this cycle's refuel credits incl. bonus, days left at the recent burn), Clicks this week (vs last week, clicks per 1,000 credits), Goals this month (conversion pixel conversions since the 1st Central vs the member's own goal); streak panel; warning lights (ads at 80%, ads out, refuel day coming, login slot open); six part lights (fuel, banner spin, spin link, page, testing, conversion tracking: green working, amber needs attention, grey not started with a Set it up link); one Next move button from simple rules. REFUEL KIT: each counted refuel unlocks the Central-month's members-only banner set for this site's own program (5 sizes, personalized server-side with @username + QR to the member's link; IAP: Promo tools card with Use in an IAP banner campaign; LinkSpin: Ads screen card with Load into my Banner Spin); kits stay usable after the month; streak month 3+ adds an animated GIF, month 6+ a BannerKitAI custom-banners credit (coming, entitlement saved). Reminders 5 days before, on the day, last call at the end of grace (email + on-site notice). The member's Refuel card (InstantAdPay Overview, LinkSpin Credits/Ads) shows refuel day, streak, next bonus, Pit Stop status. Either site alone keeps the streak (one-engine rates); both sites in one cycle = the bigger bonus; never say both are required. MEMBER GUIDE PAGE (public, 2026-10-24): /refuel on both sites (https://instantadpay.com/refuel and https://linkspin.app/refuel): the flow, the numbers, the member steps, leader coaching and FAQ; point members there for the full picture. Ad credits only, never cash; never promise income. No auto-billing: the member chooses every package.\n" : '- MONTHLY REFUEL STREAK: built but NOT switched on yet. If asked, say it is coming and nothing counts toward it today; do not quote bonus rates or dates.\n'; } const REFUEL_OFF_ANSWER = 'The Monthly Refuel streak (bonus ad credits for refueling every month, more when you refuel both InstantAdPay and LinkSpin) is built but not switched on yet, so nothing counts toward it today. The bonuses running now are Five Dollar Friday and Wired Wednesday on InstantAdPay. When the streak goes live, your Refuel card will show your refuel day.'; function systemPrompt(kbBlock) { return `You are the assistant on LinkSpin (${SITE_URL}), a link rotator, page builder and advertising network for marketers, a Crypto Team Build Network property. diff --git a/engine.js b/engine.js index e2f5f92..385a509 100644 --- a/engine.js +++ b/engine.js @@ -93,7 +93,7 @@ function build(o) { else next = { key: 'cruise', label: 'Keep it running', why: 'Every part is lit. Check again on your refuel day.', link: LINKS.iapCampaigns }; return { on: true, locked, fuel, clicks, goals, - streak: { active: !!rf.active, months: rf.streak || 0, best: rf.best || 0, refuelDay: rf.refuelDayLabel || null, graceEnd: rf.graceLabel || null, windowOpen: !!rf.windowOpen, next: rf.next || null, pitStop: rf.pitStop || null, freeMiss: rf.freeMiss || null, both: !!(cy && cy.both) }, + streak: { active: !!rf.active, months: rf.streak || 0, best: rf.best || 0, refuelDay: rf.refuelDayLabel || null, graceEnd: rf.graceLabel || null, windowOpen: !!rf.windowOpen, next: rf.next || null, pitStop: rf.pitStop || null, freeMiss: rf.freeMiss || null, both: !!(cy && cy.both), note: streakNote(rf, cy) }, warnings, parts, next, sites: { iap: !!(o.iap && o.iap.ok), linkspin: !!(o.ls && o.ls.ok) }, at: now, }; } @@ -134,4 +134,15 @@ async function facts(d, email) { return out; } -module.exports = { build, facts, burnPerDay, monthStartCT, LINKS }; +// the streak panel's one line about the next refuel (2026-10-24): once BOTH sites are refueled this cycle it says so, +// and only a cycle with one site done asks for the other one, by name +function streakNote(rf, cy) { + const nx = rf && rf.next; if (!rf || !rf.active || !nx) return ''; + if (rf.windowOpen) return 'Window open: next refuel +' + nx.single + '% (+' + nx.both + '% on each with both).'; + const iapDone = !!(cy && cy.iap && cy.iap.refueled), lsDone = !!(cy && cy.linkspin && cy.linkspin.refueled); + if ((cy && cy.both) || (iapDone && lsDone)) return 'Both engines fueled this cycle: +' + (nx.secondEngine || (cy.iap && cy.iap.pct) || 0) + '% on each.'; + if (nx.secondEngine) return 'Refuel ' + (iapDone ? 'LinkSpin' : 'InstantAdPay') + ' this cycle for +' + nx.secondEngine + '% on both.'; + return ''; +} + +module.exports = { streakNote, build, facts, burnPerDay, monthStartCT, LINKS }; diff --git a/kitspin.js b/kitspin.js index 19c7f9d..fdf87f5 100644 --- a/kitspin.js +++ b/kitspin.js @@ -24,7 +24,7 @@ async function load(d) { // { kit, bannerspin, content, uploadsDir, email, month if (r.error) { results.push({ size, error: r.error }); continue; } if (r.bytes > bannerspin.MAX_BYTES) { results.push({ size, error: 'The ' + size + ' file is over 150 KB, so Banner Spin cannot take it. Use the still version.' }); continue; } let spin = mine.find(x => x.size === size && x.banners.length < t.banners && !x.adminOff), created = false; - if (!spin) { const c = await bannerspin.create(email, { name: 'Refuel Kit ' + size, size, fallback: mk.link || '' }); if (c.error) { results.push({ size, error: c.error }); continue; } spin = c.spin; created = true; } + if (!spin) { const c = await bannerspin.create(email, { name: 'Refuel Kit ' + size, size, fallback: mk.link || '' }); if (c.error) { results.push(Object.assign({ size, error: c.error }, mine.length >= t.spins ? { full: true } : {})); continue; } spin = c.spin; created = true; } const name = crypto.randomBytes(12).toString('hex') + '.' + r.ext; fs.writeFileSync(path.join(d.uploadsDir, name), fs.readFileSync(r.file)); const mime = { png: 'image/png', jpg: 'image/jpeg', gif: 'image/gif' }[r.ext]; @@ -33,6 +33,29 @@ async function load(d) { // { kit, bannerspin, content, uploadsDir, email, month const add = await bannerspin.addBanner(email, spin.id, { image: '/uploads/' + name, target: mk.link, label }); results.push(add.error ? { size, error: add.error } : { size, spinId: spin.id, spin: spin.name, created }); } - return { ok: true, results }; + return { ok: true, results, message: summary(results, t) }; } -module.exports = { load }; +// one plain sentence set for the member (2026-10-24): what loaded, what did not and why, and what to do about it. A Starter +// tier holds 2 Banner Spins, so a full kit loads two sizes; that is the rule, and the message has to say so up front. +const join = a => a.length <= 1 ? a.join('') : a.slice(0, -1).join(', ') + ' and ' + a[a.length - 1]; +function summary(results, t) { + const ok = results.filter(x => !x.error), full = results.filter(x => x.error && x.full), bad = results.filter(x => x.error && !x.full); + const out = []; + if (ok.length) out.push('Loaded: ' + join(ok.map(x => x.size + (x.already ? ' (already in "' + x.spin + '")' : x.created ? ' (new Banner Spin "' + x.spin + '")' : ' (added to "' + x.spin + '")'))) + '.'); + if (full.length) out.push('Not loaded: ' + join(full.map(x => x.size)) + '. Your ' + t.label + ' tier holds ' + t.spins + ' Banner Spins, one size each, and they are all in use. Nothing is broken: pick the sizes you want most and load those, or delete a Banner Spin under Links to make room.' + + (t.next ? ' ' + t.next.label + ' (' + t.next.need + ') holds ' + t.next.spins + '.' : '')); + for (const x of bad) out.push(x.size + ': ' + x.error); + if (!results.length) out.push('Pick at least one size to load.'); + return out.join(' '); +} +// what the Refuel Kit panel needs to pre-pick sizes: the tier, Banner Spins in use, and the sizes that fit (sizes with a +// Banner Spin that has room first, then new ones in order of use: 728x90, 300x250, 468x60, 160x600) +const PREFER = ['728x90', '300x250', '468x60', '160x600']; +async function room(email, bannerspin) { + const t = await bannerspin.tierFor(email); if (!t.ok) return { ok: false, reason: t.reason }; + const mine = await bannerspin.list(email); const sizes = PREFER.filter(z => bannerspin.SIZES[z]); + const fits = sizes.filter(z => mine.some(x => x.size === z && x.banners.length < t.banners && !x.adminOff)); + let free = Math.max(0, t.spins - mine.length); const suggested = sizes.filter(z => fits.includes(z) || (free > 0 && free-- > 0)); + return { ok: true, tier: t.label, spins: t.spins, used: mine.length, next: t.next, sizes, suggested, all: suggested.length >= sizes.length }; +} +module.exports = { load, room, summary }; diff --git a/public/ads.html b/public/ads.html index 87ec0b9..0f5e6df 100644 --- a/public/ads.html +++ b/public/ads.html @@ -76,7 +76,7 @@ - - + + diff --git a/public/assets/engine-room.js b/public/assets/engine-room.js index 47b74f2..d51a478 100644 --- a/public/assets/engine-room.js +++ b/public/assets/engine-room.js @@ -35,14 +35,15 @@ + dial(c.pct, n(c.week), 'Clicks this week
' + clickCap, 'Clicks this week: ' + n(c.week) + (c.prevWeek ? ', last week ' + n(c.prevWeek) : '') + (c.per1000 != null ? ', ' + c.per1000 + ' per 1,000 credits' : ''), false) + dial(g.pct, g.month == null ? '?' : n(g.month), 'Goals this month
' + goalCap, 'Goals this month: ' + (g.month == null ? 'unknown' : g.month) + (g.target ? ' of ' + g.target : ''), false) + ''; const streak = '

Streak

' + (s.active ? '' + s.months + ' month' + (s.months === 1 ? '' : 's') + '' + (s.both ? ', both engines this cycle' : '') + '. Refuel day ' + esc(s.refuelDay) + ', grace to ' + esc(s.graceEnd) + ' (Central).' - + (s.next ? (s.windowOpen ? ' Window open: next refuel +' + s.next.single + '% (+' + s.next.both + '% on each with both).' : s.next.secondEngine ? ' Refuel the other site this cycle for +' + s.next.secondEngine + '% on both.' : '') : '') + + (typeof s.note === 'string' ? (s.note ? ' ' + esc(s.note) : '') : s.next ? (s.windowOpen ? ' Window open: next refuel +' + s.next.single + '% (+' + s.next.both + '% on each with both).' : s.both ? ' Both engines fueled this cycle.' : s.next.secondEngine ? ' Refuel the other site this cycle for +' + s.next.secondEngine + '% on both.' : '') : '') // s.note from engine.js (2026-10-24: no 'refuel the other site' once both are done) + (s.pitStop ? ' Pit Stop: +' + s.pitStop.pct + '% ' + (s.pitStop.iap || s.pitStop.linkspin ? 'available' : 'used') + ' this cycle.' : '') + (s.best > s.months ? ' Best: ' + s.best + '.' : '') : 'Not started.') + '
'; const warns = '

Warning lights

' + d.warnings.map(w => '' + esc(w.label) + ': ' + (w.on ? 'on' : 'off') + ' (' + esc(w.note) + ')').join('') + '
'; const parts = '

The six parts

' + d.parts.map(p => '
' + esc(p.label) + ' (' + (p.state === 'green' ? 'working' : p.state === 'amber' ? 'needs attention' : 'not started') + ')' + esc(p.note) + '' + (p.state !== 'green' && p.link ? '' + (p.state === 'grey' ? 'Set it up' : 'Fix it') + '' : '') + '
').join('') + '
'; const next = '

Next move

' + esc(d.next.label) + '
' + esc(d.next.why) + '
' + esc(d.next.label) + '
'; - if (d.locked) return '
' + next + '
'; - return '
' + next + dials + streak + warns + parts + '

Numbers cover InstantAdPay and LinkSpin together' + (d.sites && (!d.sites.iap || !d.sites.linkspin) ? ' (one site did not answer just now)' : '') + '. Credits buy ad delivery only.

'; + const how = '

How the Refuel streak works

'; // the member guide (2026-10-24) + if (d.locked) return '
' + next + how + '
'; + return '
' + next + dials + streak + how + warns + parts + '

Numbers cover InstantAdPay and LinkSpin together' + (d.sites && (!d.sites.iap || !d.sites.linkspin) ? ' (one site did not answer just now)' : '') + '. Credits buy ad delivery only.

'; } async function load(fresh) { try { diff --git a/public/assets/fuel.js b/public/assets/fuel.js index 4e73ede..982e424 100644 --- a/public/assets/fuel.js +++ b/public/assets/fuel.js @@ -5,16 +5,18 @@ const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c])); const n = v => Number(v || 0).toLocaleString('en-US'); window.FUEL = window.FUEL || {}; + const HOW = '

How the Refuel streak works

'; // the member guide (2026-10-24) function site(name, s, minUsd) { - return s && s.refueled ? '
' + name + '+' + s.pct + '% · ' + n(s.bonus) + ' credits
' - : '
' + name + 'not yet ($' + minUsd + '+ counts)
'; + const row = '
' + name + ': '; // own spacing: the Ads screen has no .row rule (2026-10-24) + return s && s.refueled ? row + '+' + s.pct + '% · ' + n(s.bonus) + ' bonus credits
' + : row + 'not yet ($' + minUsd + '+ counts)'; } function body(v) { if (v.error) return '

' + esc(v.error) + '

'; if (!v.active) { return '

' + (v.started ? 'Your last streak ended. ' : '') + 'A package of $' + v.minUsd.linkspin + ' or more here, or $' + v.minUsd.iap + '+ on InstantAdPay, ' + (v.started ? 'starts it again' : 'starts your monthly refuel streak and sets your own refuel day') + '.

' + '

Bonus ad credits: month 1 +' + v.ladder.single[0] + '%, then +' + v.ladder.single.slice(1).join('%, +') + '%. Refuel both sites in the same cycle and each gets +' + v.ladder.both.join('%, +') + '%.

' - + 'Start my streak'; + + 'Start my streak' + HOW; } const c = v.cycle || {}; let h = v.windowOpen @@ -24,7 +26,7 @@ if (!v.windowOpen && c.month && !c.both) h += '

Refuel ' + (c.linkspin && c.linkspin.refueled ? 'InstantAdPay ($' + v.minUsd.iap + '+)' : 'LinkSpin ($' + v.minUsd.linkspin + '+)') + ' before ' + esc(v.opensLabel) + ' and both sites move to +' + v.next.secondEngine + '%.

'; if (v.pitStop && (v.pitStop.linkspin || v.pitStop.usedLinkspin)) h += '

Pit Stop ' + (v.pitStop.linkspin ? 'available here: +' + v.pitStop.pct + '% on a $' + v.minUsd.linkspin + '+ top-up, once this cycle. It does not count as your refuel.' : 'used here this cycle.') + '

'; h += '

' + (v.freeMiss.available ? 'One free miss left this year.' : 'Free miss for this year used.') + '

'; - return h + '' + (v.windowOpen ? 'Refuel now' : 'Buy a package') + ''; + return h + '' + (v.windowOpen ? 'Refuel now' : 'Buy a package') + '' + HOW; } async function load() { const panel = $('rfPanel'); if (!panel) return; @@ -42,10 +44,20 @@ // ---- the Refuel Kit: members-only LinkSpin banners with your @name and a QR to your link ---- const post = async (url, body) => { const r = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body || {}) }); const j = await r.json().catch(() => ({})); if (!r.ok || j.error) throw new Error(j.error || ('HTTP ' + r.status)); return j; }; const note = (el, m) => { if (el) el.textContent = m; }; + // Banner Spin sizes to load (2026-10-24): each size needs its own Banner Spin, and a Starter tier holds 2, so the sizes that + // fit are ticked first (728x90 and 300x250 when nothing is set up yet) and the panel says why before the member presses Load + function spinPick(k, d) { + const R = d.spinRoom; const sizes = k.sizes.filter(s => s.ready && (!R || !R.sizes || R.sizes.includes(s.size))).map(s => s.size).filter(z => z !== '1200x630'); + if (!sizes.length) return ''; + const pick = R && R.ok && R.suggested ? R.suggested : sizes; + const note = R && R.ok && !R.all ? '

Each size goes into its own Banner Spin. Your ' + esc(R.tier) + ' tier holds ' + R.spins + ' (' + R.used + ' in use), so the sizes that fit are ticked. Untick one to load another instead' + (R.next ? ', or reach ' + esc(R.next.label) + ' (' + esc(R.next.need) + ') for ' + R.next.spins : '') + '.

' : ''; + return note + '
' + sizes.map(z => '').join('') + '
'; + } function kitHtml(k, d) { const head = '
' + esc(k.label) + (k.theme ? ' · ' + esc(k.theme) : '') + '' + (k.unlocked ? 'yours' : 'locked') + '
'; if (!k.unlocked) return head + '

Your next counted refuel unlocks it: $25+ here or $20+ on InstantAdPay' + (d.nextRefuel ? ' (refuel day ' + esc(d.nextRefuel) + ')' : '') + '.

'; return head + '

Your ' + esc(d.name || 'name') + ' and a QR to your link on every banner. Yours to keep after the month.

' + + spinPick(k, d) + '
' + (k.gif ? '' : '') + '
' + '
' @@ -64,8 +76,10 @@ const m = b.dataset.kbs; const out = panel.querySelector('[data-kres="' + m + '"]'); const g = panel.querySelector('[data-kgif="' + m + '"]'); b.disabled = true; note(out, 'Drawing your banners and loading them...'); try { - const r = await post('/api/my/kits/bannerspin', { month: m, variant: g && g.checked ? 'gif' : 'still' }); - note(out, r.results.map(x => x.size + ': ' + (x.error ? x.error : x.already ? 'already in "' + x.spin + '"' : (x.created ? 'new Banner Spin "' : 'added to "') + x.spin + '"')).join(' | ') + ' (see Banner Spin under Links)'); + const boxes = panel.querySelectorAll('[data-ksize="' + m + '"]'); const sizes = Array.prototype.filter.call(boxes, c => c.checked).map(c => c.value); + if (boxes.length && !sizes.length) { note(out, 'Tick at least one size to load.'); b.disabled = false; return; } + const r = await post('/api/my/kits/bannerspin', Object.assign({ month: m, variant: g && g.checked ? 'gif' : 'still' }, boxes.length ? { sizes } : {})); + note(out, (r.message || r.results.map(x => x.size + ': ' + (x.error ? x.error : x.already ? 'already in "' + x.spin + '"' : (x.created ? 'new Banner Spin "' : 'added to "') + x.spin + '"')).join(' | ')) + ' See Banner Spin under Links.'); } catch (e) { note(out, e.message); } b.disabled = false; })); diff --git a/public/assets/refuel-guide.js b/public/assets/refuel-guide.js new file mode 100644 index 0000000..ccbe104 --- /dev/null +++ b/public/assets/refuel-guide.js @@ -0,0 +1,15 @@ +// Fuel Your Offers guide page (/refuel, 2026-10-24). Inside a traffic-exchange frame the session and sponsor cookies are +// dropped, so sign-in, join, member screens and off-site links open in a new tab, and /join carries the ?ref= this page +// was opened with. +(function () { + var framed = false; try { framed = window.top !== window.self; } catch (e) { framed = true; } + if (!framed) return; + var ref = ''; try { ref = new URLSearchParams(location.search).get('ref') || ''; } catch (e) {} + ref = String(ref).toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 40); + document.querySelectorAll('a[href]').forEach(function (a) { + var h = a.getAttribute('href') || ''; if (h.charAt(0) === '#') return; + var member = a.host === location.host && /^\/(join|credits|ads|links|signin|login)(\/|$)/.test(a.pathname); + if (member && ref && a.pathname === '/join' && !/[?&]ref=/.test(a.search)) a.search = (a.search ? a.search + '&' : '?') + 'ref=' + ref; + if (member || a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } + }); +})(); diff --git a/public/banners/fuel-your-offers-1200x675.jpg b/public/banners/fuel-your-offers-1200x675.jpg new file mode 100644 index 0000000..f2947cc Binary files /dev/null and b/public/banners/fuel-your-offers-1200x675.jpg differ diff --git a/public/credits.html b/public/credits.html index fcae0ec..ecf9fe6 100644 --- a/public/credits.html +++ b/public/credits.html @@ -85,6 +85,6 @@ - + diff --git a/public/refuel.html b/public/refuel.html new file mode 100644 index 0000000..0fa4a29 --- /dev/null +++ b/public/refuel.html @@ -0,0 +1,270 @@ + + + + +Fuel Your Offers: the Monthly Refuel guide | LinkSpin + + + + + + + + + + + + + + + + + + + + +
+
+ LinkSpin + Fuel Your Offers + + Buy a package + Start free +
+
+ +
+
+
+ LinkSpin + InstantAdPay · live since October 24, 2026 +

Fuel Your Offers: refuel every month, watch your bonus climb

+

Your ads run on fuel. Refuel them every month with a new LinkSpin package under Credits and the Monthly Refuel streak adds bonus ad credits that climb each month, a fresh Refuel Kit loads straight into your Banner Spin, and the Engine Room at the top of Ads tells you the next move. LinkSpin alone keeps your streak going. Refuel InstantAdPay too in the same cycle and the bonus is bigger on both.

+ +
+ Fuel Your Offers: refuel every month, watch your bonus climb. + +
+
+15%Month 1, both engines
+
+20%Month 2
+
+30%Month 3
+
+40%Month 4 and on, + 100 Featured credits on InstantAdPay
+
+ +
+

What happens when you buy a package

the flow
+
+
+ Streak moves forward + Bonus boost + No refuel bonus + A question +
+
    +
  1. 1You buy a new ad package on either siteLinkSpin (under Credits) or InstantAdPay, paid from your own wallet.
  2. +
  3. +
    2Does it meet that site's minimum?LinkSpin package: $25 or more. InstantAdPay package: $20 or more. Bought by you or one of your own linked positions.
    +
    +
    No
    Normal purchaseNo refuel bonus.
    +
    Yes
    Keep goingdown to the next question
    +
    +
  4. +
  5. +
    3Are you already on a streak?
    +
    +
    No: your first refuel, or your streak ended
    Streak starts at month 1Today becomes your refuel day. Your very first one also earns the Engine Started badge.then step 5
    +
    Yes
    Keep goingdown to the next question
    +
    +
  6. +
  7. +
    4When is it, against your refuel day?
    +
    +
    Inside the window: 5 days before to 5 days after
    Counted refuelYour streak moves up a month.then step 5
    +
    After the 5-day grace +
    Free miss left in the last 365 days?
    +
    +
    Yes
    Streak keptThis package counts as your next month.then step 5
    +
    No
    Streak starts over at month 1Today becomes your new refuel day.then step 5
    +
    +
    +
    More than 5 days before +
    Already refueled on this site this cycle?
    +
    +
    No
    Second engineThis is the other site's refuel for the same cycle: both-engines rate here, and the first site is topped up to match (step 6). Your refuel day stays put.
    +
    Yes
    Pit StopHalf your current rate, once per site per cycle. Not a refuel, so your refuel day stays put. A second top-up on the same site is a normal purchase.
    +
    +
    +
    +
  8. +
  9. 5Bonus credits land at your month's rateOne engine: +10% in month 1, +15% in month 2, +20% in month 3, +25% from month 4. Added on the site where you bought.
  10. +
  11. +
    6Later this cycle: refuel the other site too, before your next window opens?
    +
    +
    Yes: both engines
    Higher rate on both sites+15%, +20%, +30%, then +40% from month 4. The first site is topped up to match. From month 4 you also get 100 Featured bonus credits on InstantAdPay.
    +
    No: one engine
    One-engine rateYour streak still counts. Either site keeps it going.
    +
    +
  12. +
  13. 7This month's Refuel Kit unlocksBadges at 3, 6 and 12 months in a row.
  14. +
  15. 8Next refuel day = 30 days after this oneReminders 5 days before, on the day, and a last call at the end of your grace. Then it is back to step 1 next month.
  16. +
+
+
+ +
+

The bonus climbs

percent of the package's credits
+ + + + + + + + +
Months in a rowOne engineBoth engines
Month 1+10%+15%
Month 2+15%+20%
Month 3+20%+30%
Month 4 and on+25%+40% each
+

Bonus ad credits land on the site where you bought: a LinkSpin refuel adds them to your LinkSpin credit balance. One engine means you refueled one site this cycle; both engines means LinkSpin and InstantAdPay in the same cycle. From month 4 with both engines you also get 100 Featured bonus credits on InstantAdPay. A Pit Stop pays half your current rate. On InstantAdPay the refuel bonus also stacks on Five Dollar Friday (+20% on $5+ packages) and Wired Wednesday (+25% on $20+ packages). Bonus credits buy ad delivery only. They are never cash.

+
+ +
+

Your route, step by step

member guide
+
+
    +
  1. +

    Start your engine

    +

    Buy a new package of $25 or more under Credits, or $20 or more on InstantAdPay. Today becomes your refuel day, your first bonus lands right away, and you earn the Engine Started badge. Buying from one of your linked positions counts too.

    +
    LinkSpin: CreditsInstantAdPay: Buy packages
    +
  2. +
  3. +

    Find your Refuel card

    +

    The Monthly Refuel panel shows your refuel day, your streak month, the bonus your next refuel earns, which sites you refueled this cycle, and whether your Pit Stop is still open.

    +
    LinkSpin: Credits and AdsInstantAdPay: Overview
    +
  4. +
  5. +

    Put this month's Refuel Kit to work

    +

    Your refuel unlocks the month's members-only banners in five sizes (728x90, 468x60, 300x250, 160x600 and 1200x630 for social posts) with your @name and a QR code to your own link. Open the Refuel Kit panel on Ads and press Load into my Banner Spin, or tap Make mine on any size to download it. From a 3-month streak you also get an animated version. Kits you unlock stay yours after the month ends.

    +
    LinkSpin: Ads, Refuel KitInstantAdPay: Promo tools
    +
  6. +
  7. +

    Check the Engine Room

    +

    Your first refuel opens it at the top of Ads. Three dials: fuel left across both sites, clicks this week against last week, and goals this month from your conversion pixel against a goal you set. Warning lights flag ads running low or out, a refuel day coming, or a login slot opening. Then press the one next-move button.

    +
    LinkSpin: top of AdsInstantAdPay: Engine Room tab
    +
  8. +
  9. +

    Refuel inside your window every month

    +

    The window opens 5 days before your refuel day and stays open 5 days after it (Central time). You get an email and an on-site notice 5 days before, on the day, and a last call. Your next refuel day is 30 days after the day you actually refuel, so it moves with you.

    +
  10. +
  11. +

    Light up the second engine

    +

    Refuel on both sites in the same cycle and both get the higher rate. Buy on one site, then the other, in either order, before your next window opens. The first site is topped up automatically to match.

    +
    LinkSpin $25+InstantAdPay $20+
    +
  12. +
  13. +

    Running low early? Take a Pit Stop

    +

    Another package on a site you already refueled this cycle, bought before your window opens, is a Pit Stop: half your current rate, once per site per cycle. It keeps your ads running. Your monthly refuel is still due on your refuel day.

    +
  14. +
+
+
+ +
+

If you miss a month

You get one free miss in any 365 days. Miss your window once and the streak holds: your next qualifying package counts as the next month. Miss again inside the year and the streak starts over at month 1, with a new refuel day.

+

What counts and what doesn't

Counts: a new package at or above the minimum, bought by you or one of your own linked positions (on InstantAdPay, Game Pass packages too). Doesn't count: smaller packages, or credits you earned by viewing ads.

+
+ +
+

For leaders: how to coach it

+
    +
  • When someone in your line buys their first package, help them pick a refuel day they can keep every month.
  • +
  • Show them the Monthly Refuel panel on Credits and the Engine Room on Ads on day one, so they know where to look.
  • +
  • Teach both engines. One package on each site per cycle earns the higher rate on both.
  • +
  • Load your own Refuel Kit into a live Banner Spin, so they see it working before they try it.
  • +
  • Repeat ad spend keeps every level of your line active, so this is the habit to build.
  • +
+
+ +
+

Questions members ask

quick answers
+
+
+
Do I have to use both sites?
No. LinkSpin alone keeps your streak going at the one-engine rate, and so does InstantAdPay alone. Refueling both in the same cycle earns the bigger bonus on both.
+
Is the bonus cash?
No. Bonus credits are purchased-grade ad credits that run on any format you can buy, login ads included.
+
I refueled early. Did I lose my place?
Inside the 5-day window it counts as your refuel and your next date moves to 30 days after it. Earlier than that it is a Pit Stop (or your second engine, if it is the other site's first package this cycle), and your refuel day stays put.
+
When does the Refuel Kit change?
Each month gets its own kit. A counted refuel unlocks that month's kit, and kits you unlocked stay yours.
+
Is anything billed automatically?
No. You choose every package. Nothing renews on its own.
+
+
+
+ +

One credit is one cent of ad delivery. Credits are not money and cannot be withdrawn. No income is guaranteed; any commissions depend on real purchases in your line and on your own effort. Cryptocurrency involves risk of loss. Fuel Your Offers runs on LinkSpin and InstantAdPay (the InstantAdPay side).

+
+
+ + + + + diff --git a/qa/refuel-kit.test.cjs b/qa/refuel-kit.test.cjs index abf62e2..91b79f4 100644 --- a/qa/refuel-kit.test.cjs +++ b/qa/refuel-kit.test.cjs @@ -52,6 +52,18 @@ function world(opts) { assert.strictEqual(b.label, 'Refuel Kit 2026-11'); assert.strictEqual(b.target, 'https://linkspin.app/join/sam'); assert.ok(/^\/uploads\/[a-f0-9]{24}\.png$/.test(b.image)); assert.ok(fs.existsSync(path.join(W.up, b.image.slice(9)))); assert.strictEqual(b.w, 728); assert.ok(b.bytes <= W.BS.MAX_BYTES); }); + await t('Starter tier: the result says up front what loaded, what did not and why, and what to do; the panel pre-picks 728x90 + 300x250', async () => { + const W = world(); const KS = require(path.join(ROOT, 'kitspin.js')); + const room = await KS.room('s@x.test', W.BS); + assert.deepStrictEqual([room.tier, room.spins, room.used, room.all], ['Starter', 2, 0, false]); + assert.deepStrictEqual(room.suggested, ['728x90', '300x250']); + const r = await W.load(); + assert.ok(/^Loaded: 728x90 \(new Banner Spin "Refuel Kit 728x90"\) and 300x250/.test(r.message), r.message); + assert.ok(/Not loaded: 468x60 and 160x600\. Your Starter tier holds 2 Banner Spins/.test(r.message), r.message); + assert.ok(/pick the sizes you want most/.test(r.message) && /Builder .* holds 5/.test(r.message), r.message); + const r2 = await W.load({ sizes: ['728x90', '300x250'] }); assert.ok(/^Loaded: 728x90 \(already in/.test(r2.message) && !/Not loaded/.test(r2.message), r2.message); + const after = await KS.room('s@x.test', W.BS); assert.deepStrictEqual(after.suggested, ['728x90', '300x250'], 'Banner Spins with room stay ticked'); + }); await t('loading the same kit twice adds nothing twice', async () => { const W = world(); await W.BS.create('s@x.test', { name: 'L', size: '728x90' }); await W.BS.create('s@x.test', { name: 'M', size: '300x250' }); await W.load({ sizes: ['728x90', '300x250'] }); const r2 = await W.load({ sizes: ['728x90', '300x250'] }); diff --git a/server.js b/server.js index e1b6a67..b75f515 100644 --- a/server.js +++ b/server.js @@ -83,7 +83,7 @@ const snapshot = require('./snapshot'); // daily growth snapshot -> Telegr const pipeline = require('./pipeline'); // sponsor follow-up board (coming soon until site setting pipelineMode = on) (Marty, 2026-09-15) const content = require('./content'); // admin Member content: one read-only list of everything members create (2026-10-18) const videomaker = require('./videomaker'); // Circuit tool: promo videos with the member's own end card (ffmpeg in the image) // badge-gated promo toolkit + AI Copy Engine (Surge and up) (Marty, 2026-09-14) // referral contest: /leaderboard, Overview card, weekly + monthly winners (Marty, 2026-09-14) // release notes + roadmap: /whats-new, Overview card, Admin > Releases (Marty, 2026-09-14) // blog -> Blotato -> X + Instagram on publish (Marty, 2026-09-13) // admin member card: search, drilldown, edits (Marty, 2026-09-13) // admin-written coaching articles, server-rendered public /blog with SEO metadata (Marty, 2026-09-12) -const TRAFFIC_PAGES = new Set(['/', '/ledger', '/contract', '/shorts', '/plays', '/wallets', '/launch', '/partners', '/publishers', '/earning', '/blog', '/whats-new', '/leaderboard']); +const TRAFFIC_PAGES = new Set(['/', '/ledger', '/contract', '/shorts', '/plays', '/wallets', '/launch', '/partners', '/publishers', '/earning', '/blog', '/whats-new', '/leaderboard', '/refuel']); let tankWaitCache = null; // dashboard: who is waiting for a sponsor (refreshed every minute) const geo = require('./geo'); // viewer country -> tier (DB-IP lite), for campaign targeting const burner = require('./burner'); // automatic on-chain credit burns (inert without ENGINE_KEY) @@ -3875,7 +3875,9 @@ const server = http.createServer(async (req, res) => { } if (p === '/api/my/kits' && req.method === 'GET') { const s = await auth.fromRequest(req); if (!s || !s.email) return json(res, 401, { error: 'Sign in first.' }); - return json(res, 200, await kit.myKits(s.email)); + const mk = await kit.myKits(s.email); + if (mk && mk.on) { try { mk.spinRoom = await kitspin.room(s.email, bannerspin); } catch (e) { mk.spinRoom = null; } } // the panel pre-picks the sizes that fit the tier (2026-10-24) + return json(res, 200, mk); } if (p === '/api/my/kits/render' && req.method === 'POST') { const s = await auth.fromRequest(req); if (!s || !s.email) return json(res, 401, { error: 'Sign in first.' }); @@ -3971,6 +3973,7 @@ const server = http.createServer(async (req, res) => { if (p === '/') return sendFile(res, path.join(PUBLIC_DIR, 'index.html')); if (p === '/ledger') return sendFile(res, path.join(PUBLIC_DIR, 'ledger.html')); if (p === '/contract') return sendFile(res, path.join(PUBLIC_DIR, 'contract.html')); + if (p === '/refuel') return sendFile(res, path.join(PUBLIC_DIR, 'refuel.html')); // Fuel Your Offers: the Monthly Refuel member guide (2026-10-24) if (p === '/terms') return sendFile(res, path.join(PUBLIC_DIR, 'terms.html')); if (p === '/privacy') return sendFile(res, path.join(PUBLIC_DIR, 'privacy.html')); if (p === '/disclaimer') return sendFile(res, path.join(PUBLIC_DIR, 'disclaimer.html'));