Presentation page + Build Wide 'wide' join angle
- /presentation: the narrated InstantAdPay presentation (video on Spaces
training/iap-presentation.mp4, poster .jpg), caption pills for
en/it/fr/es/de/pt (VTTs served from /captions, text/vtt MIME added),
sponsor card from /api/sponsor ("Shared with you by @name" + Join to
/join/<ref>?v=wide, or the plain join link). Works framed: join and
sign-in open a new tab, internal links carry ?ref.
- Site menu + footer: Presentation. Sitemap, Traffic pages and the viral
page list include it. Promo tools: "Share the presentation" strip copies
instantadpay.com/presentation?ref=<username>.
- 'wide' join angle (Width unlocks depth.): server JOIN_ANGLES with the
buildwide poster as og:image, join.js angle (portrait video on phones,
16:9 otherwise, files promo/buildwide*), link stats row, promo VIDEOS
first entry with a per-entry file override, front-door list entry.
- Chatbot: presentation canned answer + facts, ?v=wide in the angle lists,
KNOWLEDGE_DATE 2026-10-15.
- common.js/my.js/promo.js/join.js cache tags bumped; qa/walk.mjs PUBLIC
gains /presentation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ window.IAP = (function () {
|
||||
+ '<span class="logo-wrap"><a class="logo" href="/"><img src="/logo.png" alt="InstantAdPay" style="height:30px;display:block"></a><span class="byline">Brought to you by the <b>Crypto Team Build Network</b></span></span>'
|
||||
+ '<span class="links">'
|
||||
+ '<a href="/#how" data-p="home">How it works</a>'
|
||||
+ '<a href="/presentation" data-p="presentation">Presentation</a>'
|
||||
+ '<a href="/#packages" data-p="pricing">Ad packages</a>'
|
||||
+ '<a href="/ledger" data-p="ledger">Live ledger</a>'
|
||||
+ '<a href="/leaderboard" data-p="leaderboard">Leaderboard</a>'
|
||||
@@ -54,7 +55,7 @@ window.IAP = (function () {
|
||||
f.style.cssText = 'border-top:1px solid var(--line);margin-top:48px;padding:26px 22px;text-align:center;color:var(--muted);font-size:13px';
|
||||
f.innerHTML = '<div>© ' + new Date().getFullYear() + ' InstantAdPay</div>'
|
||||
+ '<div style="margin-top:8px;display:flex;gap:16px;justify-content:center;flex-wrap:wrap">'
|
||||
+ '<a href="/">How it works</a><a href="/ledger">Live ledger</a><a href="/contract">The contract</a><a href="/blog">Blog</a><a href="/leaderboard">Leaderboard</a><a href="/whats-new">What\'s new</a>'
|
||||
+ '<a href="/">How it works</a><a href="/presentation">Presentation</a><a href="/ledger">Live ledger</a><a href="/contract">The contract</a><a href="/blog">Blog</a><a href="/leaderboard">Leaderboard</a><a href="/whats-new">What\'s new</a>'
|
||||
+ '<a href="/facts">Platform facts</a><a href="/terms">Terms</a><a href="/privacy">Privacy</a><a href="/disclaimer">Disclaimer</a></div>';
|
||||
document.body.appendChild(f);
|
||||
}
|
||||
|
||||
+12
-2
@@ -32,7 +32,11 @@
|
||||
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.' }
|
||||
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.' },
|
||||
// Build Wide (2026-10-15): the buildwide promo video, vertical on phones and 16:9 on wider screens
|
||||
wide: { eyebrow: 'Build wide', h: 'Width unlocks <em>depth.</em>', lead: 'Watch the fifty percent land, then the deeper levels open.', file: 'buildwide', portraitOnPhones: true,
|
||||
points: ['Every direct buyer pays you 50 percent of their package, in the same transaction it sells.', 'Two direct buyers of $20 or more open level two at 20 percent. Five open level three at 10 percent.', 'A level you have not opened yet passes its share up the line. Going wide first is what opens the deeper levels.'],
|
||||
cta: 'Start wide. Join free.', sub: 'Free account by email. No password, no wallet today. Your invite link is live the moment you are in.' }
|
||||
};
|
||||
// ?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.
|
||||
@@ -51,7 +55,13 @@
|
||||
// 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'; }
|
||||
if (a.video === false) vid.hidden = true;
|
||||
else {
|
||||
const file = a.file || v; // a hook whose uploaded video carries another name (wide -> promo/buildwide.*)
|
||||
const tall = a.portraitOnPhones && window.matchMedia && window.matchMedia('(max-width: 640px)').matches;
|
||||
vid.src = VID + file + (tall ? '-portrait' : '') + '.mp4'; vid.poster = VID + file + (tall ? '-portrait' : '') + '.jpg';
|
||||
if (tall) { vid.style.aspectRatio = '9/16'; vid.style.maxWidth = '380px'; vid.style.margin = '0 auto'; vid.style.maxHeight = '78vh'; }
|
||||
}
|
||||
$('jnPoints').innerHTML = (a.points || []).map(t => '<li>' + t.replace(/[&<>]/g, c => ({ '&': '&', '<': '<', '>': '>' }[c])) + '</li>').join('');
|
||||
$('jnMock').hidden = true; $('jnAngle').hidden = false; $('jnPoints').hidden = false;
|
||||
// play angle (2026-10-13): a big button to the public games page, carrying this page's invite token as ?ref
|
||||
|
||||
@@ -748,6 +748,10 @@
|
||||
+ (tw.eligible ? '.' : ' (you need your own $20 package first).');
|
||||
}
|
||||
} catch (e) {}
|
||||
// Share the presentation (2026-10-15): instantadpay.com/presentation?ref=<username> sets the same sponsor cookie as /join
|
||||
{ const tokP = d.username || d.refCode || d.memberId; const ps = $('promoPresStrip');
|
||||
if (ps && tokP) { const pl = 'https://instantadpay.com/presentation?ref=' + encodeURIComponent(tokP); ps.hidden = false; $('promoPresLink').textContent = pl; $('promoPresOpen').href = '/presentation?ref=' + encodeURIComponent(tokP);
|
||||
$('promoPresCopy').onclick = async () => { try { await navigator.clipboard.writeText(pl); IAP.status('Presentation link copied.', 'ok'); } catch (e) { IAP.status('Copy failed. Select the link and copy it.', 'bad'); } }; } }
|
||||
if (d.username) { // wall link rides the username
|
||||
const wl = location.origin + '/wall/' + d.username;
|
||||
$('wallLine').textContent = wl;
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
// /presentation (2026-10-15): the narrated Build Wide presentation, caption language pills, and a
|
||||
// sponsor card for whoever shared the link. Public, no sign-in. Works framed (traffic exchanges):
|
||||
// join and sign-in open in a new tab and every internal link carries the sharer's ?ref, because a
|
||||
// cross-site frame usually cannot keep the sponsor cookie.
|
||||
(async function () {
|
||||
const $ = id => document.getElementById(id);
|
||||
const esc = t => String(t || '').replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
|
||||
const framed = (() => { try { return window.top !== window.self; } catch (e) { return true; } })();
|
||||
const ref = String(new URLSearchParams(location.search).get('ref') || '').trim().toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 20);
|
||||
try { await IAP.renderNav('presentation'); } catch (e) {}
|
||||
|
||||
// ---- caption pills: Off + one per track; a non-English browser starts in its own language
|
||||
const v = $('prVideo'), bar = $('prCaps');
|
||||
const NAMES = { en: 'English', it: 'Italiano', fr: 'Français', es: 'Español', de: 'Deutsch', pt: 'Português' };
|
||||
const tracks = () => [...(v.textTracks || [])].filter(t => t.kind === 'captions' || t.kind === 'subtitles');
|
||||
function show(lang) {
|
||||
tracks().forEach(t => { t.mode = lang && String(t.language).toLowerCase() === lang ? 'showing' : 'disabled'; });
|
||||
bar.querySelectorAll('button').forEach(b => b.setAttribute('aria-pressed', b.dataset.lang === (lang || '') ? 'true' : 'false'));
|
||||
try { localStorage.setItem('iap.capLang', lang || 'off'); } catch (e) {}
|
||||
}
|
||||
if (v && bar) {
|
||||
bar.innerHTML = '<span class="lab">Captions</span>' + ['', 'en', 'it', 'fr', 'es', 'de', 'pt'].map(l => '<button type="button" data-lang="' + l + '" aria-pressed="false">' + (l ? NAMES[l] : 'Off') + '</button>').join('');
|
||||
bar.querySelectorAll('button').forEach(b => b.addEventListener('click', () => show(b.dataset.lang)));
|
||||
let start = '';
|
||||
try { start = localStorage.getItem('iap.capLang') || ''; } catch (e) {}
|
||||
if (!start) { const nav = String(navigator.language || '').slice(0, 2).toLowerCase(); start = NAMES[nav] && nav !== 'en' ? nav : 'off'; }
|
||||
show(start === 'off' ? '' : start);
|
||||
}
|
||||
|
||||
// ---- links: join / sign-in open a new tab when framed; internal links carry ?ref
|
||||
function decorate(root) {
|
||||
root.querySelectorAll('a[href]').forEach(a => {
|
||||
const h = a.getAttribute('href');
|
||||
if (!h || !h.startsWith('/') || h.startsWith('//') || h.startsWith('/api/')) return;
|
||||
if (framed && /^\/(my|join)(\/|$|\?|#)/.test(h)) { a.target = '_blank'; a.rel = 'noopener'; }
|
||||
if (ref && !/^\/join\//.test(h) && !/[?&]ref=/.test(h)) { const [p, hash] = h.split('#'); a.setAttribute('href', p + (p.includes('?') ? '&' : '?') + 'ref=' + ref + (hash ? '#' + hash : '')); }
|
||||
});
|
||||
}
|
||||
|
||||
// ---- sponsor card: the link's owner (?ref) first, then the visitor's sponsor cookie
|
||||
try {
|
||||
const sp = await (await fetch('/api/sponsor' + (ref ? '?ref=' + encodeURIComponent(ref) : ''))).json();
|
||||
const tok = ref || (sp && sp.ref) || '';
|
||||
if (sp && sp.name && tok && !sp.own) {
|
||||
$('prHead').innerHTML = 'Shared with you by <b>' + esc(sp.name) + '</b>';
|
||||
$('prText').textContent = sp.bio ? sp.bio : 'They can help you get set up in a few minutes, and they will be your sponsor on every platform in the network.';
|
||||
$('prJoin').textContent = 'Join with ' + sp.name;
|
||||
$('prJoin').href = '/join/' + encodeURIComponent(tok) + '?v=wide';
|
||||
$('prIni').textContent = String(sp.name).replace(/^@/, '').slice(0, 1).toUpperCase() || '?';
|
||||
if (sp.avatarUrl && /^https:\/\//.test(sp.avatarUrl)) { const im = $('prImg'); im.src = sp.avatarUrl; im.alt = sp.name; im.hidden = false; $('prIni').hidden = true; im.onerror = () => { im.hidden = true; $('prIni').hidden = false; }; }
|
||||
} else if (sp && sp.own) {
|
||||
$('prHead').textContent = 'This is your presentation link';
|
||||
$('prText').textContent = 'Anyone who opens it sees you here, with a Join button that puts them on your line. Copy it from Promo tools.';
|
||||
$('prJoin').textContent = 'Open Promo tools'; $('prJoin').href = '/my#promo';
|
||||
} else {
|
||||
$('prJoin').href = '/join';
|
||||
}
|
||||
} catch (e) {}
|
||||
if (framed) { $('prJoin').target = '_blank'; $('prJoin').rel = 'noopener'; }
|
||||
decorate(document);
|
||||
setTimeout(() => decorate(document), 1500); // the nav's sign-in link arrives after /api/me
|
||||
})();
|
||||
@@ -102,6 +102,7 @@ window.IAPPromo = (function () {
|
||||
// hook videos: one per angle; the matched link continues the same hook on the join page
|
||||
const VID_BASE = 'https://coolify-saasytop.nyc3.digitaloceanspaces.com/promo/';
|
||||
const VIDEOS = [
|
||||
{ angle: 'wide', file: 'buildwide', title: 'Build wide: watch the payments flow', hook: 'Width unlocks depth. Watch fifty percent land, then the deeper levels open.', caption: 'Here is the one move every leader starts with: go wide. Each person you bring in who buys advertising pays you fifty percent the moment they buy. Two buyers open your second level, five open the third. Watch the payments flow, then join free: {{LINK:wide}}' },
|
||||
{ angle: 'play', title: 'If you have time to play', hook: 'If you have time to play a game on your phone, you have time to build a business.', caption: 'If you have time to play a game on your phone, you have time to build a business. These free games pay real Polygon to your wallet, on chain, where anyone can check it. Share your games link instead of just playing. Watch it and play free: {{LINK:play}}' },
|
||||
{ angle: 'instant', title: 'Paid before the page reloads', hook: 'What if your commission landed before the thank-you page finished loading?', caption: 'What if your commission landed before the thank-you page finished loading? On InstantAdPay a smart contract splits every ad package the second it sells, straight to wallets, on a public ledger. Free to join by email: {{LINK:instant}}' },
|
||||
{ angle: 'adspend', title: 'You were buying traffic anyway', hook: 'Every ad dollar you have ever spent went one direction. Out.', caption: 'Every ad dollar you have ever spent went one direction. Out. Here the ad spend in your line pays you back in the same transaction. Seven formats, packages from $5, free to join: {{LINK:adspend}}' },
|
||||
@@ -117,6 +118,7 @@ window.IAPPromo = (function () {
|
||||
{ angle: 'adspend', name: 'Ad spend', hook: 'You buy ads anyway', use: 'For marketers who already pay for traffic. Frames it as advertising that also pays your line when they buy.' },
|
||||
{ angle: 'free', name: 'Free', hook: 'Costs nothing to try', use: 'For skeptics and beginners. Join free, earn credits by viewing, run a first campaign without spending.' },
|
||||
{ angle: 'ledger', name: 'Ledger', hook: 'No back office, no payday', use: 'For people who have waited on a payout. Every payment is public on Polygonscan and nothing is ever held.' },
|
||||
{ angle: 'wide', name: 'Wide', hook: 'Width unlocks depth', use: 'For team builders and anyone weighing the plan. The page opens on the Build Wide video: fifty percent landing, then levels two and three opening at two and five buyers.' },
|
||||
{ angle: 'two', name: 'Two', hook: 'Two buyers open level two', use: 'For team builders. The 2-then-5 qualification ladder and how a line stacks under you.' }
|
||||
];
|
||||
function fill(link, me) {
|
||||
@@ -198,12 +200,12 @@ window.IAPPromo = (function () {
|
||||
const mlink = v.games ? gamesLink(link) : angleLink(link, v.angle);
|
||||
const card = document.createElement('div'); card.className = 'pv';
|
||||
card.innerHTML = '<div class="pv-head"><span class="pb-net">' + esc(v.angle) + ' angle</span> <b>' + esc(v.title) + '</b><div class="muted small">' + esc(v.hook) + '</div></div>'
|
||||
+ '<video src="' + VID_BASE + v.angle + '.mp4" poster="' + VID_BASE + v.angle + '.jpg" preload="none" controls playsinline style="width:100%;max-width:640px;border-radius:12px;background:#000;margin:10px 0"></video>'
|
||||
+ '<video src="' + VID_BASE + (v.file || v.angle) + '.mp4" poster="' + VID_BASE + (v.file || v.angle) + '.jpg" preload="none" controls playsinline style="width:100%;max-width:640px;border-radius:12px;background:#000;margin:10px 0"></video>'
|
||||
+ '<p class="small"><span class="muted">Matched link:</span> <span class="mono" style="overflow-wrap:anywhere">' + esc(mlink) + '</span></p>';
|
||||
const row = document.createElement('p'); row.className = 'pb-actions';
|
||||
row.appendChild(copyBtn(mlink, 'Copy matched link'));
|
||||
row.appendChild(linkBtn(VID_BASE + v.angle + '.mp4', 'Download 16:9'));
|
||||
row.appendChild(linkBtn(VID_BASE + v.angle + '-portrait.mp4', 'Download 9:16'));
|
||||
row.appendChild(linkBtn(VID_BASE + (v.file || v.angle) + '.mp4', 'Download 16:9'));
|
||||
row.appendChild(linkBtn(VID_BASE + (v.file || v.angle) + '-portrait.mp4', 'Download 9:16'));
|
||||
card.appendChild(row);
|
||||
const cap = fillLink(v.caption, link);
|
||||
const extras = [
|
||||
|
||||
Reference in New Issue
Block a user