Fix calc signup: inline script sets ref dynamically, no hardcoded href

This commit is contained in:
Marty Bostick
2026-07-29 20:27:39 +00:00
parent dae8ff17b4
commit e2aed5bf88
+7 -1
View File
@@ -1151,9 +1151,15 @@
<h1>CBP What-If Calculator</h1>
<p>Full ladder modeling — profit timeline, referral earnings, and scenario comparison</p>
<div class="cta-bar" id="calcCtaBar">
<a class="cta-btn cta-btn-primary" id="calcSignupBtn" href="https://clickbaitpays.me/?ref=cryptoteambuild" target="_blank" rel="noopener">
<a class="cta-btn cta-btn-primary" id="calcSignupBtn" href="#" target="_blank" rel="noopener">
🚀 Sign Up with My Referral Link
</a>
<script>
(function(){
var ref = new URLSearchParams(window.location.search).get('ref');
if (ref) document.getElementById('calcSignupBtn').href = 'https://clickbaitpays.me/?ref=' + encodeURIComponent(ref);
})();
</script>
<button class="cta-btn cta-btn-secondary" onclick="copyCalculatorLink()">
📄 Copy Calculator Link
</button>