Dashboard share panel: two side-by-side cards, Team link (recommended) and Direct link, each with its own copy button and one plain line on what it does (members confused 'Copy my page link' with 'Copy Direct link', Marty 2026-11-12); my.js?v=20261112a

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-12 05:34:04 -06:00
parent 9e1eaf42b2
commit c355585ae8
2 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -31,5 +31,5 @@
</section>
</main>
<footer class="wrap disclaimer">All figures are read live from the RM Circle smart contract on Polygon and are historical facts, not a promise of future results. Participation involves cryptocurrency and smart-contract risk. Never use funds you cannot afford to lose. This site never holds or moves anyone's funds and does not endorse any crowdfunding or pooling built around the contract (<a href="/disclaimer#no-money">details</a>).<div class="footer-links"><a href="/">Home</a><a href="/contract">Contract Security</a><a href="/disclaimer">Disclaimers</a><a href="/tools">Promo Tools</a><a href="/privacy">Privacy</a><a href="/refunds">Refunds</a></div></footer>
<script src="/track.js"></script><script src="/qrlib.js"></script><script src="/rmc-wallet.js?v=20260920"></script><script src="/inapp-browser.js?v=20260920"></script><script src="/profile-gate.js?v=20260917a"></script><script src="/my.js?v=20261026a"></script><script src="/payouts.js" defer></script><script src="/chat.js?v=20261026a" defer></script><script src="/translate.js" defer></script><script src="/tg-app.js" defer></script><script src="/wallet-notice.js" defer></script> <script src="/announce.js?v=20260929a"></script>
<script src="/track.js"></script><script src="/qrlib.js"></script><script src="/rmc-wallet.js?v=20260920"></script><script src="/inapp-browser.js?v=20260920"></script><script src="/profile-gate.js?v=20260917a"></script><script src="/my.js?v=20261112a"></script><script src="/payouts.js" defer></script><script src="/chat.js?v=20261026a" defer></script><script src="/translate.js" defer></script><script src="/tg-app.js" defer></script><script src="/wallet-notice.js" defer></script> <script src="/announce.js?v=20260929a"></script>
</body></html>
+21 -8
View File
@@ -820,15 +820,28 @@
<div style="min-width:220px;flex:1">
<div style="font-weight:800;margin-bottom:6px">📲 Show this QR to anyone, anywhere.</div>
<p class="micro" style="margin:0 0 10px">Tap the code to blow it up full-screen — they scan it with their phone camera and land on your invite page.</p>
<div style="display:flex;gap:8px;flex-wrap:wrap"><button id="copyShare" class="btn btn-secondary btn-sm">Copy my page link</button><a class="btn btn-teal btn-sm" href="${esc(dashUrl)}" target="_blank" rel="noopener">Preview my page →</a></div>
<p class="micro" style="margin:10px 0 0;word-break:break-all">${esc(dashUrl)}</p>
<div style="display:flex;gap:8px;flex-wrap:wrap"><a class="btn btn-teal btn-sm" href="${esc(dashUrl)}" target="_blank" rel="noopener">Preview my page →</a></div>
<p class="micro" style="margin:10px 0 0">${dd?'The QR uses your page link (joins land under you).':'The QR uses your <strong style="color:var(--text)">Team link</strong> below.'}</p>
</div>
</div>
<div style="margin-top:16px;padding-top:14px;border-top:1px solid var(--line)">
<div style="font-weight:800;font-size:14px;margin-bottom:4px">🔀 Two ways to share</div>
<p class="micro" style="margin:0 0 8px">${dd?'Rotation is switched off for this position, so the link above already places every join <strong style="color:var(--text)">under you</strong>. To send someone into the team rotation instead, add <strong style="color:var(--text)">?direct=0</strong> to it.':`The link above is your <strong style="color:var(--text)">Team link</strong> ${q2?'— now that you’re qualified it routes new joins to the next teammate who needs directs, building your team in order (recommended).':'— it credits you and builds your first two.'} Want new people to land <strong style="color:var(--text)">under YOU</strong> as spillover instead? Use your <strong style="color:var(--text)">Direct link</strong>:`}</p>
<div style="display:flex;gap:8px;flex-wrap:wrap;align-items:center"><button id="copyDirect" class="btn btn-secondary btn-sm">Copy Direct link</button><span class="micro" style="word-break:break-all;color:var(--muted)">${esc(directUrl)}</span></div>
<p class="micro" style="margin:8px 0 0">${dd?'Either way you keep the entry reward on anyone you personally bring.':'<strong style="color:var(--text)">Team link</strong> helps your team qualify. <strong style="color:var(--text)">Direct link</strong> places every join under you (own spillover). Either way you keep the entry reward on anyone you personally bring.'}</p>
<div style="font-weight:800;font-size:14px;margin-bottom:8px">🔀 Pick the link that fits who you are sharing with</div>
<!-- two links side by side, each says what it does (Marty 2026-11-12: members mixed up "Copy my page link" and "Copy Direct link") -->
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px">
<div style="border:1px solid var(--line);border-radius:12px;padding:12px">
<div style="font-weight:800;margin-bottom:4px">🤝 ${dd?'Your page link':'Team link'} ${dd?'':'<span class="q-badge q-yes" style="margin-left:4px">recommended</span>'}</div>
<p class="micro" style="margin:0 0 10px">${dd?'Rotation is off for this position, so every join lands <strong style="color:var(--gold)">directly under you</strong>.':q2?'New joins go to the <strong style="color:var(--text)">next teammate who still needs directs</strong>, so your whole team qualifies in order.':'New joins land <strong style="color:var(--gold)">under you</strong> until you have your 2, then this link starts helping your team.'}</p>
<button id="copyShare" class="btn btn-secondary btn-sm">${dd?'Copy my page link':'Copy Team link'}</button>
<p class="micro" style="margin:8px 0 0;word-break:break-all;color:var(--muted)">${esc(dashUrl)}</p>
</div>
<div style="border:1px solid var(--line);border-radius:12px;padding:12px">
<div style="font-weight:800;margin-bottom:4px">⬇️ ${dd?'Team rotation link':'Direct link'}</div>
<p class="micro" style="margin:0 0 10px">${dd?'Sends the new person into the <strong style="color:var(--text)">team rotation</strong> instead of under you.':'Every join lands <strong style="color:var(--gold)">directly under you</strong>, as your own spillover, even after you have your 2.'}</p>
<button id="copyDirect" class="btn btn-secondary btn-sm">${dd?'Copy Team rotation link':'Copy Direct link'}</button>
<p class="micro" style="margin:8px 0 0;word-break:break-all;color:var(--muted)">${esc(dd?dashUrl+(dashUrl.includes('?')?'&':'?')+'direct=0':directUrl)}</p>
</div>
</div>
<p class="micro" style="margin:10px 0 0">Either way, you keep the entry reward on anyone you personally bring.</p>
</div>
<div id="plBox" hidden style="margin-top:16px;padding-top:14px;border-top:1px solid var(--line)">
<div style="font-weight:800;font-size:14px;margin-bottom:4px">\u2699\ufe0f How your link places people</div>
@@ -881,9 +894,9 @@
document.body.appendChild(ov);
});
const cp=document.getElementById('copyShare');
if(cp)cp.addEventListener('click',async()=>{try{await navigator.clipboard.writeText(dashUrl);cp.textContent='Copied ✓';setTimeout(()=>cp.textContent='Copy my page link',1400)}catch(e){}});
if(cp)cp.addEventListener('click',async()=>{try{await navigator.clipboard.writeText(dashUrl);const l0=cp.textContent;cp.textContent='Copied ✓';setTimeout(()=>cp.textContent=l0,1400)}catch(e){}});
const cd=document.getElementById('copyDirect');
if(cd)cd.addEventListener('click',async()=>{try{await navigator.clipboard.writeText(directUrl);cd.textContent='Copied ✓';setTimeout(()=>cd.textContent='Copy Direct link',1400)}catch(e){}});
if(cd)cd.addEventListener('click',async()=>{try{await navigator.clipboard.writeText(dd?dashUrl+(dashUrl.includes('?')?'&':'?')+'direct=0':directUrl);const l0=cd.textContent;cd.textContent='Copied ✓';setTimeout(()=>cd.textContent=l0,1400)}catch(e){}});
}
async function load(id){