From 2e4d18d77dd56b52b8d7be5261390f924d611aa6 Mon Sep 17 00:00:00 2001 From: martbost Date: Tue, 10 Nov 2026 07:37:28 -0600 Subject: [PATCH] =?UTF-8?q?Stack=20POL=20Pro=20owned=20state=20(Marty=2020?= =?UTF-8?q?26-11-10):=20a=20Pro=20owner=20sees=20'=E2=AD=90=20You=20own=20?= =?UTF-8?q?Stack=20POL=20Pro',=20the=20unlock=20date=20and=20an=20'Open=20?= =?UTF-8?q?my=20Pro=20page'=20button=20instead=20of=20a=20one-line=20note;?= =?UTF-8?q?=20the=20Stack=20POL=20pane=20re-checks=20when=20the=20member?= =?UTF-8?q?=20returns=20to=20the=20tab,=20so=20a=20purchase=20made=20while?= =?UTF-8?q?=20it=20was=20open=20shows=20without=20a=20manual=20refresh.=20?= =?UTF-8?q?my.js=20=3Fv=3D20261110proown.=20Member=20walk=200=20bugs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- public/assets/my.js | 5 +++++ public/my.html | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/assets/my.js b/public/assets/my.js index 84e986f..d6a5dc1 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -2801,8 +2801,13 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str $('spOn').checked = !!d.on; $('spLinkRow').hidden = !d.on; $('spUrl').textContent = d.url || ''; $('spOpen').href = d.url || '#'; $('spNote').textContent = d.on ? (d.wallet ? 'Your page is live once a payout reaches your wallet and updates every 5 minutes.' : 'Link a wallet (Wallet tab) so your payouts can be added up on your page.') : ''; const pv = d.pro || {}; $('spProOn').hidden = !pv.pro; $('spProOff').hidden = !!pv.pro; // any $10+ package unlocks Pro (2026-11-09): no order to wait on + // owned state (Marty 2026-11-10): say plainly that the member OWNS the upgrade, since when, with a link to the Pro page + $('spProSince').textContent = pv.pro && pv.since ? 'Unlocked ' + new Date(pv.since).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) + '. ' : ''; + $('spProOpen').href = d.url || '#'; } async function stackPolPost(body) { const r = await fetch('/api/my/stackpol', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) }); const d = await r.json(); if (!r.ok) throw new Error(d.error || 'Could not save that.'); return d; } + // a purchase made in another tab or on chain while this pane was open (Marty 2026-11-10): re-check when the member comes back + document.addEventListener('visibilitychange', () => { const el = $('promo-stackpol'); if (!document.hidden && el && !el.hidden) loadStackPol(); }); async function loadStackPol() { try { const r = await fetch('/api/my/stackpol'); const d = await r.json(); if (!r.ok) { $('spNote').textContent = d.error || ''; return; } showStackPol(d); } catch (e) {} } if ($('spOn')) { $('spOn').addEventListener('change', async () => { diff --git a/public/my.html b/public/my.html index 593db4b..190c0c0 100644 --- a/public/my.html +++ b/public/my.html @@ -862,7 +862,7 @@

⭐ Stack POL Pro

Pro puts your own LinkSpin Banner Spins and spin links in the ad spots of your Stack POL page, adds a QR code that opens it, and makes every blog article opened from your page use your referral links. One time, yours for good: any ad package of $10 or more unlocks it automatically. You keep every credit of that package for your ads, and your sponsor line is paid on chain as usual.

- +

Your page shows your own results only. Nothing on it is a promise of what anyone else will earn.

@@ -1291,7 +1291,7 @@ - +