fix: render **bold** as HTML in-page, keep raw markdown for clipboard copy
This commit is contained in:
+8
-5
@@ -1193,11 +1193,11 @@ function generatePlan() {
|
|||||||
|
|
||||||
updateSharedLinkBox();
|
updateSharedLinkBox();
|
||||||
|
|
||||||
const plan = `📋 Your ClickBaitPays Plan
|
let rawPlan = `📋 Your ClickBaitPays Plan
|
||||||
|
|
||||||
So what's ClickBaitPays? It's an ad platform where you run small ad campaigns, click a few ads each day, and every ~19 days you get paid more than the campaign cost. You reinvest those payouts into bigger campaigns and scale up. It's simple, takes a few minutes a day, and you can do it from your phone.
|
So what's ClickBaitPays? It's an ad platform where you run small ad campaigns, click a few ads each day, and every ~19 days you get paid more than the campaign cost. You reinvest those payouts into bigger campaigns and scale up. It's simple, takes a few minutes a day, and you can do it from your phone.
|
||||||
|
|
||||||
Here's a calculator I put together so you can play with the numbers yourself: **https://cbp-calculator.saasy.top?ref=cryptoteambuild**
|
Here's a calculator I put together so you can play with the numbers yourself: https://cbp-calculator.saasy.top?ref=${refUser}
|
||||||
|
|
||||||
After you sign up, come back to that link — it'll walk you through what's possible and the best plan forward as you grow.
|
After you sign up, come back to that link — it'll walk you through what's possible and the best plan forward as you grow.
|
||||||
|
|
||||||
@@ -1242,13 +1242,16 @@ Use this link to sign up — it's how your sponsor tracks your progress. If you
|
|||||||
|
|
||||||
Good luck — the system works if you work the system. 💪`;
|
Good luck — the system works if you work the system. 💪`;
|
||||||
|
|
||||||
document.getElementById('planOutput').textContent = plan;
|
// Display in page: render **bold** as HTML, strip leftover **
|
||||||
|
document.getElementById('planOutput').innerHTML = rawPlan.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
|
||||||
|
// Store the raw plan for clipboard copy (keeps ** for Telegram)
|
||||||
|
document.getElementById('planOutput').dataset.rawPlan = rawPlan;
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyPlan() {
|
function copyPlan() {
|
||||||
const el = document.getElementById('planOutput');
|
const el = document.getElementById('planOutput');
|
||||||
const text = el.textContent;
|
const rawPlan = el.dataset.rawPlan || el.textContent;
|
||||||
navigator.clipboard.writeText(text).then(() => {
|
navigator.clipboard.writeText(rawPlan).then(() => {
|
||||||
const btn = document.getElementById('copyPlanBtn');
|
const btn = document.getElementById('copyPlanBtn');
|
||||||
btn.textContent = '✅ Copied!';
|
btn.textContent = '✅ Copied!';
|
||||||
btn.classList.add('copied');
|
btn.classList.add('copied');
|
||||||
|
|||||||
Reference in New Issue
Block a user