Sponsor Guide surfaced: hero button + ?guide=1 deep link (was buried as 5th tab)

This commit is contained in:
Claude (via Marty)
2026-07-30 23:27:10 +00:00
parent 347a8a9219
commit ab6452f322
+16
View File
@@ -1090,6 +1090,7 @@
🧮 Try the Profit Calculator
</button>
<a href="https://clickbaitpays.me/login.php" target="_blank" rel="noopener" class="hero-btn hero-btn-secondary">🔐 Log into ClickBaitPays</a>
<button class="hero-btn hero-btn-secondary" id="heroGuideBtn">📖 Sponsor Guide</button>
</div>
<!-- Mobile-only QR for on-the-spot recruiting -->
@@ -2246,6 +2247,18 @@ function scrollToHero() {
// Hero CTA button
document.getElementById('heroCalcBtn').addEventListener('click', scrollToCalculator);
// Sponsor Guide straight from the hero (it was buried as the 5th tab —
// Marty 2026-07-30). Also deep-linkable via ?guide=1 for the Telegram pin.
function openGuide() {
openCalculator();
setTimeout(() => {
const btn = document.querySelector('.tab-btn[data-tab="guide"]');
if (btn) btn.click();
document.querySelector('.tabs').scrollIntoView({ behavior: 'smooth', block: 'start' });
}, 120);
}
document.getElementById('heroGuideBtn').addEventListener('click', openGuide);
// Hero signup button — same logic as calculator signup
function updateHeroSignupBtn() {
// #heroSignupBtn was removed in a redesign; unguarded .href crashed init()
@@ -2262,6 +2275,9 @@ function updateHeroSignupBtn() {
if (params.get('calc') === '1') {
openCalculator();
}
if (params.get('guide') === '1') {
openGuide();
}
updateHeroSignupBtn();
updateSharedLinkBox();
})();