Add inline script after banner link to set ref immediately on DOM parse — fixes race condition

This commit is contained in:
Marty Bostick
2026-07-29 20:21:51 +00:00
parent 029ed9f9c1
commit 9e43b35552
+6
View File
@@ -1035,6 +1035,12 @@
<a id="bannerRefLink" href="https://clickbaitpays.me/?ref=cryptoteambuild" target="_blank" rel="noopener">
<img src="https://git.saasy.top/marty/cbp-calculator/raw/branch/main/hero-banner.jpg" alt="Join the Crypto Team Build Network — Build the ClickBaitPays team project with us" />
</a>
<script>
(function(){
var ref = new URLSearchParams(window.location.search).get('ref');
if (ref) document.getElementById('bannerRefLink').href = 'https://clickbaitpays.me/?ref=' + encodeURIComponent(ref);
})();
</script>
</div>
<!-- CTA -->