Training: Wallets and buying POL guide (/wallets), guide link on Buy packages, chatbot answers
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1507,7 +1507,7 @@
|
||||
const cta = document.createElement('div');
|
||||
cta.style.cssText = 'grid-column:1/-1;margin-top:10px;text-align:center';
|
||||
cta.innerHTML = '<p class="muted small" style="margin:0 0 8px">New to crypto? Buy POL with a debit or credit card, Apple Pay, or Google Pay. It lands straight in your own wallet, and this site never touches your money.</p>'
|
||||
+ '<button class="btn small sec" id="moonpayBtn" type="button">💳 Buy POL with a card</button>';
|
||||
+ '<button class="btn small sec" id="moonpayBtn" type="button">💳 Buy POL with a card</button> <a class="btn small sec" href="/wallets" target="_blank" rel="noopener">Wallet and MoonPay guide</a>';
|
||||
wrap.appendChild(cta);
|
||||
const mb = $('moonpayBtn'); if (mb) mb.addEventListener('click', () => openMoonpay(needPol));
|
||||
} catch (e) {}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Wallets + buying POL guide: members only.
|
||||
(async function () {
|
||||
try { await IAP.renderNav('training'); } catch (e) {}
|
||||
let me = null;
|
||||
try { me = await (await fetch('/api/me')).json(); } catch (e) {}
|
||||
const signedIn = !!(me && me.signedIn && me.email);
|
||||
document.getElementById('gate').style.display = signedIn ? 'none' : 'block';
|
||||
document.getElementById('body').style.display = signedIn ? 'block' : 'none';
|
||||
})();
|
||||
Reference in New Issue
Block a user