diff --git a/public/assets/promo.js b/public/assets/promo.js index ca415bd..0646f4e 100644 --- a/public/assets/promo.js +++ b/public/assets/promo.js @@ -8,6 +8,8 @@ window.IAPPromo = (function () { const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c])); const status = (m, c) => (window.IAP && IAP.status) ? IAP.status(m, c) : console.log(m); const angleLink = (link, angle) => angle ? link + '?v=' + angle : link; + // the public games page carrying the member's referral (any public page + ?ref sets the sponsor) + const gamesLink = link => link.replace(/\/join\/([^/?#]+).*$/, '/games?ref=$1'); // The Five Dollar Friday bridge page with the member's referral: /friday?ref=. Any // public page plus ?ref sets the same sponsor cookie as the invite link (viral links, 2026-09-21). const fridayLink = link => link.replace(/\/join\/([^/?#]+).*$/, '/friday?ref=$1'); @@ -68,7 +70,7 @@ window.IAPPromo = (function () { ]; function fillLink(text, link) { - return text.replace(/\{\{FRIDAY\}\}/g, fridayLink(link)).replace(/\{\{WEDNESDAY\}\}/g, wednesdayLink(link)).replace(/\{\{LINK(?::([a-z]+))?\}\}/g, (m, a) => angleLink(link, a)); + return text.replace(/\{\{GAMES\}\}/g, gamesLink(link)).replace(/\{\{FRIDAY\}\}/g, fridayLink(link)).replace(/\{\{WEDNESDAY\}\}/g, wednesdayLink(link)).replace(/\{\{LINK(?::([a-z]+))?\}\}/g, (m, a) => angleLink(link, a)); } function copyBtn(text, label) { const b = document.createElement('button'); @@ -100,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: 'play', games: true, 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. Start free: {{GAMES}}' }, { 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}}' }, { angle: 'free', title: 'Watch first, spend never', hook: 'You can run your first ad campaign here for exactly zero dollars.', caption: 'Run your first ad campaign for exactly zero dollars. Join free by email, earn credits by viewing ads, launch a real campaign, and watch real payouts land on a public ledger before you spend a cent: {{LINK:free}}' }, @@ -190,7 +193,7 @@ window.IAPPromo = (function () { if (vw && vw.dataset.filled !== link) { vw.dataset.filled = link; vw.innerHTML = ''; for (const v of VIDEOS) { - const mlink = angleLink(link, v.angle); + const mlink = v.games ? gamesLink(link) : angleLink(link, v.angle); const card = document.createElement('div'); card.className = 'pv'; card.innerHTML = '
' + esc(v.angle) + ' angle ' + esc(v.title) + '
' + esc(v.hook) + '
' + '' diff --git a/public/my.html b/public/my.html index 65bd66c..ce9f725 100644 --- a/public/my.html +++ b/public/my.html @@ -1151,7 +1151,7 @@ - +