Credits screen in the Control Room (/credits): package picker from the catalog, POL quote, link wallet, buy with the sponsor hold and balance pre-flight, switch on payouts, card on-ramp, purchases from the chain; first-run username step in the shell; new join page on the Instrument scheme with sponsor chip, hook angles rewritten for LinkSpin, bare /join route; legacy angle OG copy corrected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -11,13 +11,14 @@ window.CR = (function () {
|
||||
['pages', 'Pages', '/pages', '<rect x="4" y="4" width="16" height="16" rx="2"/><path d="M8 9h8M8 13h6"/>'],
|
||||
['zones', 'Zones', '/zones', '<rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 10h18"/>'],
|
||||
['ads', 'Ads', '/ads', '<path d="M3 11l14-5v12L3 13v-2z"/><path d="M17 8a4 4 0 0 1 0 8"/>'],
|
||||
['credits', 'Credits', '/credits', '<circle cx="12" cy="12" r="8"/><path d="M12 8v8M9.5 10.5h3.5a1.5 1.5 0 0 1 0 3H10a1.5 1.5 0 0 0 0 3h4.5"/>'],
|
||||
['reports', 'Reports', '/reports', '<path d="M4 19V9M10 19V5M16 19v-8M22 19H2"/>'],
|
||||
['team', 'Team', '/team', '<circle cx="9" cy="8" r="3"/><circle cx="17" cy="9" r="2.5"/><path d="M3 19c0-3 3-5 6-5s6 2 6 5M15 15c3 0 6 1.5 6 4"/>'],
|
||||
['wallet', 'Wallet', '/wallet', '<rect x="3" y="6" width="18" height="12" rx="2"/><path d="M16 12h3"/>'],
|
||||
];
|
||||
// screens not built yet fall back to the classic dashboard pane so nothing is a dead end
|
||||
const FALLBACK = { pages: '/my#promo', zones: '/my#campaigns', team: '/my#line', wallet: '/my#wallet' };
|
||||
const BUILT = new Set(['links', 'pages', 'zones', 'ads', 'reports', 'team', 'wallet']);
|
||||
const BUILT = new Set(['links', 'pages', 'zones', 'ads', 'credits', 'reports', 'team', 'wallet']);
|
||||
let ME = null, toastT;
|
||||
function toast(msg, bad) { let t = $('crToast'); if (!t) { t = document.createElement('div'); t.id = 'crToast'; t.className = 'toast'; t.setAttribute('role', 'status'); document.body.appendChild(t); } t.textContent = msg; t.classList.toggle('bad', !!bad); t.classList.add('on'); clearTimeout(toastT); toastT = setTimeout(() => t.classList.remove('on'), 2000); }
|
||||
async function api(path, body) { const r = await (await fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body || {}) })).json(); if (r.error) throw new Error(r.error); return r; }
|
||||
@@ -115,7 +116,19 @@ window.CR = (function () {
|
||||
back.querySelector('#laGo').addEventListener('click', () => { back.remove(); done(); });
|
||||
});
|
||||
}
|
||||
async function requireSession(onReady) { const m = await me(); whoPaint(m); if (m && m.signedIn) { strip(); await loginAd(); return onReady(m); } signInFlow(async r => { whoPaint(r); strip(); await loginAd(); onReady(r); }); }
|
||||
// first run: a member needs a username before anything else (it becomes the invite link; permanent once set)
|
||||
async function ensureUsername(m) {
|
||||
if (!m || !m.signedIn || m.username) return m;
|
||||
let suggest = ''; try { suggest = (await get('/api/my/username-suggest')).suggest || ''; } catch (e) {}
|
||||
for (let i = 0; i < 3; i++) {
|
||||
const v = await dialog({ title: 'Pick your username', text: 'This is how your team sees you and it becomes your invite link. It is permanent once saved. Letters, numbers and underscores, 3 to 20 characters.', fields: [{ k: 'username', label: 'Username', value: suggest, placeholder: 'yourname' }], ok: 'Save and continue', no: 'Later' });
|
||||
if (!v) return m;
|
||||
try { await api('/api/my/profile', { username: String(v.username || '').trim() }); const fresh = await me(true); whoPaint(fresh); toast('Saved. Your invite link is /join/' + fresh.username); return fresh; }
|
||||
catch (e) { toast(e.message, true); suggest = String(v.username || ''); }
|
||||
}
|
||||
return m;
|
||||
}
|
||||
async function requireSession(onReady) { let m = await me(); whoPaint(m); if (m && m.signedIn) { strip(); m = await ensureUsername(m); await loginAd(); return onReady(m); } signInFlow(async r => { whoPaint(r); strip(); await loginAd(); onReady(r); }); }
|
||||
// tiles with a sparkline and a delta chip (Instrument scheme, 2026-09-29): series = numbers oldest first
|
||||
function sparkline(series) {
|
||||
const s = (series || []).map(Number); if (s.length < 2 || !s.some(Boolean)) return '';
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
// LinkSpin Credits (2026-10-07): the buy screen inside the Control Room. Package picker from the catalog, the POL
|
||||
// quote, connect/link a wallet, the on-chain purchase (ported from the classic /my#buy flow: sponsor hold, balance
|
||||
// pre-flight, Trust Wallet heads-up), switch-on-payouts without buying, card on-ramp, purchases from the chain.
|
||||
(function () {
|
||||
const $ = id => document.getElementById(id); const esc = CR.esc, fmt = CR.fmt;
|
||||
// wallet.js reports through IAP.status (the classic dashboard's status bar): route it to the shell's toast
|
||||
if (window.IAP) IAP.status = (m, kind) => CR.toast(m, kind === 'bad');
|
||||
CR.mount({ active: 'credits', title: 'Credits', sub: 'loading' });
|
||||
const pol = wei => { try { return (Number(BigInt(String(wei || '0')) / 10000000000000000n) / 100).toFixed(2); } catch (e) { return '0.00'; } };
|
||||
const usd = c => '$' + (Number(c || 0) / 100).toLocaleString(undefined, { maximumFractionDigits: 2 });
|
||||
const NAMES = { 1000: 'Door', 2500: 'Most chosen', 5000: 'Builder', 10000: 'Growth', 25000: 'Leader', 50000: 'Network' };
|
||||
let CFG = null, ME = null, CAT = [], SEL = null, CAMP = null, DASH = null;
|
||||
|
||||
function paintTiles() {
|
||||
const avail = CAMP ? CAMP.availableCredits : 0, inLive = CAMP ? CAMP.inCampaigns : 0;
|
||||
const addr = ME && ME.address, on = !!(ME && ME.memberId);
|
||||
const bc = DASH ? (DASH.buyerCount || 0) : 0;
|
||||
$('tiles').innerHTML = [
|
||||
CR.tile({ k: 'Credits available', v: fmt(avail), hi: true, note: CAMP ? 'earned ' + fmt(CAMP.earnedCredits) + ' · purchased ' + fmt(CAMP.purchasedCredits) : '' }),
|
||||
CR.tile({ k: 'Working in live ads', v: fmt(inLive), note: CAMP ? (CAMP.campaigns || []).filter(c => c.status === 'live').length + ' live' : '' }),
|
||||
CR.tile({ k: 'Wallet', v: addr ? addr.slice(0, 6) + '…' + addr.slice(-4) : 'not linked', note: on ? 'payouts on · member #' + ME.memberId : (addr ? 'payouts off' : 'needed to buy or be paid') }),
|
||||
CR.tile({ k: 'Qualification', v: bc + ' of ' + (bc >= 5 ? 5 : bc >= 2 ? 5 : 2), note: bc >= 5 ? 'levels 2 and 3 open' : bc >= 2 ? 'level 2 open · 5 opens level 3' : 'buyers to open level 2' })
|
||||
].join('');
|
||||
}
|
||||
function paintPkgs() {
|
||||
const live = CAT.filter(p => p.active !== false && p.exists !== false);
|
||||
if (!live.length) { $('pkgs').innerHTML = '<div class="muted">No packages are on sale right now.</div>'; return; }
|
||||
if (!SEL) SEL = (live.find(p => p.priceCents === 2500) || live[0]).id;
|
||||
$('pkgs').innerHTML = live.map(p => '<button type="button" class="pk' + (p.id === SEL ? ' on' : '') + '" data-id="' + p.id + '"><span class="k">' + esc(NAMES[p.priceCents] || 'Package') + '</span><span class="price">' + usd(p.priceCents) + '</span><span class="cr">' + fmt(p.creditAmount) + ' credits</span>'
|
||||
+ (p.priceCents >= 2000 ? '<span class="tag ok">qualifies</span>' : '<span class="tag">does not qualify</span>') + '</button>').join('');
|
||||
$('pkgs').querySelectorAll('.pk').forEach(b => b.addEventListener('click', () => { SEL = Number(b.dataset.id); paintPkgs(); paintQuote(); paintGoes(); }));
|
||||
}
|
||||
const sel = () => CAT.find(p => p.id === SEL);
|
||||
function paintQuote() {
|
||||
const p = sel(); if (!p) return;
|
||||
if (p.costWei) { $('payPol').textContent = pol(p.costWei) + ' POL'; $('payUsd').textContent = '≈ ' + usd(p.priceCents) + ' + gas'; }
|
||||
else { $('payPol').textContent = 'paused'; $('payUsd').textContent = 'price feed is catching up'; }
|
||||
const rate = (p.costWei && p.priceCents) ? (p.priceCents / 100) / (Number(BigInt(p.costWei) / 1000000000000n) / 1e6) : 0;
|
||||
$('rateLine').textContent = rate ? 'rate ' + rate.toFixed(4) + ' USD/POL · live from the oracle' : '';
|
||||
const addr = ME && ME.address;
|
||||
$('buyBtn').disabled = !p.costWei;
|
||||
$('buyBtn').textContent = addr ? 'Buy ' + usd(p.priceCents) + ' package' : 'Connect a wallet to buy';
|
||||
}
|
||||
function paintGoes() {
|
||||
const p = sel(); if (!p) return;
|
||||
const d = p.priceCents / 100; const spName = ME && ME.sponsorName ? ('@' + String(ME.sponsorName).replace(/^@/, '')) : 'your sponsor';
|
||||
$('goesTitle').textContent = 'Where ' + usd(p.priceCents) + ' goes';
|
||||
$('goesRows').innerHTML = [
|
||||
['Level 1 · ' + esc(spName), '$' + (d * 0.5).toFixed(2)],
|
||||
['Level 2 · upline <span class="tag" title="paid if qualified, else passes up">if qualified</span>', '$' + (d * 0.2).toFixed(2)],
|
||||
['Level 3 · upline <span class="tag" title="paid if qualified, else passes up">if qualified</span>', '$' + (d * 0.1).toFixed(2)],
|
||||
['Platform, two wallets', '$' + (d * 0.2).toFixed(2)]
|
||||
].map(([k, v]) => '<div class="row"><span>' + k + '</span><span class="mono" style="font-weight:700">' + v + '</span></div>').join('')
|
||||
+ '<p class="muted" style="margin:10px 0 0;font-size:11.5px">A pass-up goes to the next qualified member above, else to the platform. Nothing is ever held for later.</p>';
|
||||
}
|
||||
function paintWallet() {
|
||||
const addr = ME && ME.address, on = !!(ME && ME.memberId);
|
||||
$('walletMeta').textContent = addr ? (on ? 'payouts on' : 'linked · payouts off') : 'none linked';
|
||||
$('walletBox').innerHTML = addr
|
||||
? '<div class="code" style="display:block">' + esc(addr) + '</div>'
|
||||
+ (on ? '<div class="ok"><span class="dot"></span>Payouts on. Every package your people buy pays this wallet in the same transaction.</div>'
|
||||
: '<div class="ink2" style="font-size:13px">Linked, but payouts are off until this wallet is on the contract. Buying a package does that. So does the free activation below (gas only).</div><div class="acts"><button class="btn blue" type="button" id="activateBtn">Switch on payouts (free)</button></div>')
|
||||
+ '<div class="acts"><a class="btn sm" href="' + esc((CFG && CFG.explorer) || 'https://polygonscan.com') + '/address/' + esc(addr) + '" target="_blank" rel="noopener">Open on the explorer</a><button class="btn sm" type="button" id="relinkBtn">Use a different wallet</button></div>'
|
||||
: '<div class="ink2" style="font-size:13px">Link the wallet that should receive your payouts. One free signature, no transaction. SafePal is the recommended wallet; MetaMask, Phantom and any WalletConnect wallet work too.</div><div class="acts"><button class="btn blue" type="button" id="linkBtn">Link a wallet</button><a class="btn sm" href="/wallets" target="_blank" rel="noopener">Wallet guide</a></div>';
|
||||
const lb = $('linkBtn'); if (lb) lb.addEventListener('click', () => guard(lb, linkWallet));
|
||||
const ab = $('activateBtn'); if (ab) ab.addEventListener('click', () => guard(ab, activate));
|
||||
const rb = $('relinkBtn'); if (rb) rb.addEventListener('click', () => guard(rb, async () => { await IAPWallet.disconnect(); CR.toast('Disconnected. Reloading so you can pick another wallet.'); setTimeout(() => location.reload(), 800); }));
|
||||
}
|
||||
function paintBuys(E) {
|
||||
const buys = E && Array.isArray(E.purchases) ? E.purchases : [];
|
||||
$('buysMeta').textContent = buys.length + (buys.length === 1 ? ' purchase' : ' purchases') + ' · every row links to the transaction';
|
||||
$('buyRows').innerHTML = buys.length ? buys.slice(0, 50).map(x => {
|
||||
const ts = Number(x.ts || x.time || 0); const when = ts ? new Date(ts * (ts > 1e12 ? 1 : 1000)).toLocaleString() : '';
|
||||
const pkg = x.priceCents ? usd(x.priceCents) : (x.package || x.product || ('#' + (x.productId || '')));
|
||||
const paid = x.amountWei || x.valueWei || x.paidWei ? pol(x.amountWei || x.valueWei || x.paidWei) + ' POL' : '';
|
||||
const tx = x.tx || x.hash || '';
|
||||
return '<div class="rw"><span class="mono muted" style="font-size:12px">' + esc(when) + '</span><span class="num">' + esc(String(pkg)) + '</span><span class="mono">' + esc(paid) + '</span><span>' + (tx ? '<a class="mono" href="' + esc((CFG && CFG.explorer) || 'https://polygonscan.com') + '/tx/' + esc(tx) + '" target="_blank" rel="noopener">' + esc(tx.slice(0, 10)) + '…' + esc(tx.slice(-6)) + '</a>' : '') + '</span></div>';
|
||||
}).join('') : '<div class="rw" style="grid-template-columns:1fr"><span class="muted">Nothing yet. Your first package shows here with its transaction, what you paid in POL, and who in your line was paid.</span></div>';
|
||||
}
|
||||
async function guard(btn, fn) { if (btn.disabled) return; btn.disabled = true; try { await fn(); } catch (e) { CR.toast((e && e.message) || 'Something went wrong.', true); } finally { btn.disabled = false; } }
|
||||
|
||||
// a named sponsor that cannot be paid right now: hold the transaction and say why (never credit the company by default)
|
||||
function holdText(sp) {
|
||||
const who = sp.sponsorName ? ('@' + String(sp.sponsorName).replace(/^@/, '')) : 'your sponsor';
|
||||
if (sp.sponsorBlocked === 'claim' && sp.claim) return (sp.claim.nobody ? 'Nobody above you on LinkSpin has a wallet yet, so there is no one for the contract to pay. ' : who + ' has not linked a wallet on LinkSpin yet. ') + 'Your first purchase waits until ' + (sp.claim.deadline ? new Date(sp.claim.deadline).toLocaleDateString() : 'they do') + ', then it goes ahead with the nearest member above who has one. Nothing was charged.';
|
||||
if (sp.sponsorBlocked === 'notActivated') return who + ' has not switched on payouts yet, so this purchase would credit the company instead of them. Ask them to switch on payouts first (one free transaction).';
|
||||
if (sp.sponsorBlocked === 'rpc') return 'Could not confirm your sponsor on the chain just now. Try again in a minute; nothing was charged.';
|
||||
return 'Your sponsor link could not be matched to a member. Message support before buying so ' + who + ' gets credit.';
|
||||
}
|
||||
async function linkWallet() { CR.toast('Check your wallet for the free link signature…'); await IAPWallet.signIn(); CR.toast('Wallet linked. Earnings pay there from now on.'); await load(); }
|
||||
async function activate() {
|
||||
const me = await CR.me(true); if (me.sponsorBlocked) { $('holdBox').textContent = holdText(me); $('holdBox').hidden = false; return; }
|
||||
CR.toast('Confirm the free activation in your wallet…');
|
||||
const r = await IAPWallet.activate(me.sponsorId || 0);
|
||||
if (!r.receipt || r.receipt.status !== '0x1') throw new Error('Transaction reverted. Check the explorer.');
|
||||
CR.toast('Payouts are on. Your invite link is live.'); await load();
|
||||
}
|
||||
async function buy() {
|
||||
const p = sel(); if (!p || !p.costWei) return;
|
||||
$('holdBox').hidden = true;
|
||||
let me = await CR.me(true);
|
||||
if (!me.address) { CR.toast('Link your wallet first: one quick signature…'); await IAPWallet.signIn(); me = await CR.me(true); }
|
||||
const want = String(me.address || '').toLowerCase(); if (!want) throw new Error('No wallet linked.');
|
||||
await IAPWallet.connect();
|
||||
let cur = String(await IAPWallet.activeAddress() || '').toLowerCase();
|
||||
if (cur !== want) { CR.toast('Pick ' + want.slice(0, 6) + '…' + want.slice(-4) + ' in your wallet\'s account picker…'); cur = String(await IAPWallet.pickAccount() || '').toLowerCase(); }
|
||||
if (cur !== want) throw new Error('Your wallet connected as ' + cur.slice(0, 6) + '…' + cur.slice(-4) + ' but your linked wallet is ' + want.slice(0, 6) + '…' + want.slice(-4) + '. Switch accounts in the wallet app and try again.');
|
||||
const sp = await CR.get('/api/sponsor');
|
||||
if (!me.memberId && sp.sponsorBlocked) { $('holdBox').textContent = holdText(sp); $('holdBox').hidden = false; return; }
|
||||
try { // pre-flight: the POL has to be there; Trust Wallet refuses transactions that spend most of a balance
|
||||
const need = BigInt(p.costWei) + BigInt(p.costWei) / 50n;
|
||||
const bal = await IAPWallet.balance(want);
|
||||
if (bal < need) { CR.toast('That wallet holds ' + pol(bal.toString()) + ' POL, but this package needs about ' + pol(need.toString()) + ' POL plus a little for gas. Top it up and try again.', true); return; }
|
||||
const pct = Number(need * 100n / bal);
|
||||
if (/trust/i.test(IAPWallet.walletName() || '') && pct > 55) {
|
||||
const ok = await CR.dialog({ title: 'Heads up for Trust Wallet', text: 'This purchase uses about ' + pct + '% of the POL in your wallet, and Trust Wallet refuses transactions that spend most of a balance. Add some POL first, or continue and see if it lets it through.', ok: 'Continue' });
|
||||
if (!ok) return;
|
||||
}
|
||||
} catch (e) { /* balance read failed: let the wallet decide */ }
|
||||
CR.toast('Confirm the purchase in your wallet…');
|
||||
const r = await IAPWallet.buy(Number(p.id), sp.sponsorId || 0, p.costWei);
|
||||
if (!r.receipt || r.receipt.status !== '0x1') throw new Error('Transaction reverted. Nothing was charged beyond gas.');
|
||||
CR.toast('Settled on-chain. Your credits are in Ads now.');
|
||||
await load();
|
||||
}
|
||||
$('buyBtn').addEventListener('click', () => guard($('buyBtn'), buy));
|
||||
$('cardBtn').addEventListener('click', () => guard($('cardBtn'), async () => {
|
||||
const p = sel(); const need = p && p.costWei ? Math.max(10, Math.ceil(Number(BigInt(p.costWei) / 1000000000000000000n)) + 3) : 30;
|
||||
const q = '/api/moonpay-url?pol=' + need + (ME && ME.address ? '&address=' + encodeURIComponent(ME.address) : '');
|
||||
const r = await CR.get(q); if (!r.url) throw new Error('The card on-ramp is not available right now.');
|
||||
window.open(r.url, '_blank', 'noopener'); CR.toast('MoonPay opened in a new tab. POL lands straight in your own wallet.');
|
||||
}));
|
||||
|
||||
async function load() {
|
||||
try { [CFG, ME] = await Promise.all([CR.get('/api/config'), CR.me(true)]); } catch (e) { CR.sub('could not load'); return; }
|
||||
let cat = null, E = null;
|
||||
try { [cat, CAMP, DASH, E] = await Promise.all([CR.get('/api/catalog'), CR.get('/api/my/campaigns'), CR.get('/api/my/dashboard'), CR.get('/api/my/activity')]); } catch (e) {}
|
||||
CAT = (cat && cat.products) || [];
|
||||
CR.sub((CAMP ? fmt(CAMP.availableCredits) + ' free to spend · ' + fmt(CAMP.inCampaigns) + ' in live ads' : '') + (CAT[0] && CAT[0].costWei ? '' : ' · price feed catching up'));
|
||||
paintTiles(); paintPkgs(); paintQuote(); paintGoes(); paintWallet(); paintBuys(E);
|
||||
const spName = ME.sponsorName ? ('@' + String(ME.sponsorName).replace(/^@/, '')) : null;
|
||||
$('sponsorLine').innerHTML = spName
|
||||
? 'Your sponsor <b>' + esc(spName) + '</b> is placed on the contract. The moment you confirm, half of the package lands in their wallet and the rest splits as shown. Credits appear in Ads right away.'
|
||||
: 'No sponsor is recorded on your account. Your purchase still works; the sponsor share goes to the platform position. If someone invited you, open their invite link first.';
|
||||
if (ME.sponsorBlocked) { $('holdBox').textContent = holdText(ME); $('holdBox').hidden = false; }
|
||||
}
|
||||
CR.requireSession(load);
|
||||
})();
|
||||
+42
-88
@@ -1,112 +1,66 @@
|
||||
// Invite / lead-capture page: /join/<token>[?v=<angle>]
|
||||
// Email first (code sign-in creates the account), wallet later inside the
|
||||
// member area. The angle only changes the hook copy; the sponsor cookie was
|
||||
// set by the server when this page was served.
|
||||
// Join / sign-in page: /join, /join/<token>[?v=<angle>] (2026-10-07, Instrument scheme). Email first, the code
|
||||
// door creates the account, wallet later inside the Control Room. The sponsor cookie was set by the server when
|
||||
// this page was served; ?v= only changes the hook copy. Uses IAP.requestCode from common.js for the sign-up guard
|
||||
// (honeypot, form age, icon check) so the door stays the same one the engine protects.
|
||||
(function () {
|
||||
const $ = id => document.getElementById(id);
|
||||
const LEG = (brand, seg) => seg === 'adv'
|
||||
? { eyebrow: 'For former ' + brand + ' advertisers', h: 'Your next ad budget <em>pays you back.</em>',
|
||||
lead: brand + ' is closed. The people who bought ads there are exactly who LinkSpin was built for: real ad packages from $5, seven formats, and every package in your line paid out by a verified contract on Polygon in the same transaction.',
|
||||
points: ['Welcome-back credits land the moment your account exists: enough to run a real banner or text campaign today, on us.', 'Seven formats: banners, text ads, login ads, solo ads to member inboxes, video, featured links and verified visits. Views are timed on the server, so a real person saw your ad.', 'When anyone in your line buys ads, the contract pays you in that same transaction. Public on Polygonscan, nothing held, nothing to withdraw.'],
|
||||
cta: 'Claim your welcome-back credits', sub: 'Free account by email. No password, no wallet today. Use the email you had on ' + brand + ': the credits are tied to it.', video: false }
|
||||
: { eyebrow: 'For former ' + brand + ' members', h: 'Same daily habit. <em>Real payouts on-chain.</em>',
|
||||
lead: 'You viewed ads on ' + brand + '. Here you view ads to earn credits, run your own campaign with them for free, and when anyone in your line buys ads you are paid in POL to your own wallet in the same transaction.',
|
||||
points: ['Welcome-back credits on day one, so your first campaign runs before you have viewed a single ad.', 'Join with just an email. No password, no wallet today. Link a wallet later, only when you want payouts switched on.', 'Every payout is a public transaction on Polygon. Nothing is held, so there is nothing to withdraw and nothing to wait for.'],
|
||||
cta: 'Claim your welcome-back credits', sub: 'Free account by email. Use the email you had on ' + brand + ': the credits are tied to it.', video: false };
|
||||
const esc = s => String(s == null ? '' : s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
|
||||
const framed = (() => { try { return window.top !== window.self; } catch (e) { return true; } })();
|
||||
// hook angles (LinkSpin copy only; the legacy Faucet Wave / Tier One Ads angles fall back to the default)
|
||||
const ANGLES = {
|
||||
'fw-adv': LEG('Faucet Wave', 'adv'), 'fw-earn': LEG('Faucet Wave', 'earn'), 't1-adv': LEG('Tier One Ads', 'adv'), 't1-earn': LEG('Tier One Ads', 'earn'),
|
||||
instant: { eyebrow: 'Same-transaction payouts', h: 'Paid before the page <em>reloads.</em>', lead: 'What if your commission landed before the thank-you page finished loading? On LinkSpin that is not a metaphor. A smart contract on Polygon splits every ad package the moment it sells.',
|
||||
points: ['A verified contract splits every package in the same transaction it sells: 50 percent to the sponsor, 20 and 10 up the line, 20 to the platform.', 'It lands in your own wallet in seconds. There is no balance to withdraw because nothing is ever held.', 'Every payment is public on Polygonscan, so you can check the claim before you spend a dollar.'],
|
||||
cta: 'See a payout land in seconds', sub: 'Free account by email. No password, no wallet today. Your invite link is live the moment you are in.' },
|
||||
adspend: { eyebrow: 'For marketers who buy traffic', h: 'You were buying <em>ads anyway.</em>', lead: 'Every ad dollar you ever spent went one direction: out. Here the ad spend in your line pays you, in the same transaction, on a public ledger. Seven formats, dwell-timed views, packages from $5.',
|
||||
points: ['Seven formats: banners, text ads, login ads, solo ads to member inboxes, video, featured links and verified visits.', 'Views are timed on the server, so a real person saw your ad. Banners and text also run across a partner ad network.', 'When anyone in your line buys ads, the contract pays you in that same transaction.'],
|
||||
cta: 'Put your next ad dollar where it pays you back', sub: 'Free account by email. See every format and the live rates before you buy anything.' },
|
||||
free: { eyebrow: 'Costs nothing to try', h: 'Watch first. <em>Spend never.</em>', lead: 'Join free, view a few ads, earn credits, and run your first campaign for zero dollars. Upgrade only if you want more reach.',
|
||||
points: ['Join with just an email. No password, no wallet today.', 'View a few ads each day and earn credits you can spend on your own banner or text campaign.', 'Buy a package only if you want more reach. They start at $5, and every payout on them is public.'],
|
||||
cta: 'Start for free. No card, no wallet.', sub: 'Type your email and we send a 6-digit code. That is the whole signup.' },
|
||||
ledger: { eyebrow: 'No back office', h: 'No back office. <em>No payday.</em>', lead: 'Your last program paid you on the 15th, if it paid you. Here every payout is a public transaction on Polygon you can read yourself, and nothing is ever held.',
|
||||
points: ['Every payout is a public transaction on Polygon. Click it, read it, verify it yourself.', 'The contract holds zero balance. It splits and sends in the same transaction, with no pause switch and no upgrade path.', 'No back office means nobody can delay, reverse or review your commission.'],
|
||||
cta: 'Check the ledger yourself, then decide', sub: 'Free account by email. The public ledger and the verified contract are one click from your dashboard.' },
|
||||
two: { eyebrow: 'The referral side, exactly as coded', h: 'Two buyers open <em>level two.</em>', lead: 'Every direct buyer pays you 50 percent from their first package. Two qualifying buyers open level two, five open level three. Written as constants in a verified contract.',
|
||||
points: ['Every direct buyer pays you 50 percent from their very first package.', 'Two qualifying buyers open level two at 20 percent. Five open level three at 10 percent. Constants in a verified contract.', 'Until a level opens, its share climbs to the next qualified member above, so the plan rewards the people who build.'],
|
||||
cta: 'Start your line. Two buyers is the target.', sub: 'Free account by email. Your invite link and the team-building plays are waiting inside.' }
|
||||
instant: { eyebrow: 'Same-transaction payouts', h: 'Paid before the page <em>reloads.</em>', lead: 'A verified contract on Polygon splits every ad package the moment it sells: half to the sponsor, 20 and 10 up the line, 20 to the platform. It lands in your own wallet in seconds, on a public ledger.', points: ['Nothing is held by the site. Nothing is promised for later.', 'Every payout is a transaction you can open and read.', 'Join free by email. Link a wallet only when you want to be paid.'], cta: 'See a payout land in seconds', sub: 'free account by email' },
|
||||
free: { eyebrow: 'Costs nothing to try', h: 'One link. <em>Zero dollars.</em>', lead: 'Spin links, bridge and review pages, and an ad zone for your own site are free. View a few ads a day and you earn credits to run your own banner or text ad. Buy a package only if you want more.', points: ['Join with just an email. No password, no wallet today.', 'Your first spin link is live the second you make it.', 'Credits from viewing ads pay for your first campaign.'], cta: 'Start for free. No card, no wallet.', sub: 'type your email, get a code, that is the whole signup' },
|
||||
ledger: { eyebrow: 'No back office', h: 'No back office. <em>No payday.</em>', lead: 'Your last program paid you on the 15th, if it paid you. Here every payout is a public transaction on Polygon you can read yourself, and the contract holds zero balance.', points: ['Every payout is public. Click it, read it, verify it.', 'The contract has no pause button and no owner power over money.', 'Join free by email. The ledger is one click from your dashboard.'], cta: 'Check the ledger yourself, then decide', sub: 'free account by email' },
|
||||
two: { eyebrow: 'The referral side, exactly as coded', h: 'Two buyers open <em>level two.</em>', lead: 'Every direct buyer pays you half of their package from their very first purchase. Two qualifying buyers open level two at 20 percent. Five open level three at 10 percent. Constants in a verified contract.', points: ['Half of every direct purchase, instantly.', 'Level 2 at two qualifying buyers, level 3 at five.', 'Your invite link is live the moment you are in.'], cta: 'Start your line. Two buyers is the target.', sub: 'free account by email' },
|
||||
adspend: { eyebrow: 'For marketers who buy traffic', h: 'You were buying <em>ads anyway.</em>', lead: 'Every ad dollar you ever spent went one direction: out. Here the ad spend in your line pays you, in the same transaction, on a public ledger. Banner, text and login ads, packages from $10.', points: ['Views are timed on the server, so a real person saw your ad.', 'Your ads run in the viewer, on member sites and across the partner network.', 'Rotate the pages you promote with one spin link, free.'], cta: 'Put your next ad dollar where it pays you back', sub: 'free account by email, see every rate before you buy' }
|
||||
};
|
||||
// ?name=First personalises the page (site-owner links, Marty 2026-09-12): letters, spaces, hyphens,
|
||||
// apostrophes only, 30 chars. On the company placement links it says the top spot is reserved.
|
||||
const who = String(new URLSearchParams(location.search).get('name') || '').replace(/[^A-Za-z\u00C0-\u024F' -]/g, '').trim().slice(0, 30);
|
||||
if (who) {
|
||||
const top = /^\/join\/(company|top)$/i.test(location.pathname);
|
||||
const h = $('jnHello');
|
||||
if (h) { h.textContent = who + (top ? ', your spot directly under the company at the top is reserved for you. Activate with the $20 package to claim it.' : ', this invitation is for you.'); h.hidden = false; }
|
||||
}
|
||||
const v = new URLSearchParams(location.search).get('v') || (document.cookie.match(/(?:^|; )iap\.angle=([^;]+)/) || [])[1] || '';
|
||||
const a = v && ANGLES[v];
|
||||
const v = (new URLSearchParams(location.search).get('v') || (document.cookie.match(/(?:^|; )iap\.angle=([^;]+)/) || [])[1] || '').toLowerCase();
|
||||
const a = ANGLES[v];
|
||||
if (a) {
|
||||
document.body.classList.add('squeeze'); // server sets it too; this covers cached HTML
|
||||
$('jnEyebrow').textContent = '· ' + a.eyebrow; $('jnHead').innerHTML = a.h; $('jnLead').textContent = a.lead;
|
||||
if (a.cta) { $('jnCapH').textContent = a.cta; $('jnCapSub').textContent = a.sub || ''; }
|
||||
// the matching hook video + this angle's three points replace the worked example
|
||||
const VID = 'https://coolify-saasytop.nyc3.digitaloceanspaces.com/promo/';
|
||||
const vid = $('jnVideo');
|
||||
if (a.video === false) vid.hidden = true; else { vid.src = VID + v + '.mp4'; vid.poster = VID + v + '.jpg'; }
|
||||
$('jnPoints').innerHTML = (a.points || []).map(t => '<li>' + t.replace(/[&<>]/g, c => ({ '&': '&', '<': '<', '>': '>' }[c])) + '</li>').join('');
|
||||
$('jnMock').hidden = true; $('jnAngle').hidden = false; $('jnPoints').hidden = false;
|
||||
document.body.classList.add('squeeze');
|
||||
$('jnEyebrow').textContent = a.eyebrow; $('jnEyebrow').hidden = false; $('jnHead').innerHTML = a.h; $('jnLead').textContent = a.lead;
|
||||
$('jnCapH').textContent = a.cta; $('jnCapSub').textContent = a.sub || '';
|
||||
$('jnPoints').innerHTML = a.points.map(t => '<li>' + esc(t) + '</li>').join(''); $('jnPoints').hidden = false;
|
||||
}
|
||||
// ?name=First personalises the page (site-owner links): letters, spaces, hyphens, apostrophes only, 30 chars
|
||||
const who = String(new URLSearchParams(location.search).get('name') || '').replace(/[^A-Za-zÀ-ɏ' -]/g, '').trim().slice(0, 30);
|
||||
if (who) { $('jnCapH').textContent = who + ', this invitation is for you'; }
|
||||
|
||||
async function api(path, body) {
|
||||
const r = await (await fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body || {}) })).json();
|
||||
if (r.error) throw new Error(r.error);
|
||||
return r;
|
||||
}
|
||||
async function api(path, body) { const r = await (await fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body || {}) })).json(); if (r.error) throw new Error(r.error); return r; }
|
||||
const err = m => { const e = $('jnErr'); e.textContent = m || ''; e.hidden = !m; };
|
||||
function busy(btn, fn) {
|
||||
return async () => { if (btn.disabled) return; btn.disabled = true; err(''); try { await fn(); } catch (e) { err(e.message || 'Something went wrong.'); } finally { btn.disabled = false; } };
|
||||
}
|
||||
const busy = (btn, fn) => async ev => { if (ev && ev.preventDefault) ev.preventDefault(); if (btn.disabled) return; btn.disabled = true; err(''); try { await fn(); } catch (e) { err(e.message || 'Something went wrong.'); } finally { btn.disabled = false; } };
|
||||
const codeOpts = () => ({ honeypot: $('jnWebsite'), host: $('jnCheck') });
|
||||
let sponsorName = '';
|
||||
const send = busy($('jnSend'), async () => {
|
||||
const r = await IAP.requestCode($('jnEmail').value, codeOpts());
|
||||
$('jnCodeRow').hidden = false; $('jnVerify').hidden = false; $('jnSend').hidden = true; $('jnResend').hidden = false;
|
||||
const email = $('jnEmail').value.trim(); if (!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(email)) throw new Error('That email address does not look right.');
|
||||
const r = await IAP.requestCode(email, codeOpts());
|
||||
$('jnCodeRow').hidden = false; $('jnCodeRow').style.display = 'flex'; $('jnSend').hidden = true;
|
||||
if (r.devCode) $('jnCode').value = r.devCode;
|
||||
// the last thing they see before the account is created: who they are joining under
|
||||
if (sponsorName) { $('jnUnder').textContent = 'Joining under ' + sponsorName + '. Not who invited you? Open their invite link first, then come back for the code.'; $('jnUnder').hidden = false; }
|
||||
IAP.status(r.sent ? 'Code sent. Check your inbox (and spam, the first time).' : 'Dev mode: code filled in.', 'ok');
|
||||
$('jnCode').focus();
|
||||
});
|
||||
$('jnSend').addEventListener('click', send);
|
||||
$('jnResend').addEventListener('click', busy($('jnResend'), async () => {
|
||||
const r = await IAP.requestCode($('jnEmail').value, codeOpts());
|
||||
if (r.devCode) $('jnCode').value = r.devCode;
|
||||
IAP.status('Fresh code sent.', 'ok');
|
||||
}));
|
||||
$('jnForm').addEventListener('submit', send);
|
||||
$('jnResend').addEventListener('click', busy($('jnResend'), async () => { const r = await IAP.requestCode($('jnEmail').value.trim(), codeOpts()); if (r.devCode) $('jnCode').value = r.devCode; }));
|
||||
$('jnVerify').addEventListener('click', busy($('jnVerify'), async () => {
|
||||
await api('/api/auth/email/verify', { email: $('jnEmail').value, code: $('jnCode').value, newsletter: !!$('jnNews').checked, followups: !!$('jnNews').checked });
|
||||
IAP.status('You are in. Taking you to your dashboard…', 'ok');
|
||||
location.href = '/my?welcome=1'; // dashboard runs the username step + welcome tour on arrival
|
||||
const code = $('jnCode').value.trim(); if (code.length < 6) throw new Error('Enter the six digits from the email.');
|
||||
await api('/api/auth/email/verify', { email: $('jnEmail').value.trim(), code, newsletter: !!$('jnNews').checked, followups: !!$('jnNews').checked });
|
||||
const dest = '/links?welcome=1';
|
||||
if (framed) window.open(dest, '_blank', 'noopener'); else location.href = dest;
|
||||
}));
|
||||
$('jnEmail').addEventListener('keydown', e => { if (e.key === 'Enter') ($('jnVerify').hidden ? $('jnSend') : $('jnVerify')).click(); });
|
||||
$('jnCode').addEventListener('keydown', e => { if (e.key === 'Enter') $('jnVerify').click(); });
|
||||
$('jnCode').addEventListener('keydown', e => { if (e.key === 'Enter') { e.preventDefault(); $('jnVerify').click(); } });
|
||||
|
||||
// sponsor line (the link opened most recently sets the sponsor; it locks at account creation)
|
||||
let sponsorName = '';
|
||||
// sign-ups closed (test area): the door still signs existing members in, the copy says so
|
||||
fetch('/api/config').then(r => r.json()).then(c => { if (c && c.signupsOpen === false) { $('jnShut').hidden = false; $('jnCapH').textContent = 'Sign in'; $('jnCapSub').textContent = 'sign-ups open soon'; } }).catch(() => {});
|
||||
// the sponsor: the link opened most recently sets it; it locks at account creation
|
||||
const linkTok = (location.pathname.match(/^\/join\/([^/?#]+)/) || [])[1] || '';
|
||||
fetch('/api/sponsor' + (linkTok ? '?ref=' + encodeURIComponent(linkTok) : '')).then(r => r.json()).then(sp => {
|
||||
if (sp && sp.invited && sp.name) {
|
||||
sponsorName = sp.name;
|
||||
$('jnSponName').textContent = sp.name + (sp.own ? ' (this is your own invite page; visitors see your name here)' : '');
|
||||
if (sp.avatarUrl) { $('jnSponImg').src = sp.avatarUrl; $('jnSponImg').hidden = false; }
|
||||
if (sp.cobrand && sp.bio && $('jnSponBio')) { $('jnSponBio').textContent = sp.bio; $('jnSponBio').hidden = false; $('jnSpon').classList.add('cobrand'); }
|
||||
$('jnSpon').hidden = false;
|
||||
$('sponName').textContent = sp.name + (sp.own ? ' (your own invite page; visitors see your name here)' : '');
|
||||
$('sponAv').innerHTML = sp.avatarUrl ? '<img src="' + esc(sp.avatarUrl) + '" alt="">' : esc(String(sp.name).replace(/^@/, '').slice(0, 2).toUpperCase());
|
||||
if (sp.cobrand && sp.bio) { $('sponBio').textContent = sp.bio; $('sponBio').hidden = false; }
|
||||
$('spon').hidden = false;
|
||||
}
|
||||
}).catch(() => {});
|
||||
// package ladder (dollar constants + live POL quote)
|
||||
const NAMES = { 1: 'Micro', 2: 'Activation', 3: 'Builder', 4: 'Growth', 5: 'Leader' };
|
||||
fetch('/api/catalog').then(r => r.json()).then(c => {
|
||||
const wrap = $('jnLadder'); if (!wrap || !c.products) return;
|
||||
wrap.innerHTML = c.products.filter(p => p.active !== false).map(p =>
|
||||
'<div class="jn-pk"><div class="n">' + (NAMES[p.id] || 'Package ' + p.id) + '</div><div class="p">' + IAP.fmtUsd(p.priceCents) + '</div><div class="c">' + Number(p.creditAmount).toLocaleString() + ' credits</div>'
|
||||
+ (p.costWei ? '<div class="small muted">' + IAP.fmtPol(p.costWei) + ' POL now</div>' : '') + '</div>').join('');
|
||||
}).catch(() => {});
|
||||
fetch('/api/stats').then(r => r.json()).then(s => {
|
||||
if (s && s.onchainMembers) $('jnStats').textContent = s.onchainMembers.toLocaleString() + (s.onchainMembers === 1 ? ' member' : ' members') + ' on-chain so far.';
|
||||
}).catch(() => {});
|
||||
fetch('/api/stats').then(r => r.json()).then(s => { if (s && s.onchainMembers > 1) { $('jnStatsText').textContent = s.onchainMembers.toLocaleString() + ' members on-chain so far'; $('jnStats').hidden = false; } }).catch(() => {});
|
||||
})();
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,86 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title>Credits · LinkSpin</title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/cr.css?v=20260929d">
|
||||
<style>
|
||||
.body{padding:16px 24px;display:grid;gap:16px}
|
||||
.two{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
|
||||
.pkgs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
|
||||
.pk{border:1px solid var(--line);border-radius:8px;padding:12px 12px 10px;background:#FFF;display:flex;flex-direction:column;gap:4px;cursor:pointer;text-align:left;font:inherit;color:inherit;min-height:44px;box-shadow:var(--sh)}
|
||||
.pk:hover{border-color:var(--accent)}
|
||||
.pk.on{border-color:var(--sig);box-shadow:0 0 0 3px rgba(255,106,26,.18);background:linear-gradient(180deg,#FFFFFF,var(--hi-row))}
|
||||
.pk .k{font:700 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
|
||||
.pk.on .k{color:var(--sig-2)}
|
||||
.pk .price{font-family:var(--display);font-weight:700;font-size:28px;line-height:1;letter-spacing:.02em}
|
||||
.pk.on .price{color:var(--accent-hi)}
|
||||
.pk .cr{font-size:12px;color:var(--ink-2)}
|
||||
.pk .tag{align-self:flex-start;margin-top:2px}
|
||||
.row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
|
||||
.row:last-child{border-bottom:0}
|
||||
.buys .hd,.buys .rw{grid-template-columns:150px 110px 130px minmax(0,1fr)}
|
||||
.acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
|
||||
@media (max-width:900px){.two{grid-template-columns:1fr}.pkgs{grid-template-columns:repeat(2,minmax(0,1fr))}.buys .hd{display:none}.buys .rw{grid-template-columns:1fr 1fr}.body{padding:12px 16px}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div class="body">
|
||||
<div class="tiles" id="tiles"></div>
|
||||
<div class="two">
|
||||
<div style="display:grid;gap:16px;align-content:start">
|
||||
<div class="panel" style="padding:0">
|
||||
<div class="ph"><h3>Buy a package</h3><span class="meta" id="buyMeta">priced in dollars · settled in POL at the live rate · one transaction</span></div>
|
||||
<div style="padding:14px 16px 16px;display:grid;gap:14px">
|
||||
<div class="pkgs" id="pkgs"><div class="muted">loading packages…</div></div>
|
||||
<div class="acts">
|
||||
<span class="led"><span style="font-size:10px;letter-spacing:.1em;text-transform:uppercase">you pay</span><b id="payPol">·</b><span id="payUsd"></span></span>
|
||||
<span class="mono muted" style="font-size:11px" id="rateLine"></span>
|
||||
</div>
|
||||
<div class="acts" id="buyActs">
|
||||
<button class="btn pri" type="button" id="buyBtn" disabled>Connect a wallet to buy</button>
|
||||
<button class="btn" type="button" id="cardBtn">Buy POL with a card</button>
|
||||
<span class="muted" style="font-size:12px">SafePal recommended. MetaMask, Phantom and WalletConnect wallets also work.</span>
|
||||
</div>
|
||||
<div id="holdBox" class="warn" style="font-size:13px" hidden></div>
|
||||
<p class="ink2" style="margin:0;font-size:12.5px;line-height:1.5" id="sponsorLine">Loading your sponsor…</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tbl buys">
|
||||
<div class="ph"><h3>Your purchases</h3><span class="meta" id="buysMeta">every row links to the transaction</span></div>
|
||||
<div class="hd"><span>When</span><span>Package</span><span>Paid</span><span>Transaction</span></div>
|
||||
<div id="buyRows"></div>
|
||||
<div class="ft">credits appear in Ads the moment the transaction settles · nothing is held by the site</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:grid;gap:16px;align-content:start">
|
||||
<div class="panel" style="padding:0">
|
||||
<div class="ph"><h3 id="goesTitle">Where it goes</h3><span class="meta">same transaction</span></div>
|
||||
<div style="padding:10px 16px 14px" id="goesRows"></div>
|
||||
</div>
|
||||
<div class="panel" style="padding:0">
|
||||
<div class="ph"><h3>Your wallet</h3><span class="meta" id="walletMeta"></span></div>
|
||||
<div style="padding:12px 16px 14px;display:grid;gap:10px" id="walletBox"></div>
|
||||
</div>
|
||||
<div class="panel" style="padding:0">
|
||||
<div class="ph"><h3>Earn instead</h3><span class="meta">free credits</span></div>
|
||||
<div style="padding:12px 16px 14px;display:grid;gap:8px;font-size:13px" class="ink2">
|
||||
<div style="display:flex;justify-content:space-between;gap:10px"><span>View 5 ads, claim 5 credits</span><a href="/ads" style="font-weight:700;text-decoration:none">Ads →</a></div>
|
||||
<div style="display:flex;justify-content:space-between;gap:10px"><span>Run a zone on your site</span><a href="/zones" style="font-weight:700;text-decoration:none">Zones →</a></div>
|
||||
<div style="display:flex;justify-content:space-between;gap:10px"><span>Sign-in ad, once a day</span><span class="mono muted" style="font-size:11px">automatic</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/assets/common.js?v=ls20260916a"></script>
|
||||
<script src="/assets/wallet.js?v=20260911a"></script>
|
||||
<script src="/assets/cr-shell.js?v=20261007a"></script>
|
||||
<script src="/assets/credits-screen.js?v=20261007a"></script>
|
||||
</body>
|
||||
</html>
|
||||
+73
-143
@@ -2,162 +2,92 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<title>You're invited | LinkSpin</title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@500;700;800&display=swap">
|
||||
<title>Join LinkSpin</title>
|
||||
<meta name="description" content="Join LinkSpin free with just your email. Spin links, pages and ad zones at once. Link a wallet only when you want to be paid.">
|
||||
<meta name="robots" content="noindex, follow">
|
||||
<meta name="theme-color" content="#0B1424">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="icon" type="image/png" href="/logo-icon.png">
|
||||
<link rel="stylesheet" href="/assets/site.css?v=ls20260916a">
|
||||
<link rel="stylesheet" href="/assets/pub.css?v=20261007a">
|
||||
<style>
|
||||
.jn-nav{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 0}
|
||||
.jn-nav>a{white-space:nowrap;flex:0 0 auto;padding-top:8px}
|
||||
.jn-nav .logo-wrap{min-width:0}
|
||||
@media (max-width:480px){.jn-nav .byline{white-space:normal}}
|
||||
.jn-hero{padding:14px 0 4px;text-align:left}
|
||||
.jn-brand{font-family:var(--disp);font-weight:800;font-size:20px;margin:0 0 4px;color:var(--ink)}
|
||||
.jn-brand em{font-style:normal;color:var(--mint)}
|
||||
.jn-brand span{font-weight:500;font-size:14px;color:var(--muted)}
|
||||
.jn-strip{margin-top:22px}
|
||||
.jn-strip .jn-chips{margin:0}
|
||||
.jn-hero h1{font-size:clamp(26px,3.6vw,40px);line-height:1.08;margin:4px 0 8px;max-width:760px;text-align:left;letter-spacing:-.015em}
|
||||
.jn-hero h1 em{font-style:normal;color:var(--mint)}
|
||||
.jn-hero p.lead{margin:0 0 12px;text-align:left;max-width:620px;font-size:15.5px}
|
||||
.jn-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start;margin-top:4px}
|
||||
#jnVideo{width:100%;aspect-ratio:16/9;display:block;border-radius:16px;border:1px solid var(--line-strong);background:#000}
|
||||
/* angle pages (?v=) are squeeze pages: hook, video, one call to action. The full page is for the plain link. */
|
||||
body.squeeze .jn-hero{max-width:720px;margin:0 auto;text-align:center;padding-top:6px}
|
||||
body.squeeze .jn-hero h1,body.squeeze .jn-hero p.lead{text-align:center;margin-left:auto;margin-right:auto}
|
||||
body.squeeze .jn-hero h1{font-size:clamp(30px,4.4vw,46px)}
|
||||
body.squeeze .jn-spon,body.squeeze .jn-brand{justify-content:center}
|
||||
body.squeeze .jn-grid{display:flex;flex-direction:column;max-width:720px;margin:0 auto;gap:18px}
|
||||
body.squeeze .jn-grid>div:first-child>p{display:none}
|
||||
body.squeeze .jn-cap{position:static;box-shadow:0 0 80px rgba(59,157,255,.16)}
|
||||
body.squeeze .jn-cap h3{font-size:22px}
|
||||
body.squeeze #jnMock,body.squeeze .jn-strip,body.squeeze .jn-full{display:none}
|
||||
body.squeeze .jn-points{max-width:720px;margin:4px auto 0}
|
||||
body.squeeze .jn-foot{margin-top:28px}
|
||||
.jn-points{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
|
||||
.jn-points li{position:relative;padding-left:26px;font-size:15px;line-height:1.45}
|
||||
.jn-points li::before{content:"✓";position:absolute;left:0;top:0;color:var(--mint);font-weight:800}
|
||||
@media(max-width:860px){.jn-grid{grid-template-columns:1fr}}
|
||||
.jn-cap{border-color:var(--mint);box-shadow:0 0 60px rgba(59,157,255,.12);position:sticky;top:18px}
|
||||
@media(max-width:860px){.jn-cap{position:static}}
|
||||
.jn-grid>div:first-child .mockup{margin:0}
|
||||
.jn-cap h3{margin:0 0 6px}
|
||||
.jn-cap input{width:100%}
|
||||
.jn-cap .btn{width:100%;text-align:center}
|
||||
.jn-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
|
||||
.jn-chips span{border:1px solid var(--line-strong);border-radius:999px;padding:6px 14px;font-size:13px;color:var(--muted)}
|
||||
.jn-chips span b{color:var(--mint);font-weight:700}
|
||||
.jn-spon{display:flex;align-items:center;gap:10px;margin:0 0 6px}
|
||||
.jn-spon img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid var(--line-strong)}
|
||||
.jn-full{margin-top:26px}
|
||||
.jn-h{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin:0 0 14px}
|
||||
.jn-h h2{font-size:26px;margin:0}
|
||||
.jn-h p{margin:0;font-size:14.5px}
|
||||
.jn-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
|
||||
.jn-steps .card h3{font-size:19px;margin:8px 0 8px;min-height:2.4em}
|
||||
.jn-steps .card p{margin:0}
|
||||
@media(max-width:700px){.jn-steps{grid-template-columns:1fr}}
|
||||
.jn-steps .card{margin:0}
|
||||
.jn-steps .n{font-family:var(--mono);color:var(--mint);font-size:12px;letter-spacing:.1em}
|
||||
.jn-ladder{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
|
||||
@media(max-width:900px){.jn-ladder{grid-template-columns:repeat(3,1fr)}}
|
||||
@media(max-width:560px){.jn-ladder{grid-template-columns:repeat(2,1fr)}}
|
||||
.jn-pk{border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center;background:var(--panel)}
|
||||
.jn-pk .p{font-family:var(--disp);font-size:26px;font-weight:800}
|
||||
.jn-pk .c{color:var(--mint);font-weight:700;font-size:13.5px}
|
||||
.jn-pk .n{color:var(--muted);font-size:11.5px;text-transform:uppercase;letter-spacing:.1em}
|
||||
.jn-foot{color:var(--muted);font-size:13px;border-top:1px solid var(--line);margin-top:40px;padding:22px 0 50px}
|
||||
.jn-err{color:var(--bad)}
|
||||
.jn-spon.cobrand{border:1px solid rgba(59,157,255,.4);border-radius:14px;padding:10px 14px;margin-bottom:12px}.jn-spon.cobrand img{width:56px;height:56px;border-radius:50%}.jn-bio{display:block;margin-top:4px;color:var(--ink);font-size:14px;max-width:60ch}
|
||||
.spon{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#FFF;align-self:flex-start;max-width:100%}
|
||||
.spon .av{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent-dim));display:grid;place-items:center;color:#fff;font:700 11px var(--mono);overflow:hidden;flex:none}
|
||||
.spon .av img{width:100%;height:100%;object-fit:cover}
|
||||
.steps{display:flex;flex-direction:column;gap:12px;margin-top:6px}
|
||||
.step{display:flex;gap:12px;align-items:flex-start}
|
||||
.step b{font:700 11px var(--mono);color:var(--accent-hi);letter-spacing:.08em;min-width:56px;padding-top:3px;text-transform:uppercase}
|
||||
.card{flex:0 1 440px;min-width:0;width:100%;max-width:440px}
|
||||
.hero .copy h1{font-size:46px}
|
||||
.hero .copy h1 em{font-style:normal;color:var(--accent-hi)}
|
||||
body.squeeze .steps,body.squeeze .checks{display:none}
|
||||
.points{margin:0;padding-left:18px;color:var(--ink-2);display:flex;flex-direction:column;gap:6px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="jn-nav">
|
||||
<span class="logo-wrap"><a href="/"><span class="wordmark"><svg viewBox="0 0 24 24" fill="none" stroke="#8cc8ff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12a8 8 0 0 1 14-5.3"/><path d="M18 3v4h-4"/><path d="M20 12a8 8 0 0 1-14 5.3"/><path d="M6 21v-4h4"/></svg>Link<b>Spin</b></span></a><span class="byline">Brought to you by the <b>Crypto Team Build Network</b></span></span>
|
||||
<a class="small muted" href="/my">Already a member? Sign in</a>
|
||||
<header class="top">
|
||||
<div class="wrap">
|
||||
<a class="brand" href="/" aria-label="LinkSpin home"><span class="mark"></span><span class="word">Link<b>Spin</b></span></a>
|
||||
<span class="grow"></span>
|
||||
<span class="mono" style="font-size:11px;color:var(--chrome-sub);letter-spacing:.04em">already a member? the same form signs you in</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="jn-hero">
|
||||
<div class="jn-spon" id="jnSpon" hidden><img id="jnSponImg" alt="" hidden><span class="small muted">Personal invitation from <b id="jnSponName" style="color:var(--mint)"></b><br><span id="jnSponBio" class="jn-bio" hidden></span></span></div>
|
||||
<p class="jn-brand">Link<em>Spin</em> <span id="jnEyebrow">· Advertise and earn on Polygon</span></p>
|
||||
<p class="jn-hello" id="jnHello" hidden style="margin:8px 0 12px;padding:10px 14px;border:1px solid var(--mint);border-radius:12px;color:var(--mint);font-weight:700"></p>
|
||||
<h1 id="jnHead">Advertise and earn.<br><em>Paid on-chain, instantly.</em></h1>
|
||||
<p class="lead" id="jnLead">Every ad package splits to real wallets in the same transaction it sells. No pending payouts, no withdraw button, and every payment is public.</p>
|
||||
</section>
|
||||
|
||||
<div class="jn-grid">
|
||||
<div>
|
||||
<div id="jnAngle" hidden>
|
||||
<video id="jnVideo" controls playsinline preload="metadata"></video>
|
||||
<main class="hero">
|
||||
<div class="wrap">
|
||||
<div class="copy">
|
||||
<div class="spon" id="spon" hidden><span class="av" id="sponAv"></span><span style="font-size:13px"><span class="muted">Invited by</span> <b id="sponName"></b></span><span class="tag ok">sponsor set</span></div>
|
||||
<p class="ink2" id="sponBio" hidden style="margin:0;font-size:14px;max-width:52ch"></p>
|
||||
<p class="eyebrow" id="jnEyebrow" hidden></p>
|
||||
<h1 class="disp" id="jnHead">Email first.<br>Wallet when you<br><em>want to be paid.</em></h1>
|
||||
<p class="lede" id="jnLead">A free account gives you spin links, pages and a zone for your own site. Nothing to install, no password to remember. When you buy a package or want payouts, you link a wallet from inside the Control Room.</p>
|
||||
<ul class="points" id="jnPoints" hidden></ul>
|
||||
<div class="steps">
|
||||
<div class="step"><b>Step 1</b><span>Enter your email. We send a six-digit code.</span></div>
|
||||
<div class="step"><b>Step 2</b><span>Pick a username. It becomes your invite link.</span></div>
|
||||
<div class="step"><b>Step 3</b><span>You land in Links with your first spin ready to fill.</span></div>
|
||||
</div>
|
||||
<div id="jnMock">
|
||||
<div class="mockup" aria-label="worked example of one purchase">
|
||||
<div class="bar"><i></i><i></i><i></i><span class="addr">{{SITE_HOST}}/ledger · worked example</span></div>
|
||||
<div class="body">
|
||||
<div class="mrow"><span>🧾 member #7 bought package #2 ($20.00)</span><span>paid</span></div>
|
||||
<div class="mrow"><span>💸 level 1 payout → member #3 (50%)</span><span>same block</span></div>
|
||||
<div class="mrow"><span>💸 level 2 payout → member #2 (20%)</span><span>same block</span></div>
|
||||
<div class="mrow"><span>💸 level 3 payout → member #1 (10%)</span><span>same block</span></div>
|
||||
<div class="mrow dim"><span>🏛 platform fee settled (20%)</span><span>same block</span></div>
|
||||
<div class="mrow dim"><span>⭐ member #3 now has 2 qualifying buyers</span><span>level 2 ✓</span></div>
|
||||
<div class="checks">
|
||||
<span class="check"><svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>Free forever for links and pages</span>
|
||||
<span class="check"><svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>One account per person</span>
|
||||
<span class="check" id="jnStats" hidden><svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span id="jnStatsText"></span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tile hi card">
|
||||
<div class="ph"><h2 id="jnCapH">Create your account</h2><span class="meta" id="jnCapSub">or sign in</span></div>
|
||||
<form class="pb" id="jnForm" style="display:flex;flex-direction:column;gap:14px" novalidate>
|
||||
<label class="lbl" for="jnEmail">Email<input id="jnEmail" class="field" type="email" placeholder="you@example.com" autocomplete="email" required></label>
|
||||
<input type="text" name="website" id="jnWebsite" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-9999px;width:1px;height:1px;opacity:0">
|
||||
<div id="jnCheck"></div>
|
||||
<button type="submit" class="btn pri" id="jnSend" style="width:100%">Send my code</button>
|
||||
<div id="jnCodeRow" hidden style="display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px dashed var(--line)">
|
||||
<label class="lbl" for="jnCode">The code from your email<input id="jnCode" class="field" type="text" inputmode="numeric" maxlength="6" placeholder="······" style="letter-spacing:.4em;font-size:20px;text-align:center"></label>
|
||||
<div class="ctas"><button type="button" class="btn pri" id="jnVerify">Sign me in</button><button type="button" class="btn" id="jnResend">Send again</button></div>
|
||||
<p class="note" id="jnUnder" style="margin:0" hidden></p>
|
||||
<span class="note">Codes last ten minutes. Check spam once, then press Send again.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="small muted" style="margin:10px 0 0">One purchase, one transaction, four payments. <a href="/ledger" target="_blank" rel="noopener">Open the real ledger →</a> <span id="jnStats"></span></p>
|
||||
|
||||
<label style="display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--ink-2)"><input type="checkbox" id="jnNews" checked style="margin-top:3px">Send me the getting-started notes and member updates. Unsubscribe any time.</label>
|
||||
<div class="err" id="jnErr" hidden></div>
|
||||
<div class="note" id="jnShut" hidden>Sign-ups are not open yet. Members can still sign in with their email.</div>
|
||||
<p class="note" style="margin:0">By continuing you agree to the <a href="/terms">terms</a> and <a href="/privacy">privacy policy</a>. Ad packages are advertising purchases, not investments. Payouts come only from purchases in your line, and the contract that pays them is <a href="/contract">public</a>.</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card jn-cap" id="jnCap">
|
||||
<h3 id="jnCapH">Join free</h3>
|
||||
<p class="muted small" style="margin:0 0 12px" id="jnCapSub">Type your email and we send a 6-digit code. No password, no wallet needed today.</p>
|
||||
<p><input id="jnEmail" type="email" placeholder="Your email" autocomplete="email"></p>
|
||||
<input id="jnWebsite" class="hp-field" type="text" name="hp_field_x9" tabindex="-1" autocomplete="off" aria-hidden="true">
|
||||
<div id="jnCheck" hidden></div>
|
||||
<p id="jnCodeRow" hidden><input id="jnCode" inputmode="numeric" placeholder="6-digit code from your inbox"></p>
|
||||
<p id="jnUnder" class="small muted" hidden style="margin:-4px 0 12px"></p>
|
||||
<label class="small muted" style="display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;cursor:pointer">
|
||||
<input type="checkbox" id="jnNews" checked style="margin-top:3px;width:auto">
|
||||
<span>Send me the getting-started emails (a few short ones over the first week). Unsubscribe any time.</span>
|
||||
</label>
|
||||
<p id="jnErr" class="small jn-err" hidden></p>
|
||||
<button class="btn" id="jnSend" type="button">Email me a code</button>
|
||||
<button class="btn" id="jnVerify" type="button" hidden>Create my free account</button>
|
||||
<button class="btn sec small" id="jnResend" type="button" hidden style="margin-top:8px">Send a fresh code</button>
|
||||
<p class="small muted" style="margin:14px 0 0">Advertising, not investing. No income is guaranteed; results depend on your effort. Crypto carries risk of loss.</p>
|
||||
</div>
|
||||
<ul class="jn-points" id="jnPoints" hidden></ul>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="jn-strip">
|
||||
<div class="jn-chips">
|
||||
<span><b>Paid in POL</b>, Polygon's own coin, to your wallet</span>
|
||||
<span><b>Same transaction</b> payouts</span>
|
||||
<span><b>Public ledger</b> on Polygon</span>
|
||||
<span><b>Free</b> to join by email</span>
|
||||
</div>
|
||||
<p class="small muted" style="margin:10px 0 0">The one crypto here is <b style="color:var(--ink)">POL on the Polygon network</b>: packages are paid in POL and every payout arrives as POL in your own wallet. Any Polygon wallet works (MetaMask, SafePal, Phantom, Coinbase Wallet). Never held crypto? Buy POL with a card inside the member area.</p>
|
||||
<footer class="foot">
|
||||
<div class="wrap">
|
||||
<span class="word">Link<b>Spin</b></span>
|
||||
<a href="/contract">The contract</a>
|
||||
<a href="/terms">Terms</a>
|
||||
<a href="/privacy">Privacy</a>
|
||||
<a href="/disclaimer">Disclaimer</a>
|
||||
<span class="grow"></span>
|
||||
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
|
||||
</div>
|
||||
<section class="jn-full">
|
||||
<div class="jn-h"><h2>How it works</h2><p class="muted">Three steps. The first one takes a minute and costs nothing.</p></div>
|
||||
<div class="jn-steps">
|
||||
<div class="card"><div class="n">STEP 1</div><h3>Join free by email</h3><p class="muted small">A 6-digit code, no password. You get an invite link and welcome credits to try real ads.</p></div>
|
||||
<div class="card"><div class="n">STEP 2</div><h3>Advertise or earn</h3><p class="muted small">Seven ad formats. View ads to earn credits, or buy a package from $5 when you want reach.</p></div>
|
||||
<div class="card"><div class="n">STEP 3</div><h3>Get paid in the same transaction</h3><p class="muted small">Activate with the $20 starter package and switch on payouts, and anyone who buys through your link pays you 50 percent, on-chain, the moment it happens.</p></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="jn-full">
|
||||
<div class="jn-h"><h2>The packages</h2><p class="muted">Priced in dollars, settled in POL at the live rate. One credit is one cent of ad delivery.</p></div>
|
||||
<div class="jn-ladder" id="jnLadder"></div>
|
||||
<p class="small muted" style="margin:14px 0 0;text-align:center">Every package pays 50 / 20 / 10 up the line the moment it sells, on a public ledger. <a href="#jnCap">Join free</a> and look around first.</p>
|
||||
</section>
|
||||
|
||||
<div class="jn-foot">
|
||||
LinkSpin · <a href="/contract">Contract</a> · <a href="/terms">Terms</a> · <a href="/privacy">Privacy</a> · <a href="/disclaimer">Disclaimer</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="/assets/common.js?v=ls20260916a"></script>
|
||||
<script src="/assets/join.js?v=20260914a"></script>
|
||||
<script src="/assets/join.js?v=20261007a"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
<div class="tbl pos"><div class="hd" style="grid-template-columns:minmax(0,1fr) 120px 100px"><span>Position</span><span>Credits</span><span>Status</span></div><div id="posRows"></div><div class="ft">linked positions share this account's credits; levels pay on the main position</div></div>
|
||||
</div>
|
||||
<div style="display:grid;gap:16px;align-content:start">
|
||||
<div class="panel"><h2>This wallet</h2><div id="walletBox" class="ink2">loading</div><div style="display:flex;gap:8px;flex-wrap:wrap"><a class="btn sm" href="/my#wallet">Connect, switch on payouts, buy</a></div><div class="muted">Connecting a wallet and buying a package use the wallet screen in the classic dashboard until the on-chain flow moves into this shell.</div></div>
|
||||
<div class="panel"><h2>This wallet</h2><div id="walletBox" class="ink2">loading</div><div style="display:flex;gap:8px;flex-wrap:wrap"><a class="btn sm" href="/credits">Link a wallet, switch on payouts, buy</a></div><div class="muted">Linking a wallet and buying a package live on the Credits screen.</div></div>
|
||||
<div class="panel"><h2>How you get paid</h2><div class="ink2">Every package splits in the same transaction: 50% direct sponsor, 20% level 2, 10% level 3, 20% platform. Nothing is held by the site, ever. Your sponsor is paid the moment your purchase settles.</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -332,12 +332,12 @@ async function handleUpload(req, res, who) {
|
||||
const JOIN_ALIASES = { company: 'martbost', top: 'martbost' }; // neutral partner links -> the top position
|
||||
const JOIN_ANGLES = {
|
||||
// legacy bridge pages (/from/<brand>): former members of Marty's closed EvolutionScript sites
|
||||
'fw-adv': { t: 'Your next ad budget pays you back.', d: 'Faucet Wave closed. LinkSpin was built for the people who bought ads there: packages from $5, seven formats, every package in your line paid out on Polygon in the same transaction. Welcome-back credits waiting.', url: SITE_URL + '/from/faucetwave?seg=advertiser' },
|
||||
'fw-adv': { t: 'Your next ad budget pays you back.', d: 'Faucet Wave closed. LinkSpin was built for the people who bought ads there: packages from $10, banner, text and login ads, every package in your line paid out on Polygon in the same transaction. Welcome-back credits waiting.', url: SITE_URL + '/from/faucetwave?seg=advertiser' },
|
||||
'fw-earn': { t: 'Same daily habit. Real payouts on-chain.', d: 'You viewed ads on Faucet Wave. Here you view ads to earn credits, run your own campaign free, and get paid in POL to your own wallet when your line buys ads. Welcome-back credits waiting.', url: SITE_URL + '/from/faucetwave' },
|
||||
't1-adv': { t: 'Your next ad budget pays you back.', d: 'Tier One Ads closed. LinkSpin was built for the people who bought ads there: packages from $5, seven formats, every package in your line paid out on Polygon in the same transaction. Welcome-back credits waiting.', url: SITE_URL + '/from/tieroneads?seg=advertiser' },
|
||||
't1-adv': { t: 'Your next ad budget pays you back.', d: 'Tier One Ads closed. LinkSpin was built for the people who bought ads there: packages from $10, banner, text and login ads, every package in your line paid out on Polygon in the same transaction. Welcome-back credits waiting.', url: SITE_URL + '/from/tieroneads?seg=advertiser' },
|
||||
't1-earn': { t: 'Same daily habit. Real payouts on-chain.', d: 'You viewed ads on Tier One Ads. Here you view ads to earn credits, run your own campaign free, and get paid in POL to your own wallet when your line buys ads. Welcome-back credits waiting.', url: SITE_URL + '/from/tieroneads' },
|
||||
instant: { t: 'Paid before the page reloads.', d: 'A smart contract on Polygon splits every ad package the moment it sells. Same transaction, real wallets, public ledger. Join free by email.' },
|
||||
adspend: { t: 'You were buying ads anyway.', d: 'Here the ad spend in your line pays you, in the same transaction, on a public ledger. Seven formats, packages from $5. Join free.' },
|
||||
adspend: { t: 'You were buying ads anyway.', d: 'Here the ad spend in your line pays you, in the same transaction, on a public ledger. Banner, text and login ads, packages from $10. Join free.' },
|
||||
free: { t: 'Watch first. Spend never.', d: 'Join free, view a few ads, earn credits, run your first campaign for zero dollars. Every payout public on Polygon.' },
|
||||
ledger: { t: 'No back office. No payday.', d: 'Every payout is a public transaction on Polygon you can read yourself. Nothing is ever held. Join free by email.' },
|
||||
two: { t: 'Two buyers open level two.', d: 'Every direct buyer pays you 50 percent from their first package. Two qualifying buyers open level two, five open level three. Written in a verified contract.' }
|
||||
@@ -3004,6 +3004,8 @@ const server = http.createServer(async (req, res) => {
|
||||
if (p === '/ads') return sendFile(res, path.join(PUBLIC_DIR, 'ads.html'));
|
||||
if (p === '/team') return sendFile(res, path.join(PUBLIC_DIR, 'team.html'));
|
||||
if (p === '/wallet') return sendFile(res, path.join(PUBLIC_DIR, 'wallet.html'));
|
||||
if (p === '/credits') return sendFile(res, path.join(PUBLIC_DIR, 'credits.html')); // Control Room: buy packages, link wallet, payouts on (2026-10-07)
|
||||
if (p === '/join') return serveJoinPage(res, '', '', null, []); // bare join: sponsor from the cookie if any (home-page CTAs)
|
||||
if (p === '/admin') return sendFile(res, path.join(PUBLIC_DIR, 'admin.html'));
|
||||
if (p === '/shorts') return sendFile(res, path.join(PUBLIC_DIR, 'shorts.html'));
|
||||
if (p === '/plays') return sendFile(res, path.join(PUBLIC_DIR, 'plays.html'));
|
||||
|
||||
Reference in New Issue
Block a user