diff --git a/public/assets/promo.js b/public/assets/promo.js index 21431fb..8b32926 100644 --- a/public/assets/promo.js +++ b/public/assets/promo.js @@ -145,7 +145,8 @@ window.IAPPromo = (function () { + (navigator.share ? '' : '') + ''; // Share = the phone's share sheet; desktops have none, so no button const [copyBtn, shareBtn] = row.querySelectorAll('button'); copyBtn.onclick = async () => { try { await navigator.clipboard.writeText(url); status((a.name === 'General' ? 'Invite' : a.name) + ' link copied.', 'ok'); } catch (e) { status('Copy failed.', 'bad'); } }; - if (shareBtn) shareBtn.onclick = async () => { try { await navigator.share({ title: 'InstantAdPay', text: a.hook, url }); } catch (e) { if (!(e && e.name === 'AbortError')) status('Could not open the share sheet.', 'bad'); } }; + // the share sheet gets one ready message with the link inside it: some apps (Telegram among them) keep only the text field + if (shareBtn) shareBtn.onclick = async () => { try { await navigator.share({ title: 'InstantAdPay', text: (a.angle ? a.hook + ': ' : 'Have a look: ') + url }); } catch (e) { if (!(e && e.name === 'AbortError')) status('Could not open the share sheet.', 'bad'); } }; al.appendChild(row); } } diff --git a/public/banners/iap-angle-adspend-1200x630.jpg b/public/banners/iap-angle-adspend-1200x630.jpg new file mode 100644 index 0000000..425a055 Binary files /dev/null and b/public/banners/iap-angle-adspend-1200x630.jpg differ diff --git a/public/banners/iap-angle-free-1200x630.jpg b/public/banners/iap-angle-free-1200x630.jpg new file mode 100644 index 0000000..2615c45 Binary files /dev/null and b/public/banners/iap-angle-free-1200x630.jpg differ diff --git a/public/banners/iap-angle-instant-1200x630.jpg b/public/banners/iap-angle-instant-1200x630.jpg new file mode 100644 index 0000000..0abffd2 Binary files /dev/null and b/public/banners/iap-angle-instant-1200x630.jpg differ diff --git a/public/banners/iap-angle-ledger-1200x630.jpg b/public/banners/iap-angle-ledger-1200x630.jpg new file mode 100644 index 0000000..5ca5a3b Binary files /dev/null and b/public/banners/iap-angle-ledger-1200x630.jpg differ diff --git a/public/banners/iap-angle-play-1200x630.jpg b/public/banners/iap-angle-play-1200x630.jpg new file mode 100644 index 0000000..387810a Binary files /dev/null and b/public/banners/iap-angle-play-1200x630.jpg differ diff --git a/public/banners/iap-angle-two-1200x630.jpg b/public/banners/iap-angle-two-1200x630.jpg new file mode 100644 index 0000000..6d538ee Binary files /dev/null and b/public/banners/iap-angle-two-1200x630.jpg differ diff --git a/public/my.html b/public/my.html index be7f581..8fdbc0e 100644 --- a/public/my.html +++ b/public/my.html @@ -1151,7 +1151,7 @@ - + diff --git a/server.js b/server.js index 5d13191..315581f 100644 --- a/server.js +++ b/server.js @@ -382,12 +382,14 @@ function serveJoinPage(res, tok, angle, ang, setCookies) { const url = (ang && ang.url) || (base + '/join/' + tok + (angle ? '?v=' + angle : '')); const title = ang ? ang.t : 'Advertise and earn. Paid on-chain, instantly.'; const desc = ang ? ang.d : 'You are invited to InstantAdPay: real ad packages with same-transaction payouts on Polygon, every payment public. Join free by email.'; + // each hook angle previews with its own video's opening frame (Marty 2026-10-13: shared angle links all showed the generic hero) + const ogImg = base + (['play', 'instant', 'adspend', 'free', 'ledger', 'two'].includes(angle) ? '/banners/iap-angle-' + angle + '-1200x630.jpg?v=1' : '/banners/iap-hero-1200x630.png'); const escA = t => String(t).replace(/&/g, '&').replace(/"/g, '"').replace(/' + '' // keeps ?v= so shares stay on the angle - + '' - + ''; + + '' + + ''; html = html.replace(/[^<]*<\/title>/, '<title>' + escA(title) + ' | InstantAdPay' + og); if (ang) html = html.replace('', ''); // angle pages: squeeze layout from the first paint // Network Ad Space zone on the two legacy squeeze pages only (Marty, 2026-09-19): below the